8 Replies Latest reply on Dec 20, 2012 1:38 AM by swiderski.maciej

    JBPM Apps fail to deploy after running install.demo ant script

    dawebster

      Wanted to give the new 5.4 release a try and ran into a number of difficulties right out of the box.  First thing was the installer renamed all the persistence.xml files to have a -JPA2.xml so when the script tries to copy those into the various war files, it fails to find any.

       

      Did an edit of the build.xml to get past that and the install went fine, without errors.  When starting JBoss, all applications failed to deploy with the same general error:

       

      07:39:22,155 ERROR [org.reflections.Reflections] (MSC service thread 1-15) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/H:/software/jbpm-installer/content/jbpm-gwt-console.war/WEB-INF/classes/

          at org.reflections.vfs.Vfs.fromURL(Vfs.java:99) [reflections-0.9.5-RC2_jboss-SP1.jar:]

          at org.reflections.vfs.Vfs.fromURL(Vfs.java:89) [reflections-0.9.5-RC2_jboss-SP1.jar:]

          at org.reflections.Reflections.scan(Reflections.java:136) [reflections-0.9.5-RC2_jboss-SP1.jar:]

          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.<init>(MetaDataScanner.java:83) [errai-bus-1.1-Final.jar:1.1-Final]

          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:95) [errai-bus-1.1-Final.jar:1.1-Final]

          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:87) [errai-bus-1.1-Final.jar:1.1-Final]

          at org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl.<init>(ErraiServiceConfiguratorImpl.java:58) [errai-bus-1.1-Final.jar:1.1-Final]

          at org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl$$FastClassByGuice$$b6139751.newInstan

          .

          .

          .

       

      This is a Windows 7 64bit install against a Sun Java 1.6u29 64Bit JVM.  Googled around and browsed here, but no useful information on this error appears available.  Complete server.log output attached.

        • 1. Re: JBPM Apps fail to deploy after running install.demo ant script
          swiderski.maciej

          first of all you should not modify persistence-JPA[1,2].xml files that are in installer/db folder as they are used to generate ddl scripts. Since you used it deployment failed as these persistence.xml files do not have defined data source definitions thus connection cannot be obtained when bootstraping the entity manager factory which is the root cause of deployment failure.

           

          running simply ant install.demo.noeclipse and then ant start.demo.noeclipse will install and run all components for jbpm demo environment. There is not need to modify any of the files unless you would like to reconfigure demo environment.

           

          HTH

          • 2. Re: JBPM Apps fail to deploy after running install.demo ant script
            dawebster

            This was a pristine download.  I have not changed or editted anything, until the ant script didn't work.  In the db folder are twin sets of persistence.xml files, a PAIR for each, jbpm and task.  One has a JPA1 label and one has a JPA2 label.   The ant install.demo want to copy just jbpm-persistence.xml not jbpm-persistence-JPA2.xml or whatever.  I can fix the ant script, no problem and the thing install to completion.  That is not the problem. 

             

            The problem is the error I show above, which appears to have nothing to do with JPA persistence and everything to do with the underlying JBOSS VFS.  I'm not a JBoss guy so I have no idea what that is or why the JBoss team felt they had to write their own virtual filesystem but the error I am getting has something to do with that and how it may be interacting with my local Windows 7 filesystem.  My "H:" drive is a windows network drive....maybe that's the problem?

            • 3. Re: JBPM Apps fail to deploy after running install.demo ant script
              swiderski.maciej

              the root cause of the deployment failure is this (extracted from your server.log):

               

              07:40:35,713 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-13) HHH000299: Could not complete schema update: java.lang.UnsupportedOperationException: The application must supply JDBC connections
                        at org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:194) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:457) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
                        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
              
              

              ant script checks only if there are custom (modified by the user) persistence.xml and they are optional. Used only when you change data base for instance to mysql or whatever.

               

              Could you paste the outcome of the clean installation from full installer ant run?

               

              The other problem with vfs is harmless and could be resolved by deploying exploded version of jbpm-gwt-console.war.

               

              HTH

              • 4. Re: JBPM Apps fail to deploy after running install.demo ant script
                dawebster

                If harmless, why log it at all?  When the first thing I see in my log is ERROR, I am going to assume that is a problem I have to deal with.

                 

                Below is the output of the installer off a fresh, pristine, download from the download link.  Notice the warnings in the console-server and human task tasks.  Again, I assume Warnings are serious things that indicate stuff will not work  later, which is indeed what happens here.  Those files in those warnings, indeed, do not exist in the db folder.  They are named differently and they come in pairs, JPA1 and JPA2.  I picked one (JPA2) and went with it.  Guess I could pick the other and try that.  But out of the box, it throws warnings and the apps will not deploy and initialize even though the script runs to BUILD SUCCESSFUL.   I fix the build.xml to pick one, and those warnings disappear, but again, the apps will not initialize.  I edit nothing other than the build.xml so it can at least find a file to copy.

                 

                H:\software\jbpm-installer>ant install.demo

                Buildfile: H:\software\jbpm-installer\build.xml

                 

                download.jboss.check:

                     [echo] Checking JBoss AS download ...

                 

                download.jboss:

                 

                install.jboss:

                    [unzip] Expanding: H:\software\jbpm-installer\lib\jboss-as-7.1.1.Final.zip into H:\software\jbpm-installer

                    [unzip] Failed to change file modification time

                Terminate batch job (Y/N)? Y

                 

                H:\software\jbpm-installer>ant install.demo

                Buildfile: H:\software\jbpm-installer\build.xml

                 

                download.jboss.check:

                     [echo] Checking JBoss AS download ...

                 

                download.jboss:

                 

                install.jboss:

                    [unzip] Expanding: H:\software\jbpm-installer\lib\jboss-as-7.1.1.Final.zip into H:\software\jbpm-installer

                 

                check.jboss.version:

                 

                download.db.driver.check:

                     [echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar

                 

                download.db.driver:

                 

                install.db.files:

                 

                download.drools.guvnor.check:

                     [echo] Checking Drools Guvnor download ...

                 

                download.drools.guvnor:

                 

                install.guvnor.into.jboss:

                    [mkdir] Created dir: H:\software\jbpm-installer\target

                    [unzip] Expanding: H:\software\jbpm-installer\lib\guvnor-distribution-wars-5.5.0.Final.war into H:\software\jbpm-installer\tar

                t

                     [copy] Copying 1 file to H:\software\jbpm-installer\target\WEB-INF\classes

                      [zip] Building zip: H:\software\jbpm-installer\target\guvnor-distribution-wars-5.5.0.Final.war

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                   [delete] Deleting directory H:\software\jbpm-installer\target

                 

                download.designer.check:

                     [echo] Checking Designer download ...

                 

                download.designer:

                 

                install.designer.into.jboss:

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                 

                check.jboss.version:

                 

                created.designer.deployment.as7:

                    [touch] Creating H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\designer.war.dodeploy

                 

                download.jBPM.gwt-console.check:

                     [echo] Checking jBPM gwt-console download ...EE6

                 

                download.jBPM.gwt-console:

                 

                install.jBPM-gwt-console.into.jboss:

                 

                check.jboss.version:

                 

                download.transport.lib.check:

                 

                install.transport.lib:

                 

                install.jBPM-gwt-console.into.jboss5:

                 

                check.jboss.version:

                 

                install.jBPM-gwt-console.into.jboss7:

                 

                check.birt.as7:

                 

                download.birt.check.as7:

                     [echo] Checking birt reporting engine download for as7 ...

                 

                download.birt.as7:

                    [mkdir] Created dir: H:\software\jbpm-installer\target

                    [mkdir] Created dir: H:\software\jbpm-installer\target\jbpm-gwt-console-server-war

                    [unzip] Expanding: H:\software\jbpm-installer\lib\jbpm-gwt-console-server-5.4.0.Final-EE6.war into H:\software\jbpm-installer\ta

                rget\jbpm-gwt-console-server-war

                     [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib

                     [copy] Copying 5 files to H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes

                     [copy] Warning: Could not find file H:\software\jbpm-installer\db\jbpm-persistence.xml to copy.

                     [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes\META-INF

                 

                check.birt.as7:

                 

                install.reporting.into.jboss7:

                    [mkdir] Created dir: H:\software\jbpm-installer\birt

                    [unzip] Expanding: H:\software\jbpm-installer\lib\birt-runtime-3_7_0.zip into H:\software\jbpm-installer\birt

                     [copy] Copying 77 files to H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib

                    [mkdir] Created dir: H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\output

                    [mkdir] Created dir: H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports

                     [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports

                   [delete] Deleting directory H:\software\jbpm-installer\birt

                 

                install.dependencies:

                      [zip] Building zip: H:\software\jbpm-installer\target\jbpm-gwt-console-server-5.4.0.Final.war

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                   [delete] Deleting directory H:\software\jbpm-installer\target

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration

                 

                download.jBPM.ht-war.check:

                     [echo] Checking jBPM human task war download ...

                 

                download.jBPM-ht.war:

                 

                download.transport.lib.check:

                 

                install.transport.lib:

                 

                install.jBPM-ht.into.jboss:

                 

                install.ht.war.into.jboss5:

                 

                install.ht.war.into.jboss7:

                    [mkdir] Created dir: H:\software\jbpm-installer\target

                    [mkdir] Created dir: H:\software\jbpm-installer\target\jbpm-human-task-war

                    [unzip] Expanding: H:\software\jbpm-installer\lib\jbpm-human-task-war-5.4.0.Final-EE6.war into H:\software\jbpm-installer\target

                \jbpm-human-task-war

                     [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-human-task-war\WEB-INF

                     [copy] Warning: Could not find file H:\software\jbpm-installer\db\task-persistence.xml to copy.

                     [copy] Warning: Could not find file H:\software\jbpm-installer\db\Taskorm.xml to copy.

                      [zip] Building zip: H:\software\jbpm-installer\target\jbpm-5.4.0.Final-human-task-war.war

                     [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                   [delete] Deleting directory H:\software\jbpm-installer\target

                 

                download.form.builder.check:

                     [echo] Checking Form Builder download ...

                 

                download.form.builder:

                 

                install.form.builder.into.jboss:

                    [mkdir] Created dir: H:\software\jbpm-installer\target

                    [mkdir] Created dir: H:\software\jbpm-installer\target\jbpm-form-builder-war

                    [unzip] Expanding: H:\software\jbpm-installer\lib\jbpm-5.4.0.Final-form-builder.war into H:\software\jbpm-installer\target\jbpm-

                form-builder-war

                [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
                [copy] Copying 1 file to H:\software\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
                  [zip] Building zip: H:\software\jbpm-installer\target\jbpm-5.4.0.Final-form-builder.war
                [copy] Copying 1 file to H:\software\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

                   [delete] Deleting directory H:\software\jbpm-installer\target

                 

                download.eclipse.check:

                [echo] Checking Eclipse download ...

                 

                download.eclipse:

                 

                download.eclipse.gef.check:

                [echo] Checking Eclipse GEF download ...

                 

                download.eclipse.gef:

                 

                install.eclipse:

                 

                unzipEclipse:

                [unzip] Expanding: H:\software\jbpm-installer\lib\eclipse-java-juno-SR1-win32-x86_64.zip into H:\software\jbpm-installer

                 

                untarEclipse:

                [unzip] Expanding: H:\software\jbpm-installer\lib\GEF-SDK-3.6.2.zip into H:\software\jbpm-installer

                 

                download.jBPM.bin.check:

                [echo] Checking jBPM binaries download ...

                 

                download.jBPM.bin:

                 

                install.jBPM.runtime:

                [mkdir] Created dir: H:\software\jbpm-installer\runtime
                [unzip] Expanding: H:\software\jbpm-installer\lib\jbpm-5.4.0.Final-bin.zip into H:\software\jbpm-installer\runtime

                 

                download.droolsjbpm.eclipse.check:

                [echo] Checking jBPM and Drools Eclipse download ...

                 

                download.droolsjbpm.eclipse:

                 

                install.droolsjbpm-eclipse.into.eclipse:

                [mkdir] Created dir: H:\software\jbpm-installer\eclipse\droolsjbpm-update-site
                [unzip] Expanding: H:\software\jbpm-installer\lib\org.drools.updatesite-5.5.0.Final-assembly.zip into H:\software\jbpm-installer

                \eclipse\droolsjbpm-update-site

                [copy] Copying 4 files to H:\software\jbpm-installer\eclipse\features
                [copy] Copying 5 files to H:\software\jbpm-installer\eclipse\plugins

                   [delete] Deleting directory H:\software\jbpm-installer\eclipse\droolsjbpm-update-site

                 

                install.demo:

                 

                BUILD SUCCESSFUL

                Total time: 86 minutes 57 seconds

                • 5. Re: JBPM Apps fail to deploy after running install.demo ant script
                  swiderski.maciej

                  these as just warning as the ant scripts provides way to configure other data base for jbpm and simply rerun installation. So these are not causing any troubles. As it comes to the exception of vfs it's more of jboss as issue than jbpm so not much could be done in this regards.

                   

                  Looking at the ant output everything looks ok, could you upload the server log from clean installation?

                   

                  HTH

                  • 6. Re: JBPM Apps fail to deploy after running install.demo ant script
                    dawebster

                    I think I've finally got it.  If I ignore the warnings, then tried to manually deploy the human-task war it deploys, finds the in-memory database, and starts doing its thing.  The rest of the apps fail to deploy, though, but the reason is their deployments are hitting the default timeout limit of 300s and rolling back.  That seems like an awfully short default timeout for such large deployment archives and complex initialization they all go through.  Probably because I'm doing this on a network drive with lots of latency.  Increasing the deployment timeout of the scanner in the standalone.xml to 1800, rebooting the jboss server, seems to have done the trick.  All have deployed now.

                     

                    One note though, the server logs contain dozens of warnings on deployments about class path entries not pointing to valid jars and invalid jar files, and so on, but deployment seems successful anyway.  All these inconsequential errors and warning are disconcerting, especially when one works in an enterprise environment that does not tolerate a single log entry in any production app or container runtime with a log entry severity level over INFO.....

                     

                    Anyway, thanks for the help, will move forward with my POC.  Hoping to replace Oracle SOA Suite, is the main point of my exercise....

                    • 7. Re: JBPM Apps fail to deploy after running install.demo ant script
                      dawebster

                      Final conclusion....Don't attempt to perform JBoss Middleware Proof of Concepts tire kicking on Network drives under Windows.  Simply too much latency at all levels.  The stuff runs fine on local drives.

                       

                      And a general comment on JBoss Middleware community releases; if it's "inconsequential", log levels should be informational at most.  Warnings are usually serious meaning things will not run normally in some cases and Errors are, well ERRORS, meaning something is broken.  By the time this stuff gets into supported Red Hat channels most of it cleaned out, but the communty stuff, in general, throws out way to many messages at high severity levels that appear to be inconsequential.

                      • 8. Re: JBPM Apps fail to deploy after running install.demo ant script
                        swiderski.maciej

                        David, glad to hear you overcome the problems with initial steps. And thanks a lot for your feed back, if you feel something should be worked on directly please open a jira for it that way we can work on it as it's known issue.

                        Moreover good luck with PoC and post any questions or comments here throughout your journey with  jBPM, we are more than interested to see success stories here (or input on how we can make it easier and more efficient to move to jBPM)

                         

                        Cheers