Okay, I realized your example was from 1.2, so i upgraded and am now invoking
the call as follows:
this is just from modification of the jersey spring-annotations sample ... i
tried adding it in the code with compile failures... I took it out of the
code and updated the web.xml file still the same scope failure...
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.request.RequestContextListener;
public SpringAnnotationsWebAppTest() throws Exception {
super(new
WebAppDescriptor.Builder("com.sun.jersey.samples.springannotations.resources.jerseymanaged")
.contextPath("spring")
.contextParam("contextConfigLocation",
"classpath:applicationContext.xml")
.servletClass(SpringServlet.class)
.contextListenerClass(ContextLoaderListener.class)
.contextListenerClass(RequestContextListener.class)
.build());
}
compile failure:
[INFO] Compilation failure
/nfsmounts/devexp2/devcox/jersey/spring-annotations/src/test/java/com/sun/jersey/samples/springannotations/SpringAnnotationsWebAppTest.java:[66,16]
contextListenerClass(java.lang.Class<? extends
javax.servlet.ServletContextListener>) in
com.sun.jersey.test.framework.WebAppDescriptor.Builder cannot be applied to
(java.lang.Class<org.springframework.web.context.request.RequestContextListener>)
/nfsmounts/devexp2/devcox/jersey/spring-annotations/src/test/java/com/sun/jersey/samples/springannotations/SpringAnnotationsWebAppTest.java:[66,16]
contextListenerClass(java.lang.Class<? extends
javax.servlet.ServletContextListener>) in
com.sun.jersey.test.framework.WebAppDescriptor.Builder cannot be applied to
(java.lang.Class<org.springframework.web.context.request.RequestContextListener>)
any ideas where i've gone wrong?
thanks,
Lisa
--
View this message in context: http://jersey.576304.n2.nabble.com/Re-Spring-jersey-request-scope-issue-tp5073495p5110238.html
Sent from the Jersey mailing list archive at Nabble.com.