Hello all,
Some Background:
I am a newbie to jBPM (and a "relative" java novice) - so apologies if my 
questions seem dumb. I am in the process of trying to determine a workflow 
engine to be embedded within the applications that my company develops. So far 
I like what I see with regards to jBPM. I cannot "disturb" my brain trust of 
developers (who are java brainiacs) until I can determine that I can get this 
thing up and running in our environment.
I have downloaded the starter kit and unzipped.
Downloaded Eclipse and I have got the designer working inside eclipse
Have run thru the example in the wiki and all good.
Now I want to make this work over a MSSQL DB and store my defined processes 
wihtin that DB and use that as the basis for persistence etc.
So decided to work my way thru the readme in the jbpm-db folder that comes 
along with the starter kit - as it seemed to say that this provides the 
mechanism to make jbpm run over any supported DB (including MSSQL).

Problems Encountered:
I followed the instructions, I even downloaded apache ant and got that up and 
running. I even managed to work thru the first issue with the "ant mssql.test" 
- this seems to require JDK 1.5 in order to compile correctly - though the 
readme says it will work with 1.4 (not so).
Anyhow - got past that and now i am running the test - but I get a set or 
"errors" during the test, and when I look at the testresults folder using the 
summary the errors are documented there.

Here is the section of the console that contains the errors (it is large so I 
have not included the whole thing - let me know if there is anything else 
needed to be able to detemine what the problem is):

    [junit] 15:24:24,468 [main] DEBUG JbpmContext : creating JbpmContext
    [junit] 15:24:24,468 [main] INFO  SchemaExport : Running hbm2ddl schema 
export
    [junit] 15:24:24,468 [main] INFO  SchemaExport : exporting generated schema 
to database
    [junit] 15:24:24,468 [main] INFO  C3P0ConnectionProvider : C3P0 using 
driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:mem:.;sql.enforc
e_strict_size=true
    [junit] 15:24:24,468 [main] INFO  C3P0ConnectionProvider : Connection 
properties: {user=sa, password=****}
    [junit] 15:24:24,468 [main] INFO  C3P0ConnectionProvider : autocommit mode: 
false
    [junit] 15:24:24,484 [main] DEBUG JbpmContext : closing JbpmContext
    [junit] 15:24:24,484 [main] DEBUG JbpmContextInfo : creating jbpm context 
with service factories '[message, scheduler, logging, persiste
nce, authentication]'
    [junit] 15:24:24,484 [main] DEBUG JbpmContext : creating JbpmContext
    [junit] 15:24:24,484 [main] INFO  SchemaExport : Running hbm2ddl schema 
export
    [junit] 15:24:24,484 [main] INFO  SchemaExport : exporting generated schema 
to database
    [junit] 15:24:24,484 [main] INFO  C3P0ConnectionProvider : C3P0 using 
driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:mem:.;sql.enforc
e_strict_size=true
    [junit] 15:24:24,484 [main] INFO  C3P0ConnectionProvider : Connection 
properties: {user=sa, password=****}
    [junit] 15:24:24,484 [main] INFO  C3P0ConnectionProvider : autocommit mode: 
false
    [junit] 15:24:24,484 [main] DEBUG JbpmContext : closing JbpmContext
    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 1.391 sec
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
    [junit] Running org.jbpm.taskmgmt.log.TaskLogDbTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Tests FAILED (crashed)
    [junit] Running org.jbpm.context.exe.HibernateCustomizationTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
    [junit] Running org.jbpm.context.exe.HibernateCustomizationTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test org.jbpm.context.exe.HibernateCustomizationTest FAILED 
(crashed)
[junitreport] Processing 
C:\JBoss\jbpm-db\build\mssql\testresults\xml\TESTS-TestSuites.xml to 
C:\DOCUME~1\Steve\LOCALS~1\Temp\null1126484348

[junitreport] Loading stylesheet 
jar:file:/C:/apache/ant/apache-ant-1.7.0/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xs
l/junit-frames.xsl
[junitreport] Transform time: 406ms
[junitreport] Deleting: C:\DOCUME~1\Steve\LOCALS~1\Temp\null1126484348

BUILD SUCCESSFUL
Total time: 3 seconds
C:\JBoss\jbpm-db>


In the testresults summary I have this (note I only inclued the first couple of 
test errors - there are more but I dare say if I can fix the first they will 
all fall into line):

All Tests
Class Name Status Type Time(s) 
ByteArrayDbTest testManyBlocks Error com/mchange/v2/c3p0/PoolConfig

java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig
at 
org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at 
org.hibernate.tool.hbm2ddl.SchemaExport$ProviderConnectionHelper.getConnection(SchemaExport.java:466)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:183)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:135)
at 
org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:107)
at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:415)
at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:407)
at org.jbpm.db.AbstractDbTestCase.createSchema(AbstractDbTestCase.java:122)
at org.jbpm.db.AbstractDbTestCase.setUp(AbstractDbTestCase.java:55)
 1.359 
ByteArrayDbTest testEmptyByteArray Error com/mchange/v2/c3p0/PoolConfig

java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig
at 
org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at 
org.hibernate.tool.hbm2ddl.SchemaExport$ProviderConnectionHelper.getConnection(SchemaExport.java:466)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:183)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:135)
at 
org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:107)
at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:415)
at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:407)
at org.jbpm.db.AbstractDbTestCase.createSchema(AbstractDbTestCase.java:122)
at org.jbpm.db.AbstractDbTestCase.setUp(AbstractDbTestCase.java:55)
 


Is there something that I am missing or doing wrong?
Are there any pre-requisites other than those mentioned in the db readme?

if anyone can provide some pointers as to where I might look - I would greatly 
appreciate it.

Many thanks,
monkmanusa.






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001579#4001579

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001579
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to