Error while building with build.deploy.xml
mkrishna143 Jan 3, 2006 12:46 AMHi 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