Win a copy of Rust Web Development this week in the Other Languages forum!

Ravendra Singh

Greenhorn
+ Follow
since May 09, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ravendra Singh

Hi All,

I'm preparing for 1Z0-803 - Java SE 7 Programmer I – Exam. I've working knowledge of Java/JEE and worked on two Web Application customization projects in my current organization where I wrote POJOs, JavaBeans and Servlets and JSPs.

I've been reading Kathy & Bert's book, referring Mala Gupta's book and other online study materials. I've taken enthuware's mock test and passed two out of five. The scores in the other three were 54/63/62.

Now, I'm little confused about my preparation. Not able to decide whether I should appear for the real exam or I need some more preparation. Please guide.

Thanks,
Ravendra Singh
The class (JDKBridge) that wasn't being found can be found in:

C:\j2sdk1.4.2_08\jre\lib\rt.jar

After adding that to my classpath, the program worked fine.

https://coderanch.com/t/316336/EJB-JEE/java/Head-EJB-Chapter-Application

Hi,

I'm trying to run Head First EJB - Advice example. I've created and deployed the bean using RI but when when I tried to run AdviceClient class, I'm getting the below error.

Please find below my client java code and the error message

Please help.

AdviceClient.java




Error message :


C:\javaEJB\projects\advice>java -cp .;C:\j2sdkee1.3.1\lib\j2ee.jar;AdviceAppClient.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.<clinit>(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(LocateReplyMessage_1_2.java:137)
at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPInputStream.java:126)
at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnection.java:671)
at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.java:778)
at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java:786)
at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClient.java:597)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.java:573)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingClient.java:544)
at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1080)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:17)
at AdviceClient.main(AdviceClient.java:11)
Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.internal.util.JDKBridge
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more


How to resolve this error?

Regards,
Ravendra