Gemini Web JspCompilation fails [message #985986] |
Fri, 16 November 2012 23:21 |
Thorsten Schlathölter Messages: 312 Registered: February 2012 Location: Düsseldorf |
Senior Member |
|
|
Hi everybody,
I have a problem with a jsp-servlet in an OSGI Web-Bundle deployed on a OSGI gemini-web platform. I have configured a jsp-servlet as such:
<servlet>
<servlet-name>myapp_ws</servlet-name>
<jsp-file>/myapp.jnlp.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>myapp</servlet-name>
<url-pattern>/myapp.start</url-pattern>
</servlet-mapping>
<filter-mapping>
<filter-name>SSOFilter</filter-name>
<url-pattern>*.start</url-pattern>
</filter-mapping>
When the web-app is installed I get the following exception:
2012-11-17 00:10:55,680 DEBUG org.eclipse.gemini.web.tomcat.internal.loading.BundleDirContext ()-
javax.naming.NameNotFoundException: Name '/localhost/myapp/myapp.jnlp.jsp' does not exist.
at org.eclipse.gemini.web.tomcat.internal.loading.BundleDirContext.getNamedEntry(BundleDirContext.java:104)
at org.eclipse.gemini.web.tomcat.internal.loading.BundleDirContext.doLookup(BundleDirContext.java:87)
at org.apache.naming.resources.BaseDirContext.lookup(BaseDirContext.java:469)
at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:308)
at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:391)
at org.apache.jasper.JspCompilationContext.getLastModified(JspCompilationContext.java:457)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:425)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:639)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
Debuging the code shows that BundleDirContext.getNamedEntry() is called twice. Once with '/localhost/myapp/myapp.jnlp.jsp' and once with '/myapp.jnlp.jsp'. The later one can be resolved whereas the first one throws the exception. If I call the servlet it is executed, regardless of the exception message.
Can somebody give me a hint what is going on here?
Regards,
Thorsten
[Updated on: Fri, 16 November 2012 23:23] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04193 seconds