Here is the problem. I have writen a little test app that will be running an ejb. My ejb is very basic as it contains two functions: a setvalue() and a getValue(). The names of my 3 classes are Adder.class, AdderHome.class and AdderEJB.class. As you can see they complied fine. I am trying to package them into an EJB .jar fle using the deploytool from Sun. This what I did and it fails at the end.
1) Selected a new application named AdderApp
2) Added my 3 classes
3) Selected the stateless option.
4) In the Enterprise Bean Class combo box, I entered AdderEJB
5) The bean name is AdderBean
6) in the Local Home Interface, I put AdderHome.
7) In the Local Interface, I put Adder
8) In the Remote Home Interface, I put AdderHome.
9) In the Remote Interface, I put Adder.
10) The transaction management is Container managed.
11) In the JNDI tree name, I entered MyAdder as the name.
This is when I choose the deploy option and enter the name AdderAppClient.jar after I select the "return Client jar" option.
when I click finish it progresses for a while and then gives me the following error message:
*************************************************
There was a deployment error:
java.rmi.ServerException:RemoteException occurred in server thread: nested exception is :
java.rmi.RemoteException: error processing ejb jar: compilation failed.
***********************************************
The error.log file contains the following message
*************************************************
Compilation failed.
at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:625)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
*************************************************
Can anyone help me?
Thank you in advance.
Spinik
Senior consultant
1) Selected a new application named AdderApp
2) Added my 3 classes
3) Selected the stateless option.
4) In the Enterprise Bean Class combo box, I entered AdderEJB
5) The bean name is AdderBean
6) in the Local Home Interface, I put AdderHome.
7) In the Local Interface, I put Adder
8) In the Remote Home Interface, I put AdderHome.
9) In the Remote Interface, I put Adder.
10) The transaction management is Container managed.
11) In the JNDI tree name, I entered MyAdder as the name.
This is when I choose the deploy option and enter the name AdderAppClient.jar after I select the "return Client jar" option.
when I click finish it progresses for a while and then gives me the following error message:
*************************************************
There was a deployment error:
java.rmi.ServerException:RemoteException occurred in server thread: nested exception is :
java.rmi.RemoteException: error processing ejb jar: compilation failed.
***********************************************
The error.log file contains the following message
*************************************************
Compilation failed.
at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:625)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
*************************************************
Can anyone help me?
Thank you in advance.
Spinik
Senior consultant