[jboss-user] [jBPM] - Problem with Spring and Persistence

Gareth Edwards do-not-reply at jboss.com
Fri Jan 18 11:41:43 EST 2013

Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Problem with Spring and Persistence"

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


I'm creating a jbpm 5.4 web-app.  I am using spring for some restful services.
I have a persistence.xml in META-INF which seems to start up correctly.
The problem manifests when I try to add the following spring bean into my applicationContext.xml

  <bean id="jbpmEMF"
       <property name="persistenceUnitName" value="org.jbpm.persistence.jta" />

The error is:

Error creating bean with name 'jbpmEMF' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No persistence unit with name 'org.jbpm.persistence.jta' found

It seems like a spring problem as I'm pretty sure that the persistence unit has been created.

I'm running jboss from eclipse Juno.

Any ideas?


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130118/3343df36/attachment-0001.html 

More information about the jboss-user mailing list