[jboss-user] [EJB/JBoss] - Problem in deployment of ejb 3 in JBoss Server using Oracle

ashusri000 do-not-reply at jboss.com
Thu Jul 12 02:37:51 EDT 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" >
oracle.toplink.essentials.PersistenceProvider
<jta-data-source>java:comp/env/jdbc/my-ejb-test</jta-data-source>
src.Employee

<!--Use the java2db feature -->

<!-- Generate the sql specific to database -->


</persistence-unit>



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063327#4063327

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063327



More information about the jboss-user mailing list