8 Replies Latest reply on Nov 1, 2013 2:06 PM by George Gastaldi

    Sample error in 1.4.2 Final

    Euber Almeida Newbie

      Im run  the https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/forge-from-scratch normaly in 1.3.3 version.


      With 1.4.2 final, the script generate everything. When acess one of the generated CRUD, the website show:

       

      Oops

      That's going to leave a mark!

       

      And in jboss log show:

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/forge-sample].[FacesServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet FacesServlet threw exception: java.io.FileNotFoundException

      at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:369) [jbossweb-7.0.13.Final.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache._getLastModified(DefaultFaceletCache.java:172) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache.access$000(DefaultFaceletCache.java:62) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:78) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.7.0_11]

      at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_11]

      at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:62) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:256) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:366) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:774) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_11]

       

       

      Version that give me the same problem:

      forge-distribution-1.4.2.Final

      forge-distribution-1.4.1.Final

      forge-distribution-1.4.0.Final

       

      Works on -> forge-distribution-1.3.3.Final

        • 1. Re: [forge-users] Sample error in 1.4.2 Final
          Lincoln Baxter III Master

          Hey There!

           

          Sorry you're having trouble, but this actually works for me just fine.

          Could you tell us a little bit about your environment, what application

          server you are running on, what java version, and etc?

           

          Thanks!

           

           

           

          On Thu, Oct 31, 2013 at 8:40 AM, <forge-users@lists.jboss.org> wrote:

           

          +Im run  the

          https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/forge-from-scratchnormaly in 1.3.3 version.+

          +

          +

          With 1.4.2 final, the script generate everything. When acess one of the

          generated CRUD, the website show:

           

          Oops

          That's going to leave a mark!

           

          And in jboss log show:

           

          ERROR

          [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/forge-sample].[FacesServlet]]

          (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet

          FacesServlet threw exception: java.io.FileNotFoundException

          at

          org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:369)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache._getLastModified(DefaultFaceletCache.java:172)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache.access$000(DefaultFaceletCache.java:62)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:82)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:78)

          at

          com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99)

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at

          com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:114)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:121)

          at

          com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:62)

          at

          com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:256)

          at

          com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:366)

          at

          com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)

          at

          com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)

          at

          com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)

          at

          com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)

          at

          com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)

          at

          com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)

          at

          com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:774)

          at

          com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

          jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final

          at

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

          at

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

          at

          org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

          at

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

          at

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

          at

          org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

          at

          org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

          at

          org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

          at

          org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

          at

          org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

          at

          org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at

          org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at

          org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

          at

          org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

          at

          org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

          at java.lang.Thread.run(Unknown Source)

           

          >

          Version that give me the same problem:

          forge-distribution-1.4.2.Final

          forge-distribution-1.4.1.Final

          forge-distribution-1.4.0.Final

           

          Works on -> forge-distribution-1.3.3.Final

           

          Posted by forums

          Original post: https://community.jboss.org/message/843927#843927

           

          _______________________________________________

          forge-users mailing list

          forge-users@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-users

           

           

           

           

          --

          Lincoln Baxter, III

          http://ocpsoft.org

          "Simpler is better."

           

          • 2. Re: Sample error in 1.4.2 Final
            Thomas Reimer Newbie

            Hi Lincoln,

             

            I have the same problem with my an other application. The entities were created by reverse engineering. Everything works fine up to the point when I try to load an entity form on the index page. Same exception as the one of the original poster.

             

            My environment:

             

            Windows 7 x64

            Server: jBoss AS 7.1.1.Final "Brontes"

            Database: mysql 5.1

            DB Connector: mysql-connector-java-5.1.25.jar

            Java Runtime: tested with 1.6 x32 and 1.7 x64

             

            In the server runtime log I see another hint:

             

            12:08:57,855 WARNUNG [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost-127.0.0.1-8080-1) JSF1015: Anforderungspfad '/faces/abstractpart/search.xhtml' beginnt mit einem oder mehreren Vorkommen der FacesServlet-Präfix-Pfad-Zuordnung '/faces'.

            (in english "Required path '/faces/abstractpart/search.xhtml' starts with on or more appearances of FacesServlet prefix path assignment '/faces'.")

             

            Is it possible that the path has a wrong /faces in it?

             

            Greetings from Germany,

            Thomas

            • 3. Re: Sample error in 1.4.2 Final
              Euber Almeida Newbie

              Java JDK = C:\Program Files (x86)\Java\jdk1.6.0_37

              Jboss AS 7.1

              Forge 1.4.2 Final

              Windows 7 - 64 Bits.

               

              Im tried remove the .forge folder and run again the script but the problem persist.

              • 4. Re: Sample error in 1.4.2 Final
                George Gastaldi Master

                This looks like a scaffold issue.

                Do you have a WAR file that was generated by Forge 1.4.2.Final? Can you paste the exact steps to reproduce that?

                 

                Thank you very much

                • 5. Re: Sample error in 1.4.2 Final
                  Euber Almeida Newbie

                  Error found.

                   

                  Steps to reproduce

                   

                   

                  Checking the diff between 1.3.3 files and 1.4.2 i found a little diff that make the page not render.

                  This probably happens only on Windows environment

                   

                  1.3.3

                  /zipcode/search.xml

                      template="/resources/scaffold/pageTemplate.xhtml">

                   

                  1.4.2

                  /zipcode/search.xml

                      template="\resources\scaffold\pageTemplate.xhtml">

                   

                  After changing from \ to /  works.

                  • 6. Re: [forge-users] Sample error in 1.4.2 Final
                    George Gastaldi Master

                    Excellent! Could you please file a JIRA in

                    https://issues.jboss.org/browse/FORGE ? we'll fix it asap and make it

                    available in 1.4.3.Final (due in 2 weeks)

                     

                    Thanks!

                    • 8. Re: Sample error in 1.4.2 Final
                      George Gastaldi Master

                      Hi,

                      I fixed in the master branch. Could you try with the latest sources?

                      Thanks!

                      1 of 1 people found this helpful