[jboss-user] [jBPM] - Re: jBPM5.1 : Setting Process Variable from code(Using API)
Sandeep Sapra
do-not-reply at jboss.com
Thu Nov 17 06:19:11 EST 2011
Sandeep Sapra [http://community.jboss.org/people/sandeepsapra] created the discussion
"Re: jBPM5.1 : Setting Process Variable from code(Using API)"
To view the discussion, visit: http://community.jboss.org/message/636955#636955
--------------------------------------------------------------
Thanks Jack
I solved the problem and later I checked your response. Along with jta.jar and btm.jar,sl4j jar has to removed and should be present in tomcat lib.
1.) I am trying to run my example in JBoss AS (5.0.0 GA) now but I am not sure how to do configurations in JBoss.
*Could anyone give some reference?*
2.) When I tried doing an error occured saying :
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: org.jbpm.task
at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:115)
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:285)
I changed following in persistence.xml as
Before
......
<persistence-unit name=++"org.jbpm.task"++>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jdbc/testDS1</jta-data-source>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
..........
After changes :
......
<persistence-unit name=+"org.jbpm.task"+>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jdbc/testDS1</jta-data-source>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
..........
But now error is coming as java.lang.ClassCastException
: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:310)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
*Could anyone suggest what went wrong and how to solve it?*
PS: I am using the example in article : http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example but doing the same configuration Jboss 5.0.0 GA now
Thanks and Regards,
Sandeep
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636955#636955]
Start a new discussion in jBPM at Community
[http://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/20111117/0d786ce3/attachment.html
More information about the jboss-user
mailing list