Announcement Announcement Module
Collapse
No announcement yet.
Web MVC UI issues with running war with jetty-runner 8.1.x (works in 7.1.6.xxx) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web MVC UI issues with running war with jetty-runner 8.1.x (works in 7.1.6.xxx)

    Hello,

    I'm running my rather simple Roo application (Hibernate/HYPERSONIC_PERSISTENT / Web MVC with tiles) using jetty-runner.


    Roo 1.2.2.RELEASE

    The application runs perfectly when I test it with maven plugin pre-configured version 8.1.4.v20120524 in pom.xml using 'mvn jetty:run' or 'mvn jetty:run-war'

    However, when I use Jetty Runner version 8.1.4.v20120524 my application shows up all messed up : Create and List links for my entites have dissappered , and it seems that non of the messages from resource files can be found - I have a bunch of error messages instead on the page.



    When I click on the empty-text links on the left-side where the "create" and "list" links for my entities were supposed to be I get an exception such as this:

    ====================
    javax.servlet.jsp.JspTagException: No message found under code 'label_' for locale 'en_US'.
    at org.springframework.web.servlet.tags.MessageTag.do StartTagInternal(MessageTag.java:184)
    at org.springframework.web.servlet.tags.RequestContex tAwareTag.doStartTag(RequestContextAwareTag.java:7 9)
    at org.apache.jsp.tag.web.form.fields.input_tagx._jsp x_meth_spring_message_0(input_tagx.java from :448)
    at org.apache.jsp.tag.web.form.fields.input_tagx.doTa g(input_tagx.java from :303)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx._jspx_meth_field_input_0(create_jspx.java from :100)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx.access$000(create_jspx.java from :7)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx$create_jspxHelper.invoke0(create_jspx.java from :133)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx$create_jspxHelper.invoke(create_jspx.java from :149)
    at org.apache.jsp.tag.web.form.create_tagx$create_tag xHelper.invoke0(create_tagx.java from :450)
    at org.apache.jsp.tag.web.form.create_tagx$create_tag xHelper.invoke(create_tagx.java from :489)
    at org.apache.jsp.tag.web.util.panel_tagx.doTag(panel _tagx.java from :149)
    at org.apache.jsp.tag.web.form.create_tagx.doTag(crea te_tagx.java from :213)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx._jspx_meth_form_create_0(create_jspx.java from :85)
    at org.apache.jsp.WEB_002dINF.views.publishers.create _jspx._jspService(create_jspx.java from :54)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:848)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:403)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:492)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:378)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:598)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:486)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle( SecurityHandler.java:542)
    at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:1065)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:413)
    at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:192)
    at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:999)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.Dispatcher.include(Dispat cher.java:178)
    at org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:1015)
    at org.apache.jasper.runtime.PageContextImpl.include( PageContextImpl.java:700)
    at org.apache.tiles.jsp.context.JspTilesRequestContex t.include(JspTilesRequestContext.java:103)
    at org.apache.tiles.jsp.context.JspTilesRequestContex t.dispatch(JspTilesRequestContext.java:96)
    at org.apache.tiles.renderer.impl.TemplateAttributeRe nderer.write(TemplateAttributeRenderer.java:44)
    at org.apache.tiles.renderer.impl.AbstractBaseAttribu teRenderer.render(AbstractBaseAttributeRenderer.ja va:106)
    at org.apache.tiles.renderer.impl.ChainedDelegateAttr ibuteRenderer.write(ChainedDelegateAttributeRender er.java:76)
    at org.apache.tiles.renderer.impl.AbstractBaseAttribu teRenderer.render(AbstractBaseAttributeRenderer.ja va:106)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:670)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:336)
    at org.apache.tiles.template.InsertAttributeModel.ren derAttribute(InsertAttributeModel.java:210)
    at org.apache.tiles.template.InsertAttributeModel.end (InsertAttributeModel.java:126)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.doT ag(InsertAttributeTag.java:311)
    at org.apache.jsp.WEB_002dINF.layouts.default_jspx._j spx_meth_tiles_insertAttribute_2(default_jspx.java from :204)
    at org.apache.jsp.WEB_002dINF.layouts.default_jspx._j spService(default_jspx.java from :83)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:848)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:403)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:492)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:378)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:598)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:486)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle( SecurityHandler.java:542)
    at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:1065)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:413)
    at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:192)
    at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:999)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispat cher.java:271)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispat cher.java:98)
    at org.apache.tiles.servlet.context.ServletTilesReque stContext.forward(ServletTilesRequestContext.java: 241)
    at org.apache.tiles.servlet.context.ServletTilesReque stContext.dispatch(ServletTilesRequestContext.java :222)
    at org.apache.tiles.renderer.impl.TemplateAttributeRe nderer.write(TemplateAttributeRenderer.java:44)
    at org.apache.tiles.renderer.impl.AbstractBaseAttribu teRenderer.render(AbstractBaseAttributeRenderer.ja va:106)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:670)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:690)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:644)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:627)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:321)
    at org.springframework.web.servlet.view.tiles2.TilesV iew.renderMergedOutputModel(TilesView.java:124)
    at org.springframework.web.servlet.view.AbstractView. render(AbstractView.java:262)
    at org.springframework.web.servlet.DispatcherServlet. render(DispatcherServlet.java:1180)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:950)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:852)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:735)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:598)
    at org.eclipse.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1367)
    at org.springframework.orm.jpa.support.OpenEntityMana gerInViewFilter.doFilterInternal(OpenEntityManager InViewFilter.java:147)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at org.eclipse.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1338)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 311)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:116)

    ..............................
    (TRUNCATED TO FIT THE MESSAGE WITHIN FORUM LIMIT)
    ..............................
    ====================

    And on the UI I get these messages:

    titleInternal Error
    Internal Error

    Sorry, we encountered an internal error.

    Details

    _messagefalseException Message
    _exceptionfalseException Stack Trace



    THE INTERESTING POINT THOUGH is that I tried a few Jetty Runner versions from 8.1.7 to 8.1.5 and 8.1.4 - all had the same issue but the application got loaded AND WORKED when I switched to Jetty Runner 7.1.6.v20100715.

    I guess a difference of the servlet spec version or something is affecting this.

    Please let me know if you need more information to debug.

    Regards,
    Oleg
Working...
X