You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Kees de Kooter <kd...@gmail.com> on 2007/11/28 14:36:41 UTC

[TILES 2] JSPException while including path

I am running Jetty as an application from my IDE so I can hotswap code
and change jsps without reloading the entire app.

This was working fine with struts-tiles. Unfortunately after the
migration to Tiles 2 reloading of jsps fails:

12:15:58,892 ERROR org.apache.tiles.jsp.context.JspTilesRequestContext
-> include:90 - JSPException while including path
'/WEB-INF/jsp/fragments/xxxxxxxxxxxxxxxxxxxxx.jsp'.
javax.servlet.jsp.JspException: ServletException while including page.
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at org.apache.jsp.WEB_002dINF.jsp.templates.main_002dtemplate_jsp._jspx_meth_tiles_insertAttribute_3(org.apache.jsp.WEB_002dINF.jsp.templates.main_002dtemplate_jsp:603)
at org.apache.jsp.WEB_002dINF.jsp.templates.main_002dtemplate_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.templates.main_002dtemplate_jsp:140)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:63)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1158)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: javax.servlet.ServletException: java.lang.NoSuchFieldError:
deferredExpression
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:384)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:671)
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
... 71 more
Caused by: java.lang.NoSuchFieldError: deferredExpression
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:196)
at org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:181)
at org.apache.jsp.WEB_002dINF.jsp.fragments.xxxxxxxxxxxxxxxxxxxxxxxxxx_jsp._jspDestroy(org.apache.jsp.WEB_002dINF.jsp.fragments.verhoorBetrokkeneForm_jsp:54)
at org.apache.jasper.runtime.HttpJspBase.destroy(HttpJspBase.java:84)
at org.apache.jasper.servlet.JspServletWrapper.destroy(JspServletWrapper.java:408)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:173)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
... 82 more

Re: [TILES 2] JSPException while including path

Posted by Kees de Kooter <kd...@gmail.com>.
Finally fixed the problem. It turns out that the jetty runtime jar
(jsp-2.1.6.1.6.jar) also contains the jstl classes. So it is a
classloading issue after all.

Thanks for your support Antonio!

On Nov 28, 2007 4:07 PM, Antonio Petrelli <an...@gmail.com> wrote:
> 2007/11/28, Kees de Kooter <kd...@gmail.com>:
> >
> > I removed all jstl stuff from the claspath but the error keeps occurring.
>
>
> Try cleaning your temp folders, probably your jsp have been compiled and not
> recompiled.
> I don't know where they are located in Jetty, though.
>
> Antonio
>



-- 
Cheers,
Kees de Kooter
http://www.boplicity.net

Re: [TILES 2] JSPException while including path

Posted by Antonio Petrelli <an...@gmail.com>.
2007/11/28, Kees de Kooter <kd...@gmail.com>:
>
> I removed all jstl stuff from the claspath but the error keeps occurring.


Try cleaning your temp folders, probably your jsp have been compiled and not
recompiled.
I don't know where they are located in Jetty, though.

Antonio

Re: [TILES 2] JSPException while including path

Posted by Kees de Kooter <kd...@gmail.com>.
Hi Antonio,

I removed all jstl stuff from the claspath but the error keeps occurring.

Kees

On Nov 28, 2007 2:40 PM, Antonio Petrelli <an...@gmail.com> wrote:
> 2007/11/28, Kees de Kooter <kd...@gmail.com>:
> > Caused by: java.lang.NoSuchFieldError: deferredExpression
> > at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:196)
>
> I guess that you have two versions of JSTL laying around in your
> server/webapp: this is a JSTL problem, anyway.
>
> Antonio
>



-- 
Cheers,
Kees de Kooter
http://www.boplicity.net

Re: [TILES 2] JSPException while including path

Posted by Antonio Petrelli <an...@gmail.com>.
2007/11/28, Kees de Kooter <kd...@gmail.com>:
> Caused by: java.lang.NoSuchFieldError: deferredExpression
> at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:196)

I guess that you have two versions of JSTL laying around in your
server/webapp: this is a JSTL problem, anyway.

Antonio