Anand BH [
https://community.jboss.org/people/andynil.best] created the discussion
"Re: Need help for developing web application using JBPM5.4"
To view the discussion, visit:
https://community.jboss.org/message/802893#802893
--------------------------------------------------------------
Hi Shobhit ,
I have made the following changes
1. created the datasource mysqlDS
2 . changed persistence
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.driver_class"
value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/task" />
<property name="hibernate.connection.username"
value="root"/>
<property name="hibernate.connection.password"
value="root"/>
<property name="hibernate.connection.autocommit"
value="true"/>
<property name="hibernate.max_fetch_depth"
value="3"/>
<property name="hibernate.hbm2ddl.auto" value="create"
/>
<property name="hibernate.show_sql" value="false"
/>
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
</properties>
16:24:20,886 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876:
Starting deployment of "WebApplication.war"
16:24:22,313 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path
entry activation.jar in
"/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/mail-1.4.jar" does
not point to a valid jar for a Class-Path reference.
16:24:22,334 INFO [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011401: Read
persistence.xml for org.jbpm.persistence.jpa
16:24:22,400 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6)
JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
16:24:22,408 INFO [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011402: Starting
Persistence Unit Service 'WebApplication.war#org.jbpm.persistence.jpa'
16:24:22,412 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6)
HHH000204: Processing PersistenceUnitInfo [
name: org.jbpm.persistence.jpa
...]
16:24:22,437 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed
to start service
jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to
start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
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]
Caused by: org.hibernate.MappingException: Error while parsing file:
ProcessInstanceInfo.hbm.xml
at
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1255)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Caused by: org.hibernate.InvalidMappingException: Unable to read XML
at
org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)
at org.hibernate.cfg.Configuration.add(Configuration.java:474)
at org.hibernate.cfg.Configuration.add(Configuration.java:470)
at org.hibernate.cfg.Configuration.add(Configuration.java:643)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:681)
at
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1247)
... 10 more
Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to
org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to
org.dom4j.DocumentFactory
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at
org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)
... 15 more
16:24:22,694 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870:
Deploy of deployment "WebApplication.war" was rolled back with failure message
{"JBAS014671: Failed services" =>
{"jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\""
=> "org.jboss.msc.service.StartException in service
jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to
start service"},"JBAS014771: Services with missing/unavailable
dependencies" =>
["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}
16:24:22,857 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877:
Stopped deployment WebApplication.war in 164ms
16:24:22,860 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to
start service
16:24:22,867 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads -
2) {"JBAS014653: Composite operation failed and was rolled back. Steps that
failed:" => {"Operation step-2" => {"JBAS014671: Failed
services" =>
{"jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\""
=> "org.jboss.msc.service.StartException in service
jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to
start service"},"JBAS014771: Services with missing/unavailable
dependencies" =>
["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}}}
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/802893#802893]
Start a new discussion in jBPM Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]