[jboss-user] [jBPM] - Re: Error creating bean with name 'taskResourceFactory' defined in class path resource [META-INF/spring/applicationContext.xml]

Avneesh Sisodia do-not-reply at jboss.com
Thu Sep 27 11:12:04 EDT 2012


Avneesh Sisodia [https://community.jboss.org/people/avneesh] created the discussion

"Re: Error creating bean with name 'taskResourceFactory' defined in class path resource [META-INF/spring/applicationContext.xml]"

To view the discussion, visit: https://community.jboss.org/message/761973#761973

--------------------------------------------------------------
Hi Kris,
I put that file Taskorm.xml in META-INF and it is included in persistence.xml file.
Now it is showing this error:

20:34:55,227 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH00204:Processing PersistenceUnitInfo [
    name: jbpm
    ...]
20:34:55,267 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.persistenceunit."jbpm-spring-quickstart.war#jbpm": 
org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpm-spring-quickstart.war#jbpm": Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)
    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
    at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: org.hibernate.InvalidMappingException: Unable to read XML
    at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:102)
    at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:724)
    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:593)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
    at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:170)
    at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:80)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
    ... 4 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/761973#761973]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120927/183313a7/attachment-0001.html 


More information about the jboss-user mailing list