diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/RepositoryServlet.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/RepositoryServlet.java index 851c02f4c..0a0b316d7 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/RepositoryServlet.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/RepositoryServlet.java @@ -99,10 +99,10 @@ public class RepositoryServlet httpAuth = (HttpAuthenticator) lookup( HttpAuthenticator.ROLE, "basic" ); audit = (AuditLog) lookup( AuditLog.ROLE ); - updateRepositoryMap(); - configuration = (ArchivaConfiguration) lookup( ArchivaConfiguration.class.getName() ); configuration.addChangeListener( this ); + + updateRepositoryMap(); } public void initServers( ServletConfig servletConfig )