13 Replies Latest reply on Jan 10, 2012 4:40 AM by murthy516

    Building JBPM Console (revision 1047)

    mcsawyer

      Hello!

       

      I'm trying to build JBPM  Console (last revision 1047)...

       

      I'm very newbie (but few month ago i build  the console without error), ok, When i run maven i obtain these errors:

       

      [ERROR]  Failed to execute goal on project gwt-console: Missing:
      ----------
      1)  org.jboss.errai:errai-tools:jar:1.1-M1

      2)  org.jboss.errai:errai-widgets:jar:sources:1.1-M1

      3)  org.jboss.errai:errai-common:jar:1.1-M1

      4)  org.jboss.errai:errai-workspaces:jar:1.1-M1

      5)  org.jboss.errai:errai-bus:jar:1.1-M1

       

      ----------
      5 required artifacts  are missing.

       

      for  artifact:
        org.jboss.bpm:gwt-console:pom:2.1-SNAPSHOT

       

      from the  specified remote repositories:
        repository.jboss.org (http://repository.jboss.org/maven2,  releases=true, snapshots=true),
        snapshots.jboss.org (http://snapshots.jboss.org/maven2,  releases=false, snapshots=true),
        maven2.java.net (http://download.java.net/maven/2/,  releases=true, snapshots=true),
        maven1.java.net (http://download.java.net/maven/1/,  releases=true, snapshots=true),
         repository.codehaus.org (http://repository.codehaus.org,  releases=true, snapshots=false),
        gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/,  releases=true, snapshots=true),
        central (http://repo1.maven.org/maven2, releases=true,  snapshots=false)

       

       

      I suppose that pom are not updated with new version of errai...  or maybe I need do something else...

       

      thank you!

        • 1. Re: Building JBPM Console (revision 1047)
          mcsawyer

          I solve my problem... (i guess)

           

          I added this repositoy (to pom.xml)

           

          https://repository.jboss.org/nexus/content/repositories/releases

           

           

          maven clean

          maven install

           

           

          And I put in my tomcat....

          gwt-console-jbpm.war

          gwt-console-server.war (I must rename it from gwt-console-server-jbpm.war)

           

          and it seems that console: 2.1 snapshot it's working ok...

           

          I suppose that i shouldn't do anything else...

          • 2. Re: Building JBPM Console (revision 1047)
            shayrock

            Hi John,

             

            I was having the same problem and changed the pom.xml file in trunk as below.

             

            <distributionManagement>
            <repository>
                  <id>jboss-releases-repository</id>
                  <name>JBoss Releases Repository</name>
                  <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
                </repository>

             


            <snapshotRepository>
                  <id>jboss-snapshots-repository</id>
                  <name>JBoss Snapshots Repository</name>
                  <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
                </snapshotRepository>
               
            </distributionManagement>

             

            Then I saved the pom.xml and tried 'mvn clean'. But I still get the same error saying those errai jar files are missing

             

            Can you please post the <distributionManagement> part of your pom.xml file that you changed.

             

            Thanks

            Shanika

            • 3. Re: Building JBPM Console (revision 1047)
              mcsawyer

              Hello Shanika..

               

              First of all, I change inside distributionManagement the jboss-releases-repository

               

              <distributionManagement>
              <repository>
                    <id>jboss-releases-repository</id>
                    <name>JBoss Releases Repository</name>
                    <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
                  </repository>

               

              but the error continues... after I add inside <repositories>

               

              <repository>
                         <id>myerrai</id>
                         <name>myerrai</name>
                          <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
                 </repository>

               

              And it works fine for me... I don't known if it's necessary make 2 changes... or only the last...

               

              I attach pom file that i use for rebuild all..

               

              Best Regards!

              • 4. Re: Building JBPM Console (revision 1047)
                shayrock

                Hi John,

                 

                It worked for me too. I just replaced my pom.xml in trunk with the pom.xml that you attached. Thanks alot for the help.

                 

                Regards

                Shanika

                • 5. Re: Building JBPM Console (revision 1047)
                  heiko.braun

                  thanks for the note. the jboss repositories changed recently and the console build didn't reflect it. however i've updated them now.

                  • 6. Re: Building JBPM Console (revision 1047)
                    jlgranda81

                    Hi Heiko, greetings from Ecuador

                     

                    i build jbpm console from source. I get sources from https://github.com/heiko-braun/bpm-console, and load this at eclipse.

                    I run sucessfully mvn install, then i replace the jbpm/gwt-console-jbpm.war  and gwt-console-server-jbpm.war with my generated files, and replace any jar into jpm-service.sar. Finally a try to deploy, but

                     

                    StandardWrapper.Throwable
                    com.google.inject.ProvisionException: Guice provision errors:

                     

                    1) Error injecting constructor, java.lang.NoClassDefFoundError: org/jboss/bpm/monitor/model/metric/Timespan
                      at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:50)
                      while locating org.jboss.errai.bus.server.service.ErraiServiceImpl
                      while locating org.jboss.errai.bus.server.service.ErraiService

                     

                    1 error
                        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
                        at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
                        at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.buildService(AbstractErraiServlet.java:117)
                        at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
                        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
                        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                        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:829)
                        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                        at java.lang.Thread.run(Thread.java:619)
                    Caused by: java.lang.NoClassDefFoundError: org/jboss/bpm/monitor/model/metric/Timespan
                        at java.lang.Class.getDeclaredMethods0(Native Method)

                     

                    please, help me.

                    • 7. Re: Building JBPM Console (revision 1047)
                      heiko.braun

                      Greetings Jose,

                       

                      you need to include the bpaf-explorer jars: https://github.com/heiko-braun/bpaf-explorer

                      the one missing is build from the 'model' module.

                      • 8. Re: Building JBPM Console (revision 1047)
                        jlgranda81

                        Tranks Heiku.

                         

                        I included it, now jbpm-console run sucessfully.

                        • 9. Re: Building JBPM Console (revision 1047)
                          jlgranda81

                          Hi Heiko, please help me again.

                           

                          I run jbpm console at 8180 port, the console run nice, but when try to view task with form included, i get localhost:8080 no found.

                           

                          I change configuration at console.config.js add consoleServerUrl: "http://localhost:8180/gwt-console-server",   reportServerUrl: "http://localhost:8180/report", porperties, the problem persist.

                           

                          Any suggestion?

                          • 10. Re: Building JBPM Console (revision 1047)
                            heiko.braun

                            It's part of the jbpm engine configuration:

                             

                            this.webServiceHost = (String) processEngine.get("jbpm.console.server.host");

                                this.webServicePort = (String) processEngine.get("jbpm.console.server.port");

                             

                             

                            Excerpt from "org/jbpm/integration/console/forms/AbstractFormDispatcher.java"

                             

                            this.webServiceHost = (String) processEngine.get("jbpm.console.server.host");

                            this.webServicePort = (String) processEngine.get("jbpm.console.server.port");

                             

                             

                            • 11. Re: Building JBPM Console (revision 1047)
                              jlgranda81

                              Hi Heiko, I change jbpm.console.cfg.xml into jbmp.jar. Now render forms sucessfully.

                               

                              Thank you.

                              • 12. Re: Building JBPM Console (revision 1047)
                                murthy516

                                Hi,

                                I also strucked with same problem.I referred https://github.com/heiko-braun/bpaf-explorer link.Should i need to make the java files present in model flder as  jar files to avoid TimeSpan error?

                                 

                                I'm using JBPM 5.1 installer with JBoss 5.1

                                 

                                After making the java files as jar i included the TimeSpan.jar file in Jboss/server/default/lib directory.But,still same exception

                                 

                                1) Error injecting constructor, java.lang.NoClassDefFoundError: org/jboss/bpm/monitor/model/metric/Timespan
                                  at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:50)
                                  while locating org.jboss.errai.bus.server.service.ErraiServiceImpl
                                  while locating org.jboss.errai.bus.server.service.ErraiService

                                 

                                1 error
                                    at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
                                    at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
                                    at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.buildService(AbstractErraiServlet.java:117)
                                    at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
                                    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
                                    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
                                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                                    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:829)
                                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                                    at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.lang.NoClassDefFoundError: org/jboss/bpm/monitor/model/metric/Timespan
                                    at java.lang.Class.getDeclaredMethods0(Native Method)

                                 

                                Where and which jars must be included(from the link) in the JBoss installed directory?Please suggest me.Please

                                 

                                Thanks in Advance

                                 

                                Krishna

                                • 13. Re: Building JBPM Console (revision 1047)
                                  murthy516

                                  Hi Jose,

                                   

                                  Please suggest me,I'm unable to open JBPM console even if i addded the above jars.

                                  2012-01-10 14:57:43,468 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (main) Adding singleton resource org.jboss.bpm.console.server.InfoFacade from Application javax.ws.rs.core.Application

                                  2012-01-10 14:57:43,468 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (main) Adding singleton resource org.jboss.bpm.console.server.ProcessMgmtFacade from Application javax.ws.rs.core.Application

                                  2012-01-10 14:57:43,469 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (main) Adding singleton resource org.jboss.bpm.console.server.TaskMgmtFacade from Application javax.ws.rs.core.Application

                                  2012-01-10 14:57:43,568 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (main) Adding singleton resource org.jboss.bpm.console.server.UserMgmtFacade from Application javax.ws.rs.core.Application

                                  2012-01-10 14:57:43,568 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (main) Adding singleton resource org.jboss.bpm.report.ReportFacade from Application javax.ws.rs.core.Application

                                  2012-01-10 14:57:43,719 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/default-bpm-console

                                  2012-01-10 14:57:44,722 INFO  [org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap] (main) Bootstrap Errai

                                  2012-01-10 14:57:44,741 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (main) using dispatcher implementation: org.jboss.errai.bus.server.AsyncDispatcher

                                  2012-01-10 14:57:44,755 INFO  [org.jboss.errai.bus.server.WorkerFactory] (main) initializing async worker pools (poolSize: 5; workerTimeout: 5000)

                                  2012-01-10 14:57:44,758 INFO  [org.jboss.errai.bus.server.WorkerFactory] (main) starting worker pool.

                                  2012-01-10 14:57:44,765 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (main) using session provider implementation: org.jboss.errai.bus.server.HttpSessionProvider

                                  2012-01-10 14:57:44,782 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (main) beging searching for Errai extensions ...

                                  2012-01-10 14:57:44,795 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (main) found extension org.jboss.errai.persistence.server.PersistenceConfiguration

                                  2012-01-10 14:57:44,804 INFO  [org.jboss.errai.persistence.server.PersistenceConfiguration] (main) Configuring persistence extension.

                                  2012-01-10 14:57:44,804 INFO  [org.jboss.errai.persistence.server.PersistenceConfiguration] (main) Configuring persistence extension.

                                  2012-01-10 14:57:44,804 INFO  [org.jboss.errai.persistence.server.PersistenceConfiguration] (main) Stopped configuring persistence extension, can't find errai.factory.jndi.name.

                                  2012-01-10 14:57:44,804 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (main) found extension org.jboss.errai.tools.monitoring.MonitorExtension

                                  2012-01-10 14:57:44,880 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (main) added extension binding: org.jboss.errai.bus.client.framework.ModelAdapter

                                  2012-01-10 14:57:44,880 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (main) total extension binding: 1

                                  2012-01-10 14:57:44,936 INFO  [STDOUT] (main) Failed to create servicebpel not bound

                                  2012-01-10 14:57:44,955 INFO  [STDOUT] (main) Failed to create servicebpel not bound

                                  2012-01-10 14:57:44,968 INFO  [STDOUT] (main) Failed to create servicebpel not bound

                                  2012-01-10 14:57:44,973 INFO  [STDOUT] (main) Failed to create servicebpel not bound

                                  2012-01-10 14:57:44,978 INFO  [org.jboss.errai.bus.server.service.metadata.EntityProcessor] (main) Marked class org.jboss.bpm.console.client.model.HistoryActivityInstanceRef as serializable.

                                  2012-01-10 14:57:44,978 INFO  [org.jboss.errai.bus.server.service.metadata.EntityProcessor] (main) Marked class org.jboss.bpm.console.client.model.HistoryProcessInstanceRef as serializable.

                                  2012-01-10 14:57:44,978 INFO  [org.jboss.errai.bus.server.service.metadata.EntityProcessor] (main) Checking ErraiApp.properties for configured types ...

                                  2012-01-10 14:57:44,980 INFO  [org.jboss.errai.bus.server.service.bootstrap.BootstrapContext] (main) Running deferred bootstrap tasks ...

                                  2012-01-10 14:57:44,980 INFO  [org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap] (main) Bootstrap complete. Ready to rumble!

                                  2012-01-10 14:57:45,100 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/jmx-console

                                  2012-01-10 14:57:45,261 INFO  [org.apache.coyote.http11.Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080

                                  2012-01-10 14:57:45,376 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009

                                  2012-01-10 14:57:45,394 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:12s:402ms

                                   

                                  This is My Exception trace.Unable to deploy that war file from link