Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3212

Access of roo-created-webapp after starting via mvn tomcat:run bombs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL, JSF
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      After doing mvn tomcat:run of a roo made webapp using jsf, I see this.
      Use mvn 3.0.3.
      However access of webapp via mvn jetty:run works fine.

      The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: /templates/layout.xhtml @8,63 locale="#

      {localeBean.locale}" Attribute did not evaluate to a String or Locale: null
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
      org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      root cause

      javax.faces.view.facelets.TagAttributeException: /templates/layout.xhtml @8,63 locale="#{localeBean.locale}

      " Attribute did not evaluate to a String or Locale: null
      com.sun.faces.facelets.tag.jsf.ComponentSupport.getLocale(ComponentSupport.java:297)
      com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:128)
      javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
      com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
      com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
      com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
      com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
      com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
      org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              ameelin Neal Ravindran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: