users@glassfish.java.net

Deploying application in domain failed;

From: <forums_at_java.net>
Date: Wed, 4 May 2011 13:21:13 -0500 (CDT)

Hi, iam new to glassfish ejb3 development and need help in this problem,

I created stateless session bean that persists an entity bean, and deployed
the application, after implementing client it gives me this exception:

javax.ejb.EJBException: nested exception is: java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:

java.rmi.ServerException

 

java.lang.NoClassDefFoundError:
oracle/toplink/essentials/transaction/JTASynchronizationListener

at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(

at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(

at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(

at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(

at
hello.__TryRemote_Remote_DynamicStub.createCustomer(hello/__TryRemote_Remote_DynamicStub.java)

at hello._TryRemote_Wrapper.createCustomer(hello/_TryRemote_Wrapper.java).
 

<?xml version="1.0" encoding="UTF-8"?>

<persistence version="1.0" 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">

 

<persistence-unit name="Try">

<provider> oracle.toplink.essentials.PersistenceProvider</provider>

<jta-data-source>MySql</jta-data-source>

<class>hello.MainTable</class>

<properties>

<property name="toplink.jdbc.user" value="root"/>

<property name="toplink.jdbc.url"
value="jdbc:mysql://localhost:3306/newtry"/>

<property name="toplink.jdbc.driver"
value="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"/>

<property name="toplink.jdbc.password" value="root"/>

<property name="toplink.jdbc.server" value="127.0.0.1"/>

<property name="toplink.ddl-generation" value="create-tables"/>

</properties>

 

 

</persistence-unit>

</persistence>
<code/>
Any help please with this ?
i tried everything with persistence.xml ?
Thanks.

: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
Util.java:243)StubInvocationHandlerImpl.java:205)StubInvocationHandlerImpl.java:152)BCELStubBase.java:22)*So
i played around alittle with persistence.xml and now it fails to deploy the
application :
oracle/toplink/essentials/transaction/JTASynchronizationListener
here is my persistence.xml
<code>
*
 

 

java.lang.NoClassDefFoundError:
oracle/toplink/essentials/transaction/JTASynchronizationListener


--
[Message sent by forum member 'Tommy_Dev']
View Post: http://forums.java.net/node/798475