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

priya pratheep

Greenhorn
+ Follow
since Mar 07, 2007
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 priya pratheep

what is the difference between scjp and scja

for a programmer which one is good?

what is it exam fee?
hi dears

I am planning to write sun certification exam...i know java and j2ee.I am planning to go to java programmer work.

Please guide me which exam will help me...i read that there are many exams for certification..what is its difference? which one is good for me.

thanks in advance
Hi Carol

I don't know how to express my happiness ....At LAST it is working...
After giving three weeks of pain.......
In System variables (environment variable) path was not correct that causes the problem..............
Once again thanks

Priya
Hi Carol Enderlin

thank you for your reply...I really fed up with this prob....

Regarding version
I uninstall jre 1.5 from my system and instal 1.3....
I am using windows XP, From control panel -- java -- i changed there to 1.3 also..
Still java -version is showing 1.5

My Setting are
Path :: C:\Sun\SDK\jdk\bin;C:\jdk1.3.1\bin;c:\j2sdkee1.3.1\bin;
Classpath :: C:\j2sdkee1.3.1\lib\j2ee.jar;.
java_home :: c:\jdk1.3.1
j2ee_home :: c:\j2sdkee1.3.1

I am getting the error
C:\EJBDEMO\projects\advice>java -classpath %classpath%;AdvAppClient.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(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.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.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(InitialContext.java:351)
at AdviceClient.go(AdviceClient.java:28)
at AdviceClient.main(AdviceClient.java:15)
pls help
thank you
priya
Hi gowher amin naik

Actually i removed all jre version from system except 1.3.1....
To make sure,I removed all Java from the system and installed jdk jsdk and jre of version 1.3.1...after restart Still java version shows 1.5
I don't know from where it is getting...
pls help
I tried run the sample program in Headfirst - (Advice). I was able to generate the class file after the successful compilation, but failed in running the AdviceClient.

The command given is
java -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClient

I am getting NoClassFound Exception. Below is the full error message:


C:\EJBDEMO\projects\advice>java -classpath %CLASSPATH%;AdviceAppClient.jar Advic
eClient
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/inte
rnal/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(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(InitialContext.java:351)
at AdviceClient.go(adviceclient.java:18)
at AdviceClient.main(adviceclient.java:11)

I tried all the solutions given for similar problems in the following sites:

https://coderanch.com/t/161143/java-EJB-SCBCD/certification/AdviceClient

http://saloon.javarhttps://coderanch.com/t/161377/java-EJB-SCBCD/certification/Head-First-EJB-Tutorialanch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=70&t=001032

http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html

Still I couldn't solve the problem. My settings are
Classpath-
C:\jdk1.3.1\bin;C:\jdk1.3.1\lib;c:\j2sdkee1.3.1\lib\j2ee.jar;.;C:\j2sdkee1.3.1\lib;C:\j2sdkee1.3.1\lib\system;C:\j2sdkee1.3.1\lib\cloudscape

J2EE_HOME-
C:\j2sdkee1.3.1

Java_Home-
C:\jdk1.3.1

PATH-
C:\j2sdkee1.3.1\bin

Please help me to resolve this problem. Its killing my sleep for long days....
Thanks
Priya
Anybody please help me...I send private message also to brilliant people like you
there is no response
please help urgent !!!
HI Gowher amin naik

We have jre 1.3.1 only .
But when trying "java -version"

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

Actually no such version existing .
I don't know from where it is comming

Still i cant't run my adviceclient
thanks in advance...pls help
I tried compiling the sample program in Headfirst - (Advice). I was able to generate the class file after the successful compilation, but failed in running the AdviceClient.

The command given is
java -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClient

I am getting NoClassFound Exception. Below is the full error message:


C:\EJBDEMO\projects\advice>java -classpath %CLASSPATH%;AdviceAppClient.jar Advic
eClient
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/inte
rnal/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(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(InitialContext.java:351)
at AdviceClient.go(adviceclient.java:18)
at AdviceClient.main(adviceclient.java:11)

I tried all the solutions given for similar problems in the following sites:

https://coderanch.com/t/158486/java-EJB-SCBCD/certification/head-first-ejb-pg-client

http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html

Still I couldn't solve the problem. My settings are
Classpath-
C:\jdk1.3.1\bin;C:\jdk1.3.1\lib;c:\j2sdkee1.3.1\lib\j2ee.jar;.;C:\j2sdkee1.3.1\lib;C:\j2sdkee1.3.1\lib\system;C:\j2sdkee1.3.1\lib\cloudscape

J2EE_HOME-
C:\j2sdkee1.3.1

Java_Home-
C:\jdk1.3.1

PATH-
C:\j2sdkee1.3.1\bin

Please help me to resolve this problem. Its killing my sleep for long days....
Thanks
Priya

[ March 09, 2007: Message edited by: priya pratheep ]
[ March 09, 2007: Message edited by: priya pratheep ]
thanks a lot. now it is compiling but when I try to run using the command


java -cp %CLASSPATH%;AdvAppClient.jar AdviceClient (-cp and -classpath)i am getting the error of
hi
i am new to ejb and learning with the help of head first EJB
when I try to compile my client program i am getting the following error....

I tried the solution in the previous post

1.https://coderanch.com/t/158518/java-EJB-SCBCD/certification/Error-compiling-AdviceClient-java
2.https://coderanch.com/t/158486/java-EJB-SCBCD/certification/head-first-ejb-pg-client[/I]
can anybody help me pls...



C:\HFEJBCODE\advice>javac -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClien
t.java
AdviceClient.java:4: package headfirst does not exist
import headfirst.*;
^
AdviceClient.java:24: cannot find symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narr
ow(o, AdviceHome.class);
^
AdviceClient.java:24: cannot find symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narr
ow(o, AdviceHome.class);
^
AdviceClient.java:24: cannot find symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narr
ow(o, AdviceHome.class);

^
AdviceClient.java:26: cannot find symbol
symbol : class Advice
location: class AdviceClient
Advice advisor = home.create();
^
5 errors