Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] "No SessionManager" error when trying to initialize JSP in an Equinox / embedded Jetty environment

Simon:

OK that explains a lot.  Thanks for getting this ball rolling.  Any sense for how long a fix may take?  Are there are any workarounds we could employ just to get things working in the interim?  We have some flexibility with our setup, though as always the less changes the better.

Thanks again,
Vijay

On Mon, Sep 13, 2010 at 5:51 PM, Simon Kaegi <Simon_Kaegi@xxxxxxxxxx> wrote:

Hi Vijay,

It looks like you're using the Jetty 7 integration which appears to have a bug in it. I've open a bug on your behalf here.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=325184

-Simon


Inactive hide details for Vijay Sundaram ---09/13/2010 02:54:32 PM---Hi: I am embedding Jetty in Equinox and am struggling to gVijay Sundaram ---09/13/2010 02:54:32 PM---Hi: I am embedding Jetty in Equinox and am struggling to get JSPs to work.


From:

Vijay Sundaram <vijay.sundaram@xxxxxxxxx>

To:

equinox-dev@xxxxxxxxxxx

Date:

09/13/2010 02:54 PM

Subject:

[equinox-dev] "No SessionManager" error when trying to initialize JSP in an Equinox / embedded Jetty environment

Sent by:

equinox-dev-bounces@xxxxxxxxxxx




Hi:

I am embedding Jetty in Equinox and am struggling to get JSPs to work.  Note, I am trying to implement this using the extension registry (e.g. plugin.xml).  I have read a handful of threads on this topic but have had no luck tracking down the specific issue I have:

The JSP engine is able to receive my HTTP request, parse the parameters, etc., but it breaks at the point where it tries to initialize session objects for the page.  The stack trace indicates there is no SessionManager, which obviously presents an issue.  Am I incorrectly configuring the JspServlet / Equinox environment somehow, or is this potentially a Jetty-level issue (in which case I can redirect this question)?

I have included the stack trace below and am happy to send over more context based on what would be helpful.  I am new to the OSGi/Equinox world and would appreciate any pointers to help me uncover any unknown unknowns I may be dealing with.

Thanks in advance,
Vijay

11:13:41.346 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.eclipse.jetty.util.log - REQUEST /alpha/index.jsp on org.eclipse.jetty.server.nio.SelectChannelConnector$2@19cc1b
11:13:41.347 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.eclipse.jetty.util.log - servlet=org.eclipse.jetty.osgi.httpservice.HttpServiceServletX-11666258
11:13:41.347 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.eclipse.jetty.util.log - servlet holder=
11:13:41.347 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.eclipse.jetty.util.log - chain=
11:13:41.347 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet - JspEngine --> /alpha/index.jsp
11:13:41.347 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -       ServletPath: /alpha/index.jsp
11:13:41.348 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -          PathInfo: null
11:13:41.348 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -          RealPath: null
11:13:41.348 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -        RequestURI: /alpha/index.jsp
11:13:41.348 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -       QueryString: foo=bar
11:13:41.348 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -    Request Params: 
11:13:41.379 [qtp11652231-28 - /alpha/index.jsp?foo=bar] DEBUG org.apache.jasper.servlet.JspServlet -   foo = bar
11:13:41.382 [qtp11652231-28 - /alpha/index.jsp?foo=bar] ERROR o.a.jasper.runtime.JspFactoryImpl - Exception initializing page context
java.lang.IllegalStateException: No SessionManager
at org.eclipse.jetty.server.Request.getSession(Request.java:1097) ~[na:na]
at org.eclipse.jetty.server.Request.getSession(Request.java:1087) ~[na:na]
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:235) ~[javax.servlet_2.5.0.v200910301333.jar:na]
at org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:138) ~[na:na]
at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:148) ~[org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:123) ~[org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:104) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:61) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jsp.alpha.index_jsp._jspService(index_jsp.java:33) [Temp/:na]
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200910301333.jar:na]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) [org.apache.jasper_5.5.17.v201004212143.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200910301333.jar:na]
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:112) [org.eclipse.equinox.jsp.jasper_1.0.200.v20100421.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200910301333.jar:na]
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180) [org.eclipse.equinox.http.registry_1.1.0.v20100503.jar:na]
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) [org.eclipse.equinox.http.servlet_1.1.0.v20100503.jar:na]
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126) [org.eclipse.equinox.http.servlet_1.1.0.v20100503.jar:na]
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) [org.eclipse.equinox.http.servlet_1.1.0.v20100503.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200910301333.jar:na]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) [org.eclipse.jetty.servlet_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:423) [org.eclipse.jetty.servlet_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) [org.eclipse.jetty.servlet_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.Server.handle(Server.java:347) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1042) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) [org.eclipse.jetty.http_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) [org.eclipse.jetty.http_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424) [org.eclipse.jetty.server_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506) [org.eclipse.jetty.io_7.1.6.v20100715.jar:7.1.6.v20100715]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) [org.eclipse.jetty.util_7.1.6.v20100715.jar:7.1.6.v20100715]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_21]_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev



_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


GIF image

GIF image


Back to the top