JSP compiler in Equinox and Tomcat 5 [message #106542] |
Wed, 19 March 2008 10:00 |
|
Hi all,
I'm using one of AjaxTags's tag in my jsp page. When deployed in Tomcat 5
it runs fine, but under Equinox environment it throws the following
exception:
java.lang.ClassCastException: org.ajaxtags.tags.AjaxHtmlContentTag cannot
be cast to javax.servlet.jsp.tagext.Tag
at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool. java:116)
at org.apache.jsp.main_jsp._jspService(main_jsp.java:97)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:332)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet .java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:270)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.jav a:289)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java :171)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherA daptor.forward(RequestDispatcherAdaptor.java:30)
at com.farbeyond.core.servlets.MainServlet.doGet(MainServlet.ja va:20)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:270)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
I was wondering if there is any difference between JSP compiler used in
Equinox and Tomcat 5.
Any help would be greatly appreciated.
Best Regards,
Setya
|
|
|
|
Re: JSP compiler in Equinox and Tomcat 5 [message #106613 is a reply to message #106585] |
Wed, 19 March 2008 16:32 |
|
Simon,
> If I had to guess it looks like your ajaxtags bundle is bound to a different
> set of JSP imports.
I only have one jsp that imports this ajaxtags.
> Do you have more than one bundle exporting javax.servlet.jsp.tagext or does
> your ajaxtags bundle contain a copy?
Actually the ajaxtags is not packaged as an OSGI bundle, I include it only
for internal use of one bundle certain and not to be exported.
Does packaging the ajaxtags as bundle will make a difference instead ?
> I'd use the console and in particular the bundle (or b) command to figure
> out which packages your bundle is wired to vs. the jasper bundle
Could you elaborate more on this ?
Best Regards,
Setya
|
|
|
Re: JSP compiler in Equinox and Tomcat 5 [message #106670 is a reply to message #106613] |
Thu, 20 March 2008 05:43 |
|
Hi,
To clarifiy a few things a bit:
1. When deployed in Tomcat 5, the app wasn't deployed as OSGI app, just
plain web app.
2. The AjaxTags framework only used internally by a bundle, I put its jars
and dependencies in folder /web/WEB-INF/lib and put the reference to these
jars in my MANIFEST.MF under Bundle-ClassPath segment. So I don't package
this AjaxTags as separate bundle.
Best Regards,
Setya
|
|
|
|
Powered by
FUDForum. Page generated in 0.04087 seconds