Hello EveryBody,
I am deploying a project in to
jboss iam getting following error can body please find the error and do needfull for me .
And my error is
12:43:45,390 INFO [PersistenceUnitDeployment] Starting persistence
unit persistence.unit:unitName=#StrutsExamplePU
12:43:45,406 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#StrutsExamplePU state=Create
java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)