Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

J2EE DEPLOYTOOL

843833Feb 14 2003 — edited May 7 2003
I have the error message.
my system setup
Project name BonusApp.ear
jar file BonusJar
war file BunusWar.
J2EE_HOME f:\j2sdkee1.4
JAVA_HOME f:\jdk1.4.1
program path f:\myEJB
ear path f:\myEJB

This program i have tried it on j2sdkee1.2 and it works well, but i cannot deploy it on j2sdkee1.4.

Any help in this regard is very welcome.
What is the context path i have to setup to deploy this project

----------------------------------------------------------------------
stop: BonusApp
Running...
Completed

--- Operation Completed Successfully ---


----------------------------------------------------------------------
undeploy: BonusApp
Running...
Completed

--- Operation Completed Successfully ---


----------------------------------------------------------------------
distribute: C:\BonusApp\BonusApp.ear
Deploy action running...
Contacted Server...
Application BonusApp transferred
Application BonusApp transferred
Deployment of BonusApp is complete.
Deployment of BonusApp is complete.
Completed

--- Operation Completed Successfully ---


----------------------------------------------------------------------
start: BonusApp
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=15.9sec, status=13)]
**********************************************************************

Comments

843833
I'm wondering if there will be an update of the tutorial, it would be really helpful.
I got the example working, you just have to build it with ant.
Deploy it with the deployTool,leaving the deployment setting filename blanc and generate the stub by selecting the deployed application.
When running with runclient you have to specify this stub and than it seems to work fine.

Regards
843833
Looks like the structure of the J2EE ver1.3 and 1.4 is different.
Using the deploytool will ease a lot rather than using the command-line ANT. Sun people, please WHY there is no JNDI names tab in the deploytool? as well as the security option tab. Do clarify on this matter.
843833
Hi,

How do you generate the stub ??

Thx in advance,
Nicolas G.
843833
hi all,

Is their a solution to set up de platform-specific deployment file in the deploytool of j2sdkee 1.4 ??
The deployment failed at each time for the moment.

thx a lot,
Nicolas G.
843833
The JNDI tab is missing in the deploytool and i guess this should be a bug in the same. SUN do rectify it at the earliest.
843833
There is actually no bug in the 1.4 version
You have to first create the EJB jar and the Client jar etc as usual then you will have to select
{"File"|"Deployment Settings"|"Create New File"}

it will present a default file name, accept that or give an xml file name of your choice. You have just created the deployment descriptor. Now go back to the application tree and you will see a node called "Sun's J2ee Reference Implementation". This node will appear under all your existing branches. Click on this node under your EJB branch. Now you can see the JNDI name tab. Enter the JNDI name here and in your client application

It should work

Joy
843833
One tip to solve a "beginner's trouble" that I had.
Trying the sample "cmpcustomer" I didn't know precisely how to set the jndi names, the link to cloudscape and so on.

I extracted the file "sun-j2ee-ri.xml" (the one that in the previous version was used to provide deploying data) from the ear and used it to fill the information as suggested in the previous post.

It worked!
Hope to have been useful

Carlo
843833
i have been trying to fix this j2ee1.4 jndi tab problem for about 7 days now..
i was really feeling frustrated i must confess. i am going to try it out now with the hope it will work.
and if i may ask, must i always specify the client jar file first before performing these actions to get the deploy tool?

hoping to hear from you soon.
thanx
-Ebi
843833
hi folks,
i've resolved the jndi tab problem and finally deployed the ConverterApp app.
but when i try to run the ConverterClient from the command prompt, it always throws an exception like Unsupported Exception.
Can anyone tell me how to get around this.
thanx
-ebiere
843833

did you try runcleint.bat ?
843833
You said you resolved the JNDI Tab problem, could you please explain how you managed this. This is my current road-block in getting the Converter example going.

Thanks.
843833
You might want to try using J2EE Tools. It works with the examples in the J2EE Tutorial using J2EE Version 1.3.1 and the J2EE Tutorial Addendum using J2EE Version 1.4. The steps for using both are described in detail. You'll find it at

http://groups.msn.com/J2EETools
843833
Thanx for the info, it helped me out a lot !

But I dont really understand what is going on, why do you have to create {"File"|"Deployment Settings"|"Create New File"} ??

Raymond
1 - 13
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 4 2003
Added on Feb 14 2003
1 comment
130 views