Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Gemini Web JspCompilation fails(javax.naming.NameNotFoundException: Name '/localhost/.../xxx.jsp)
Gemini Web JspCompilation fails [message #985986] Fri, 16 November 2012 23:21 Go to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 211
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

Re: Gemini Web JspCompilation fails [message #986526 is a reply to message #985986] Tue, 20 November 2012 18:03 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Hi,

Please report a bug here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Gemini.Web
and provide a simple example that can be used in order to reproduce the issue.

Regards
Violeta
Re: Gemini Web JspCompilation fails [message #986936 is a reply to message #986526] Thu, 22 November 2012 12:28 Go to previous message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 211
Registered: February 2012
Location: Düsseldorf
Senior Member
I added a bug
Previous Topic:Gemini JPA 1.1.0 released
Next Topic:Gemini Web 2.2.0 M02 is now available
Goto Forum:
  


Current Time: Thu Nov 27 17:42:18 GMT 2014

Powered by FUDForum. Page generated in 0.01837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software