Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326675 - Osgi Http Service does not create SessionHandler
Summary: Osgi Http Service does not create SessionHandler
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: osgi (show other bugs)
Version: 7.1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Hugues Malphettes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 10:31 EDT by Jan Rosczak CLA
Modified: 2011-01-12 04:15 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rosczak CLA 2010-09-30 10:31:00 EDT
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.
Comment 1 Greg Wilkins CLA 2010-12-02 10:18:17 EST
Hugues,

we want Thomas to learn about the OSGi integration.  Is this an issue he could start looking at?
Comment 2 Hugues Malphettes CLA 2010-12-02 13:21:12 EST
(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>
Comment 3 Hugues Malphettes CLA 2011-01-12 04:15:11 EST
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