*
The moose likes EJB and other Java EE Technologies and the fly likes Deploying an EJB error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deploying an EJB error" Watch "Deploying an EJB error" New topic
Author

Deploying an EJB error

brian buckholz
Greenhorn

Joined: Feb 08, 2003
Posts: 5
I'm trying to deploy an EJB from the WROX book - Beginning J2EE 1.4, chap 8. DeployTool failed to deploy the bean. I was unable to determine the problem by referring to the Troubleshooting the Deploy section on pg 376. All other steps completed successfully. I am running on a Windows XP desktop PC with java version "1.4.1_02", Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode) installed...
SimpleSession.java-->
package beans;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface SimpleSession extends EJBObject {
// the public business method on the SimpleSession bean
public String getEchoString(String clientString)
throws RemoteException;
}
-----------------------------------
SimpleSessionBean -->
package beans;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class SimpleSessionBean implements SessionBean {
// the public business method. this must be coded in the
// remote interface also.
public String getEchoString(String clientString) {
return clientString + " - from session bean";
}
// standard ejb methods
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbRemove() {}
public void ejbCreate() {}
public void setSessionContext(SessionContext context) { }
}
-----------------------------------
-->SimpleSessionHome.java
package beans;
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
public interface SimpleSessionHome extends EJBHome {
// the create method for the SimpleSession bean.
public SimpleSession create()
throws CreateException, RemoteException;
}
--------------------------------------
--> this is the message I get when I deploy...
----------------------------------------------------------------------
distribute: C:\8333\Ch8\SimpleSessionApp\SimpleSessionApp.ear
Deploy action running...
Contacted Server...
Application SimpleSessionApp transferred
Application SimpleSessionApp transferred
Deployment of SimpleSessionApp is complete.
Deployment of SimpleSessionApp is complete.
Completed
--- Operation Completed Successfully ---

----------------------------------------------------------------------
start: SimpleSessionApp
Running...
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
javax.management.ReflectionException
at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:61)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstaller_Stub.start(Unknown Source)
at com.sun.enterprise.deployapi.actions.ModuleStateAction.run(ModuleStateAction.java:58)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.rmi.RemoteException: null; nested exception is:
javax.management.ReflectionException
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(JarInstallerImpl.java:1171)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
Caused by: javax.management.ReflectionException
at com.sun.management.j2se.MOAgents.EmmaBeanUtil.invoke(EmmaBeanUtil.java:346)
at com.sun.enterprise.management.model.emma.J2EEApplicationMdlEmmaAgent.invoke(J2EEApplicationMdlEmmaAgent.java:406)
at com.sun.jdmk.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:334)
at com.sun.jdmk.MetaDataImpl.invoke(MetaDataImpl.java:496)
at com.sun.jdmk.DefaultMBeanAccessor.invoke(DefaultMBeanAccessor.java:528)
at com.sun.jdmk.MBeanServerImpl.invoke(MBeanServerImpl.java:579)
at com.sun.enterprise.management.agent.MEJBUtility.invoke(MEJBUtility.java:314)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.startModule(J2EEManagementObjectManager.java:636)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(JarInstallerImpl.java:1161)
... 5 more
!!! Operation Failed !!!
**********************************************************************
[Completed (time=8.7sec, status=13)]
**********************************************************************
-----------------------------------
It would be great if you could assist. Thank you for your time.
Regards
Brian Buckholz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying an EJB error