5 Replies Latest reply on Mar 8, 2011 6:02 AM by lalit.awadhwal

    Error while building with build.deploy.xml

    mkrishna143

      Hi all,
      I have tried to build the websale application without doing any modification.
      Firstly I modified my system properties in the jbpm.properties.
      All the configurations such as
      jbpm.version, ant.home, jbpm.home, jboss.version,
      jboss.source.configuration, jboss.home and jbpm.gpd.site.file
      are given correctly.
      After that I tried to build that with the ant tool using the command
      ant -buildfile build.xml
      It shows the build is successful.
      Only the main headings are given below:

      compile.jbpm:

      build.jbpm:
      build.jbpm.src:
      compile.identity:
      build.identity:
      build.identity.src:
      compile.jbpm.test:
      compile.webapp:
      compile.identity.test:
      compile.examples:
      compile:
      build.webapp:
      build.service.archive:
      build.converter:
      build:

      BUILD SUCCESSFUL


      After finished this, I tried to build using the build.deploy.xml
      Using the command,
      ant -buildfile build.deploy.xml

      It was not successful, I tried it with both with the server started and without the server started.
      Only the main headings are given below since the output is so long.

      The output is:

      Buildfile: build.deploy.xml
      delete.jbpm.configuration:
      build.webapp:
      compile.jbpm:
      compile.jbpm.test:
      compile.identity:
      compile.webapp:
      compile.identity.test:
      compile.examples:
      compile:
      build.webapp:
      build.service.archive:
      compile.jbpm:
      build.jbpm:
      compile.identity:
      build.identity:
      build.service.archive:
      declare.jbpm.tasks:
      compile.jbpm:
      build.jbpm:
      build.jbpm.src:
      compile.identity:
      build.identity:
      build.identity.src:
      compile.jbpm.test:
      compile.webapp:
      compile.identity.test:
      compile.examples:
      compile:
      build.webapp:
      build.service.archive:
      build.converter:
      build:
      db.clean:
      [delete] Deleting directory D:\Java\jbpm-3.0.2\build\db
      [mkdir] Created dir: D:\Java\jbpm-3.0.2\build\db
      db.start:
      [starthsqldb] starting 'java -cp D:Javajboss-4.0.3/server/default/lib/hsqldb.jar org.hsqldb.Server -database D:\Java\jbpm-3.0.2/build/db/localDB -port 1701'...
      [starthsqldb] Exception in thread "Thread-0" java.lang.NullPointerException
      [starthsqldb] at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:1981)
      [starthsqldb] at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2058)
      [starthsqldb] at org.apache.tools.ant.Project.log(Project.java:367)
      [starthsqldb] at org.apache.tools.ant.Task.log(Task.java:346)
      [starthsqldb] at org.apache.tools.ant.Task.log(Task.java:334)
      [starthsqldb] at org.jbpm.ant.Launcher.run(Launcher.java:30)
      [loadidentities] java.sql.SQLException: socket creation error
      [loadidentities] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
      [loadidentities] at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
      [loadidentities] at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
      [loadidentities] at org.hsqldb.jdbcDriver.connect(Unknown Source)
      [loadidentities] at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:68)
      [loadidentities] at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource
      .java:87)
      [loadidentities] at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:83)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.assimilateResource(BasicResourcePool.java:884)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:601)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.access$400(BasicResourcePool.java:31)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1079)
      [loadidentities] at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:354)

      [loadidentities] 10:47:22,084 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Node]; using defaults.
      com.mchange.v2.resourcepool.BasicResourcePool@b754b2 -- close() called multiple times.
      [loadidentities] 10:47:26,582 WARN EhCacheProvider : Could not find configuration [org.jbpm.instantiation.Delegation]; using defa
      ults.
      [loadidentities] 10:47:26,910 WARN EhCacheProvider : Could not find configuration [org.jbpm.taskmgmt.def.Task]; using defaults.
      [loadidentities] 10:47:27,020 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.ProcessDefinition]; using d
      efaults.
      [loadidentities] 10:47:27,176 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.ExceptionHandler]; using defaults.
      [loadidentities] 10:47:27,191 WARN EhCacheProvider : Could not find configuration [org.jbpm.module.def.ModuleDefinition]; using defaults.
      [loadidentities] 10:47:27,691 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Action]; using defaults.
      [loadidentities] 10:47:27,785 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Event]; using defaults.
      [loadidentities] 10:47:27,847 WARN EhCacheProvider : Could not find configuration [org.jbpm.context.def.VariableAccess]; using defaults.
      [loadidentities] 10:47:27,925 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Transition]; using defaults.
      [loadidentities] 10:47:28,144 WARN EhCacheProvider : Could not find configuration [org.jbpm.taskmgmt.def.TaskController]; using defaults.
      [loadidentities] 10:47:29,331 INFO SessionFactoryObjectFactory : Not binding factory to JNDI, no JNDI name configured
      [loadidentities] 10:47:29,331 INFO SessionFactoryImpl : Checking 0 named queries
      [loadidentities] loading identities from D:\Java\jbpm-3.0.2/src/resources/hsqldb/identity.db.xml ...
      [loadidentities] java.sql.SQLException: socket creation error
      [loadidentities] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
      [loadidentities] at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
      [loadidentities] at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
      [loadidentities] at org.hsqldb.jdbcDriver.connect(Unknown Source)
      [loadidentities] at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:68)
      [loadidentities] at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource
      .java:87)
      [loadidentities] at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:83)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.assimilateResource(BasicResourcePool.java:884)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:601)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool.access$400(BasicResourcePool.java:31)
      [loadidentities] at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1079)
      [loadidentities] at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:354)


      [loadidentities] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@fa39d7 -- Acquisition Attempt Failed!!! Clearing pending acquires.
      [loadidentities] While trying to acquire a needed new resource, we failed
      [loadidentities] to succeed more than the maximum number of allowed
      [loadidentities] acquisition attempts (30).
      [loadidentities] 10:57:07,060 WARN JDBCExceptionReporter : SQL Error: 0, SQLState: null
      [loadidentities] 10:57:07,060 ERROR JDBCExceptionReporter : An SQLException was provoked by the following failure: com.mchange.v2.
      resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.
      [loadidentities] 10:57:07,060 ERROR JbpmSession : org.hibernate.exception.GenericJDBCException: Cannot open connection

      BUILD FAILED
      D:\Java\jbpm-3.0.2\build.deploy.xml:46: java.lang.RuntimeException: couldn't begin a transaction


      Anyone could explain what is the reason for this exception???
      Any help will be greatly appreciated.

      Regards,
      Krishnakumar M


        • 1. Re: Error while building with build.deploy.xml
          mkrishna143

          Hi all,

          The build.deploy.xml is now corretcly working.

          db.start:
          [starthsqldb] starting 'java -cp D:Javajboss-4.0.3/server/default/lib/hsqldb.jar org.hsqldb.Server -database D:\Java\jbpm-3.0.2/build/db/localDB -port 1701'...
          [starthsqldb] Exception in thread "Thread-0" java.lang.NullPointerException


          I made a small mistake. I used the backward slash instead of the forward slash... in the jbpm.properties file
          So if any user gets the
          Exception in thread "Thread-0" java.lang.NullPointerException

          exception,
          Check the jbpm.properties file.

          Thanks for the forum support.
          Regards,
          Krishnakumar M



          • 2. Re: Error while building with build.deploy.xml
            kukeltje

            [loadidentities] java.sql.SQLException: socket creation error

            Is there something already running on port 1701?

            • 3. Re: Error while building with build.deploy.xml
              mkrishna143

              Ronald,

              Is there something already running on port 1701?

              There is no service running on the port 1701.
              I had checked with the netstat command and the port is free.
              The problem is now solved.
              Thanks again for the support.

              Regards,
              Krishnakumar M





              • 4. jbpm环境æ�建出了问题
                ljh0242

                Buildfile: D:\workspace\jbpm.3\build.deploy.xml
                delete.jbpm.configuration:
                build.webapp:
                compile.jbpm:
                compile.identity:
                compile.jbpm.test:
                compile.webapp:
                compile.identity.test:
                compile.examples:
                compile:
                build.webapp:
                build.service.archive:
                compile.jbpm:
                build.jbpm:
                compile.identity:
                build.identity:
                build.service.archive:
                declare.jbpm.tasks:
                compile.jbpm:
                build.jbpm:
                build.jbpm.src:
                compile.identity:
                build.identity:
                build.identity.src:
                compile.jbpm.test:
                compile.webapp:
                compile.identity.test:
                compile.examples:
                compile:
                build.webapp:
                build.service.archive:
                build.converter:
                [jar] Warning: skipping jar archive D:\workspace\jbpm.3\build\converter.jar because no files were included.
                build:
                db.clean:
                [delete] Deleting directory D:\workspace\jbpm.3\build\db
                [mkdir] Created dir: D:\workspace\jbpm.3\build\db
                db.start:
                [starthsqldb] starting 'java -cp H:jboss-4.2.2.GAjboss-4.2.2.GA/server/default/lib/hsqldb.jar org.hsqldb.Server -database D:\workspace\jbpm.3/build/db/localDB -port 1701'...
                [starthsqldb] Exception in thread "Thread-0" java.lang.NullPointerException
                [starthsqldb] at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2143)
                [starthsqldb] at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2271)
                [starthsqldb] at org.apache.tools.ant.Project.log(Project.java:449)
                [starthsqldb] at org.apache.tools.ant.Task.log(Task.java:294)
                [starthsqldb] at org.apache.tools.ant.Task.log(Task.java:281)
                [starthsqldb] at org.jbpm.ant.Launcher.run(Launcher.java:51)
                create.db:
                [jbpmschema] 14:17:56,984 [main] DEBUG AntHelper : creating hibernate configuration from cfg 'D:\workspace\jbpm.3/src/config.files/hibernate.cfg.xml' and properties 'D:\workspace\jbpm.3/src/resources/hsqldb/create.db.hibernate.properties'

                BUILD FAILED
                D:\workspace\jbpm.3\build.deploy.xml:47: java.lang.NoClassDefFoundError: org/dom4j/DocumentException

                Total time: 4 seconds

                • 5. Error while building with build.deploy.xml
                  lalit.awadhwal

                  Hi all,

                   

                  I am also facing a similar kind of problem

                   

                  I am trying to install JBPM 4.3 on my machine.I am using apache tomcat 6.0.

                  when I run ant demo.setup.tomcat,it installs tomcat,hsqldb server but after that the build fails and gives following output

                   

                  [jbpm-deploy]   at org.apache.tools.ant.launch.Launcher.main(Launcher.ja

                  [jbpm-deploy] Caused by: java.sql.SQLException: socket creation error

                  [jbpm-deploy]   at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

                  [jbpm-deploy]   at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)

                  [jbpm-deploy]   at org.hsqldb.jdbcDriver.getConnection(Unknown Source)

                  [jbpm-deploy]   at org.hsqldb.jdbcDriver.connect(Unknown Source)

                  [jbpm-deploy]   at java.sql.DriverManager.getConnection(Unknown Source)
                  [jbpm-deploy]   at org.hibernate.connection.DriverManagerConnectionProvider.getC
                  onnection(DriverManagerConnectionProvider.java:133)
                  [jbpm-deploy]   at org.hibernate.jdbc.ConnectionManager.openConnection(Connectio
                  nManager.java:446)
                  [jbpm-deploy]   ... 70 more

                  BUILD FAILED
                  C:\jbpm-4.3\install\build.xml:411: The following error occurred while executing
                  this line:
                  C:\jbpm-4.3\install\build.xml:557: The following error occurred while executing
                  this line:
                  C:\jbpm-4.3\examples\build.xml:88: org.hibernate.exception.JDBCConnectionExcepti
                  on: Cannot open connection.

                   

                  any inputs would be highly valued.