1 2 Previous Next 24 Replies Latest reply on Aug 18, 2010 11:48 AM by jack lista

    Problem deploying on JBoss 5

    Alexandros Karypidis Novice

      If anyone is trying to run jBPM 3.3.0 on JBoss 5, please use this thread to post your experience.

      I've come across two issues, the first of which was simple to fix, whereas the other I hope someone will step up and fix:

      NOTE: I am using the "default" configuration of JBoss 5 and Sun JDK 1.5

      1) Multiple data sources are installed in server/default/deploy/jbpm

      Regardless of which database you select, the installation creates data sources for all supported DBs: jbpm-hsqldb-ds.xml, jbpm-mysql-ds.xml, jbpm-postgresql-ds.xml and jbpm-sybase-ds.xml. Remove / rename the ones you don't need so that deployment errors regardin the JbpmDS are fixed.

      2) Accessing the traditional (not GWT) console causes an exception to be thrown:

      When accessing http://localhost:8080/jbpm-console I am redirected to http://localhost:8080/jbpm-console/sa/processes.jsf

      There, I get the following error:

      00:26:37,610 ERROR [compiler] Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar
      00:26:38,375 ERROR [viewhandler] Error Rendering View[/ua/login-example.xhtml]
      java.lang.NullPointerException
       at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
       at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
       at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
       at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
       at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
       at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      00:26:38,375 ERROR [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /ua/login-example.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@192f599]
      00:26:38,375 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      


      It looks like some tag libraries are missing. Can somebody say what files to add and in what directory?


        • 1. Re: Problem deploying on JBoss 5
          Ronald van Kuijk Master

          1) Not in my case.... although I used the installer to also install JBoss AS (4.2.2). And I just tried pointing it to my existing jboss AS 5 and it also just installed the mysql ds.

          2) Not sure... the default packaging is for JBoss AS 4.2.2 afaik and the console libs are the same when I pointed it to my existing AS 5.0 installation. Maybe try packaging from the source and see if that makes a difference.

          • 2. Re: Problem deploying on JBoss 5
            Alexandros Karypidis Novice

            Hello kukeltje,

            Thank you for your reply.

            Regarding (1):

            Can you please try using the auto-installation to see if you can reproduce the problem?

            http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146928

            I tried installing manually via the GUI using both JBoss 4.2.3 and JBoss 5.0.0 and the problems went away. So it appears to me now, that the auto-installation procedure has a bug in this respect (it installs all the data sources instead of just the selected one). You can generate an auto-install XML as the last step of the installation process and then try using that script on another JBoss AS installation.

            If you can confirm this problem we should file a bug report.

            Regarding (2):

            Whether auto-installing or manually installing, I can't get the console to run on JBoss 5. JBoss 4.2.3 works just fine, but I am interested in JBoss 5.

            • 3. Re: Problem deploying on JBoss 5
              Ronald van Kuijk Master

              1: Yep it does... file a jira issue
              2: Yep same here, file a iira issue as well

              • 4. Re: Problem deploying on JBoss 5
                Ronald van Kuijk Master

                1: Yep it does... file a jira issue
                2: Yep same here, file a iira issue as well

                • 6. Re: Problem deploying on JBoss 5
                  sy sun Newbie

                  I have the same problem too. Work well under AS4.2.4, but no in AS5.0.0GA. Another thread someone met the same problem, but he/she configuration facelets libs in web.xml.
                  I see the jbpm directory and the files in it, it is same as in AS4.2.4.

                  • 9. Re: Problem deploying on JBoss 5
                    Alexandros Karypidis Novice

                    Hello kukeltje,

                    I just saw the replies. Thank you for filing the JIRAs as well.

                    • 10. Re: Problem deploying on JBoss 5
                      Ben Asmussen Newbie

                      Hi,

                      thank you for this solutions, i'm using jboss as 5.0.0 GA, JBpm 3.3.0.GA and java 1.5.0_16. Now i get a ClassCastException java.lang.String cannot be cast to java.lang.Boolean when i tried to load the

                      sa/tasks.jsf/ and sa/procdef.jsf page.

                      Where is the problem? How can i fix it?

                      StackTrace:

                      10:11:19,363 ERROR [viewhandler] Error Rendering View[/sa/tasks.xhtml]
                      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
                       at javax.faces.component.UISelectBoolean.isSelected(UISelectBoolean.java:106)
                       at com.sun.faces.renderkit.html_basic.CheckboxRenderer.getEndTextToRender(CheckboxRenderer.java:137)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:160)
                       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:88)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:96)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:86)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:96)
                       at org.jboss.gravel.simple.renderer.SimpleRenderer.encodeChildren(SimpleRenderer.java:53)
                       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                       at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
                       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                       at java.lang.Thread.run(Thread.java:595)
                      10:11:19,364 ERROR [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /sa/tasks.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@febedf]
                      10:11:19,364 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
                       at javax.faces.component.UISelectBoolean.isSelected(UISelectBoolean.java:106)
                       at com.sun.faces.renderkit.html_basic.CheckboxRenderer.getEndTextToRender(CheckboxRenderer.java:137)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:160)
                       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:88)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:96)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:86)
                       at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:96)
                       at org.jboss.gravel.simple.renderer.SimpleRenderer.encodeChildren(SimpleRenderer.java:53)
                       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                       at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
                       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                       at java.lang.Thread.run(Thread.java:595)
                      
                      


                      • 11. Re: Problem deploying on JBoss 5
                        Ronald van Kuijk Master

                        look in the jira.... there is a description and

                        • 12. Re: Problem deploying on JBoss 5
                          Rogerio Baldini Newbie

                          Hi guys...

                          I am getting this error as well and I don't know the solution...
                          Can anybody help me ?

                          I've already changed lib to jsf-facelets-1.1.15.B1.

                          Thanks,
                          Rogerio

                          15:51:37,668 ERROR [viewhandler] Error Rendering View[/app/procdef.xhtml]
                          java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
                           at javax.faces.component.UISelectBoolean.isSelected(UISelectBoolean.java:106)
                           at com.sun.faces.renderkit.html_basic.CheckboxRenderer.getEndTextToRender(CheckboxRenderer.java:137)
                           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:160)
                           at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
                           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                           at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                           at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:80)
                           at org.jboss.gravel.common.renderer.RendererBase.doEncode(RendererBase.java:96)


                          • 13. Re: Problem deploying on JBoss 5
                            Ronald van Kuijk Master

                            Like I said before... look in the jira issue, PLEASE..... The facelets update was for another (partly related) issue.... it is fixed in 3.3.1 as I see in the jira issue....

                            • 14. Re: Problem deploying on JBoss 5
                              Rogerio Baldini Newbie

                              Sorry, but I can't understand your point...

                              I am already using jBpm 3.3.1. And in jira I saw it would be solved in this version...

                              Is there some other thing I didn't see ?

                              Thanks,
                              Rogeiro.

                              1 2 Previous Next