servletAuth = wac.getBean( ServletAuthenticator.class );
httpAuth = wac.getBean( "httpAuthenticator#basic", HttpAuthenticator.class );
// TODO: what if there are other types?
- repositorySessionFactory = wac.getBean( RepositorySessionFactory.class );
+ repositorySessionFactory = wac.getBean( "repositorySessionFactory", RepositorySessionFactory.class );
}
public void doGet( HttpServletRequest req, HttpServletResponse res )
//action = (SortRepositoriesAction) lookup( Action.class.getName(), "sortRepositoriesAction" );
- action = (SortRepositoriesAction) getActionProxy( "sortDownRepositoryFromGroup.action" ).getAction();
+ action = (SortRepositoriesAction) getActionProxy( "/admin/sortDownRepositoryFromGroup.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
action.setArchivaConfiguration( archivaConfiguration );
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
+ <context-param>
+ <param-name>contextClass</param-name>
+ <param-value>org.codehaus.redback.components.springutils.CachingWebApplicationContext</param-value>
+ </context-param>
+
<servlet>
- <servlet-name>RssFeedServlet</servlet-name>
- <servlet-class>org.apache.maven.archiva.web.rss.RssFeedServlet</servlet-class>
+ <servlet-name>RssFeedServlet</servlet-name>
+ <servlet-class>org.apache.maven.archiva.web.rss.RssFeedServlet</servlet-class>
</servlet>
<servlet-mapping>
- <servlet-name>RssFeedServlet</servlet-name>
- <url-pattern>/feeds/*</url-pattern>
+ <servlet-name>RssFeedServlet</servlet-name>
+ <url-pattern>/feeds/*</url-pattern>
</servlet-mapping>
- <context-param>
+ <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
- classpath*:/spring-context.xml
- classpath*:/META-INF/spring-context.xml
+ classpath*:/spring-context.xml
+ classpath*:/META-INF/spring-context.xml
</param-value>
</context-param>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
- <context-param>
+ <context-param>
+ <param-name>contextClass</param-name>
+ <param-value>org.codehaus.redback.components.springutils.CachingWebApplicationContext</param-value>
+ </context-param>
+
+ <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
- classpath*:/spring-context.xml
- classpath*:/META-INF/spring-context.xml
+ classpath*:/spring-context.xml
+ classpath*:/META-INF/spring-context.xml
</param-value>
</context-param>