Quantcast
Channel: Serge Ndong – techscouting through the java news
Viewing all articles
Browse latest Browse all 31

Deployment of JBPM as a WAR/EAR in JBoss 7 – org.hibernate.InvalidMappingException

$
0
0

While trying to deploy the jbpm-examples-rewards-jsf application in JBoss AS 7.1.1 I faced the following problem:

Caused by: org.hibernate.InvalidMappingException: Unable to read XML
	at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)
	at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:734)
	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:603)
	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.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)
	... 10 more

11:37:42,455 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990
11:37:42,457 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 11712ms - Started 197 of 311 services (37 services failed or missing dependencies, 76 services are passive or on-demand)
11:37:42,657 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "rewards-jsf-6.0.1-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf\": Failed to start service"}}
11:37:42,851 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment rewards-jsf-6.0.1-SNAPSHOT.war in 193ms
11:37:42,854 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.persistenceunit."rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf": org.jboss.msc.service.StartException in service jboss.persistenceunit."rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf": Failed to start service

11:37:42,859 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"rewards-jsf-6.0.1-SNAPSHOT.war#org.jbpm.examples.rewards-jsf\": Failed to start service"}}}}

I fixed this problem by removing the “dom4j Jar file” from the WAR file following these advices.


Viewing all articles
Browse latest Browse all 31

Trending Articles