Activiti Framework with Jboss 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2012 02:41 AM
Hello all !
I am newbie in Acitiviti Framework. I try to deploy with Jboss 5
Here is my persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="activitiBpcPU">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>java:/jdbc/svwi/wf</jta-data-source>
<class>ru.bpc.activiti.jpa.entities.SearchData</class>
<class>ru.bpc.activiti.jpa.entities.ProcessTaskEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessHistoryEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessHistoryFileEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessIdMemberShipEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessActiveVariableEntity</class>
<class>ru.bpc.activiti.jpa.entities.DisputeReasonEntity</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO" />
<property name="openjpa.LockTimeout" value="30000" />
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema()" />
<property name="jboss.as.jpa.providerModule" value="org.apache.openjpa"/>
</properties>
</persistence-unit>
</persistence>
When I start Jboss I got error:
12:15:04,360 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=ru.bpc.sv.ear.ear/ru.bpc.sv.web.ui.war#activitiBpcPU state=Create
java.lang.ClassCastException: org.apache.openjpa.persistence.PersistenceProviderImpl 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)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
if anyone knew. Please help me. I try to make some search in google but I can't find any document about OPENJPA in JBOSS 5
Thanks in advance
I am newbie in Acitiviti Framework. I try to deploy with Jboss 5
Here is my persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="activitiBpcPU">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>java:/jdbc/svwi/wf</jta-data-source>
<class>ru.bpc.activiti.jpa.entities.SearchData</class>
<class>ru.bpc.activiti.jpa.entities.ProcessTaskEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessHistoryEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessHistoryFileEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessIdMemberShipEntity</class>
<class>ru.bpc.activiti.jpa.entities.ProcessActiveVariableEntity</class>
<class>ru.bpc.activiti.jpa.entities.DisputeReasonEntity</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO" />
<property name="openjpa.LockTimeout" value="30000" />
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema()" />
<property name="jboss.as.jpa.providerModule" value="org.apache.openjpa"/>
</properties>
</persistence-unit>
</persistence>
When I start Jboss I got error:
12:15:04,360 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=ru.bpc.sv.ear.ear/ru.bpc.sv.web.ui.war#activitiBpcPU state=Create
java.lang.ClassCastException: org.apache.openjpa.persistence.PersistenceProviderImpl 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)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
if anyone knew. Please help me. I try to make some search in google but I can't find any document about OPENJPA in JBOSS 5
Thanks in advance
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2012 05:15 PM
What is the relation to Activiti… ?
