• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help!! My first J2EE BonusApp can't work

 
zurial zurial
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai!!! I am newbabie with J2EE, recently I am trying to download J2sdkee1.4 beta,
I am looking for the tutorial in sun website and found a tutorial for j2EE with title
WRITING ENTERPRISE APPLICATIONS WITH JAVA 2 SDK, ENTERPRISE EDITION
BY MONICA PAWLAN
I follow the instruction for Lesson 1 A Simple Session Bean Step By Step,
start compiling the Beans classes and Servlets class until creating ear, jar file,
and war file without any problems.
But at the part for specify JNDI Name and Root context, I cannot follow anymore because
I can't found JNDI option in the deploytool for J2EE 1.4 Beta release.
I try to verify and the code failed in test.appswebcontext, I try to ignore it and try to deploy.
but I got this error message in J2EE server reports.
Application BonusApp deployed.
javax.naming.InvalidNameException: Name is empty
at com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:642)
at javax.naming.InitialContext.rebind(InitialContext.java:367)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:198)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:171)
at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.jav
a:408)
at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(State
lessSessionContainer.java:118)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(Container
FactoryImpl.java:176)
at com.sun.enterprise.tools.deployment.backend.JarManagerImpl.loadApp(Ja
rManagerImpl.java:140)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.internal
Start(JarInstallerImpl.java:1235)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.startM
odule(J2EEManagementObjectManager.java:626)
at com.sun.enterprise.management.util.J2EEModuleCallBackImpl.start(J2EEM
oduleCallBackImpl.java:42)
at com.sun.enterprise.management.model.J2EEDeployedObjectMdl.start(J2EED
eployedObjectMdl.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.j2se.MOAgents.EmmaBeanUtil.invoke(EmmaBeanUtil.jav
a:323)
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:52
8)
at com.sun.jdmk.MBeanServerImpl.invoke(MBeanServerImpl.java:579)
at com.sun.enterprise.management.agent.MEJBUtility.invoke(MEJBUtility.ja
va:314)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.startM
odule(J2EEManagementObjectManager.java:636)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(Ja
rInstallerImpl.java:1161)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstalle
rImpl_Tie._invoke(Unknown Source)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegat
e.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProces
sor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadP
ool.java:106)
java.lang.RuntimeException: java.rmi.RemoteException: Name is empty
at com.sun.enterprise.management.util.J2EEModuleCallBackImpl.start(J2EEM
oduleCallBackImpl.java:44)
at com.sun.enterprise.management.model.J2EEDeployedObjectMdl.start(J2EED
eployedObjectMdl.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.j2se.MOAgents.EmmaBeanUtil.invoke(EmmaBeanUtil.jav
a:323)
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:52
8)
at com.sun.jdmk.MBeanServerImpl.invoke(MBeanServerImpl.java:579)
at com.sun.enterprise.management.agent.MEJBUtility.invoke(MEJBUtility.ja
va:314)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.startM
odule(J2EEManagementObjectManager.java:636)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(Ja
rInstallerImpl.java:1161)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstalle
rImpl_Tie._invoke(Unknown Source)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegat
e.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProces
sor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadP
ool.java:106)
Caused by: java.rmi.RemoteException: Name is empty
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.internal
Start(JarInstallerImpl.java:1265)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.startM
odule(J2EEManagementObjectManager.java:626)
at com.sun.enterprise.management.util.J2EEModuleCallBackImpl.start(J2EEM
oduleCallBackImpl.java:42)
... 19 more
can anyone please help me how tell me how to fix the problems???,
Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic