Community
Participate
Working Groups
The context.xml for the Osgi Http Service does not set a session handler on the ServletContextHandler instance. Therefore no session manager is available when a web application needs a new session, resulting in an IllegalArgumentException.
Hugues, we want Thomas to learn about the OSGi integration. Is this an issue he could start looking at?
(In reply to comment #1) > Hugues, > > we want Thomas to learn about the OSGi integration. Is this an issue he could > start looking at? Sure sorry I let this one goes done the pile: I think we discussed it on the mailing list fixed it there: http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-osgi/jetty-osgi-httpservice/contexts/httpservice.xml <Configure class="org.eclipse.jetty.servlet.ServletContextHandler"> <!-- this configures the servlet session manager --> <Set name="SessionHandler"> <New class="org.eclipse.jetty.server.session.SessionHandler"/> </Set> <!-- this servlet provides the OSGi HTTP Service once it is initialized --> <Call name="addServlet"> <Arg>org.eclipse.jetty.osgi.httpservice.HttpServiceServletX</Arg> <Arg>/*</Arg> <Set name="InitOrder">0</Set> </Call> </Configure>
This was fixed a while ago when the session handler was added to the context file in charge of creating the servlet for the http service: http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-osgi/jetty-osgi-httpservice/contexts/httpservice.xml