Hey Ranchers, I am not able to run the Advice App example given in Head First EJB book. I went through this "http://www.coderanch.com/t/161481/java-EJB-SCBCD/certification/AdviceClient-Solution" but was not able to run. Here are the settings of my environment variables (I am using a WINDOWS machine). CLASSPATH = C:\j2sdkee1.3.1\lib\j2ee.jar;C:\projects\advice J2EE_HOME = C:\j2sdkee1.3.1 JAVA_HOME = C:\jdk1.4.1 PATH = C:\j2sdkee1.3.1\bin;C:\jdk1.4.1\bin;C:\j2sdkee1.3.1\bin\j2ee.jar;
I am able to compile the client program. However when I try to run it, the get the following errors Can any one please let me know what is wrong???
For compiling, I used the following command "javac -classpath .\classes;C:\j2sdkee1.3.1\lib\j2ee.jar Advic eClient.java"
For Running, I used the following command "java -classpath .\classes;AdviceAppClient.jar;C:\j2sdkee1.3.1 \lib\j2ee.jar; AdviceClient"
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge at com.sun.corba.ee.internal.core.IOR$LocalCodeBaseSingletonHolder.<clin it>(IOR.java:90) at com.sun.corba.ee.internal.core.IOR.<init>(IOR.java:238) at com.sun.corba.ee.internal.iiop.messages.LocateReplyMessage_1_2.read(L ocateReplyMessage_1_2.java:137) at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPIn putStream.java:126) at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnect ion.java:671) at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.jav a:778) at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(Init ialNamingClient.java:786) at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostIn fo(InitialNamingClient.java:597) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(I nitialNamingClient.java:573) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBIn itRef(InitialNamingClient.java:544) at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialRefe rences(InitialNamingClient.java:1080) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_r eferences(InitialNamingClient.java:981) at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja va:2425) at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav a:52) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120 ) at javax.naming.InitialContext.lookup(Unknown Source) at AdviceClient.go(AdviceClient.java:16) at AdviceClient.main(AdviceClient.java:10) [ February 24, 2006: Message edited by: Sandeep MP ]
Hi guys, We at the ranch have solved the Advice app problem before. All the same, here are some facts. 1. Java 5.0 is not supported. So you either have to stick with the recommended Java 1.3 0r go for 1.4.
If you still experience any problem, pls post the JDK version, J2EE RI version and the OS. Bet you, i will be there to sail you guys out.
Hope it helps.
SCJA(Beta) SCJP 1.4 SCWCD 1.4 SCBCD 1.3 SCBCD 5.0 beta <br />The more practice we get, the better we are at the exams and in life in general. Pls join me at My DEN.
Joined: Dec 22, 2005
Hey Folks, Finally got the Advice Client to Run. I would like to share the problem that I was facing. I had both 1.5 and 1.4 versions of java installed. In the CLASSPATH and PATH system variables, I removed the entries corresponding to 1.5. But still the OS was using the 1.5 version . I gave the absolute path for javac and java for 1.4 and it worked. Hmmmmm. After nearly one week of research , I finally could run the client . Thanks to all the ranchers who tried to help me.