[jboss-user] [jBPM] - Re: Error creating bean with name 'taskResourceFactory' defined in class path resource [META-INF/spring/applicationContext.xml]
Kris Verlaenen
do-not-reply at jboss.com
Thu Sep 27 09:38:21 EDT 2012
Kris Verlaenen [https://community.jboss.org/people/KrisVerlaenen] 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/761936#761936
--------------------------------------------------------------
Hi,
This definitely seems to be a different error:
Caused by: java.lang.IllegalArgumentException: Named query not found: UnescalatedDeadlines
It's not picking up the query, which is defined in the Taskorm.xml file:
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/resources/META-INF/Taskorm.xml#L938 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/resources/META-INF/Taskorm.xml#L938
This config file should be part of the jbpm-human-task-core jar
In your persistence.xml, do you have a reference to this config file (so it knows to load it), something like:
<mapping-file>META-INF/Taskorm.xml</mapping-file>
Looking at your server log, it seems it's trying to load it, but fails:
15:44:18,871 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH00360:Unable to resolve mapping file [classpath:Taskorm.xml]
Could it be that you missed the META-INF folder?
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761936#761936]
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/4e080fc2/attachment-0001.html
More information about the jboss-user
mailing list