• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Deploying an EJB error

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
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) { }
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.
--- Operation Completed Successfully ---

start: SimpleSessionApp
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
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:
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.
Brian Buckholz
I am displeased. You are no longer allowed to read this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic