This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.

Rahul Iyer

Greenhorn
+ Follow
since Mar 17, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rahul Iyer

Hi, I get the following exception when I try to compile my file:
---------------------------------------------------------------------------
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
n(ShutdownUtilDelegate.java:87)
at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at headfirst._AdviceHome_Stub.create(Unknown Source)
at AdviceClient.go(AdviceClient.java:22)
at AdviceClient.main(AdviceClient.java:11)
Caused by: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed:
No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
... 3 more
---------------------------------------------------------------------------

I am currently using j2sdkee version 1.3 and j2se version 1.4 .

I am trying to complete the first EJB client application on page 58 of Head First EJB. I get the message when I try to compile the client.

Please Help!
Hi Ulf,
Thanks a lot!
It compiles just fine now.
Hi,
I have written a program that runs the following imports:
import headfirst.*;
import javax.ejb.*;

When I run the following command:
javac -classpath {$CLASSPATH}:AdviceAppClient.jar AdviceClient.java

I get the following errors:
package headfirst does not exist
package javax.ejb does not exist

The funny thing is that if I try to compile using the following command:
javac AdviceAppClient.jar
then I do not get the error "package javax.ejb does not exist" , but I still get the error "package headfirst does not exist".

The file headfirst package is in a subdirectory called classes

Please help!
Hello! Sorted out the problem myself! Apparently I needed to type "cloudscape -start" at the command prompt before launching j2ee....
well cheerio..
Hi, I was studying the first chapter of Head First EJB and just when I click on "Finish" on page 52 I get the following error "could not connect to local host".
I look at the command line terminal where I launched "deploytool" and I have the following errors:

Error: Could not connect to localhost - org.omg.CORBA.COMM_FAILURE: vmcid: SUN
minor code: 201 completed: No
(For more detail, see file 'C:\DOCUME~1\RAHULI~1\LOCALS~1\Temp\.j2eeDeploytoo
lExceptionLog.out')


Error: Could not connect to localhost - org.omg.CORBA.COMM_FAILURE: vmcid: SUN
minor code: 201 completed: No
(For more detail, see file 'C:\DOCUME~1\RAHULI~1\LOCALS~1\Temp\.j2eeDeploytoo
lExceptionLog.out')

The following are my environment variable settings:

CLASSPATH: .;C:\Program Files\QuickTime\QTSystem\QTJava.zip;C:\j2sdkee1.3\lib\j2ee.jar

J2EE_HOME: C:\j2sdkee1.3

JAVA_HOME: C:\j2sdk1.4.2_13

PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\j2sdk1.4.2_13\bin;C:\j2sdkee1.3\bin

The following is the content of the j2eedeploytoolexceptionlog file:


--------------------------------------------------------------------------------
---------------- Exception -----------------------------------------------------
ERROR: [com.sun.enterprise.tools.deployment.main.ServerManager.getJarInstaller:582]
Could not connect to localhost
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
--------------------------------------------------------------------------------
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:183)
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:637)
at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:579)
at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:871)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:397)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.sun.enterprise.tools.deployment.main.ServerManager.getJarInstaller(ServerManager.java:573)
at com.sun.enterprise.tools.deployment.main.ServerManager.getServerForName(ServerManager.java:556)
at com.sun.enterprise.tools.deployment.main.DeployTool.deploy(DeployTool.java:137)
at com.sun.enterprise.tools.deployment.ui.DT.deployApplication(DT.java:76)
at com.sun.enterprise.tools.deployment.ui.DeploymentManager$1.run(DeploymentManager.java:623)
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
---------------- Exception -----------------------------------------------------
ERROR: [com.sun.enterprise.tools.deployment.main.ServerManager.getJarInstaller:582]
Could not connect to localhost
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
--------------------------------------------------------------------------------
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:183)
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:637)
at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:579)
at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:871)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:397)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.sun.enterprise.tools.deployment.main.ServerManager.getJarInstaller(ServerManager.java:573)
at com.sun.enterprise.tools.deployment.main.ServerManager.removeServer(ServerManager.java:245)
at com.sun.enterprise.tools.deployment.ui.DeploymentManager$1.run(DeploymentManager.java:631)
--------------------------------------------------------------------------------

As I am just beginning to learn about EJB I do not know very much. Please assist me. Thank you.
Hi Darya,
I uninstalled J2se 1.6 and installed j2se1.4 and j2ee appears to be working fine! Thanks alot!
Thanks Darya! I will download and install J2SE v1.4 ASAP. I will let you know once I get things working.
Hi,
I recently installed J2SE (jdk1.6.0) - It works fine.
After that I installed j2sdkee1.3

When i type "j2ee -verbose" at the command prompt, I get the following error:

The following are my settings:
Windows XP service pack 2

Path Variable:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Files\Microsoft DirectX SDK (December 2006)\Utilities\Bin\x86;C:\Program Files\Wave Systems Corp\Dell Preboot Manager\Access Client\v5\;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Isoft\Java\jdk1.6.0\bin\;C:\Isoft\MySQL\MySQL Server 5.0\bin;C:\Isoft\php;C:\Isoft\j2sdkee1.3\bin

JAVA_HOME variable: C:\Isoft\Java\jdk1.6.0
J2EE_HOME variable: C:\Isoft\j2sdkee1.3
CLASSPATH: .;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Isoft\j2sdkee1.3\lib\j2ee.jar

QTJAVA variable: C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip


Here is where I have installed my files:
C:\Isoft\Java\jdk1.6.0
C:\Isoft\Java\jre1.6.0
C:\Isoft\j2sdkee1.3

Please help me setup j2ee properly! Thank you.