Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem in deployment of ejb 3 in JBoss Server using Oracle Toplink as JPA

843830Jul 12 2007
Hi All ,
I have packed a simple stateless bean along with an entity bean but there is an exception thrown during deployment as this :
-----------------------------------------------------------------------------------------------------------------------------------------------------

[ServiceController] Problem starting service persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
java.lang.ClassCastException: oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
-----------------------------------------------------------------------------------------------------------------------------------------------------

Please can anybody help me figure out as to why this exception is thrown up .

My persistence.xml looks like this

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="testApp" >
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<jta-data-source>java:comp/env/jdbc/my-ejb-test</jta-data-source>
<class>src.Employee</class>
<properties>
<!--Use the java2db feature -->
<property name="toplink.ddl-generation" value="drop-and-create-tables"/>
<!-- Generate the sql specific to database -->
<property name="toplink.platform.class.name"
value="oracle.toplink.essentials.platform.database.oracle.OraclePlatform"/>
</properties>
</persistence-unit>

</persistence>

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 9 2007
Added on Jul 12 2007
0 comments
142 views