Chintu
asked on
java.lang.NoClassDefFoundError: java/rmi/Naming
Hi,
I am getting the following error...while executing
java.lang.NoClassDefFoundE rror: java/rmi/Naming
at idea/sagewebint/util/SageR mtObjs.get RmtObj
at idea/sagewebint/util/SageL oginServle t.doPost
at javax/servlet/http/HttpSer vlet.servi ce
at javax/servlet/http/HttpSer vlet.servi ce
at com/newatlanta/servletexec /ServletEx ec.CallSer vletServic e
at com/newatlanta/servletexec /ServletEx ec.process ServletReq uest
at com/newatlanta/servletexec /ServletEx ec.standar dServletRe quest
at com/newatlanta/servletexec /ServletEx ec.Process Request
at com/newatlanta/servletexec /ServletEx ec.Process Request
I am using RMI...everything was working fine on NT I ported everything on 2000 and I am trying with mysql...but it is giving problem while creating RMI Object.
Can anyone help me.....very urgent...
Sathya
I am getting the following error...while executing
java.lang.NoClassDefFoundE
at idea/sagewebint/util/SageR
at idea/sagewebint/util/SageL
at javax/servlet/http/HttpSer
at javax/servlet/http/HttpSer
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
I am using RMI...everything was working fine on NT I ported everything on 2000 and I am trying with mysql...but it is giving problem while creating RMI Object.
Can anyone help me.....very urgent...
Sathya
ASKER
Hey I tried to include . in teh classe path...
I am using windows 200...here is how my classpath and path looks like...
%CLASSPATH% .;C:\jdk1.2.2\lib\tools.ja r;C:\jdk1. 2.2\jre\li b\rt.jar;C :\jsdk2.0\ lib\jsdk.j ar;C:\Web_ Sage\Jars\ ;C:\JSQLCo nnect\JSQL Connect.ja r;
%PATH% .;C:\jdk1.2.2\bin;C:\jdk1. 2.2\jre\bi n;%SystemR oot%\syste m32;%Syste mRoot%;%Sy stemRoot%\ System32\W bem;c:\old pc\downloa dables\lat est;C:\Sag eRT\bin;C: \cygwin\bi n;.;C:\Tor nado\host\ x86-win32\ bin;C:\Tor nado\host\ x86-win32\ lib\gcc-li b\i386-pc- mingw32\eg cs-2.90.29 ;C:\Tornad o\target\c onfig\simp c;C:\Progr am Files\Microsoft SQL Server\80\Tools\BINN;C:\my sql\bin;
now i get a different error
java.lang.UnsatisfiedLinkE rror: java/security/AccessContro ller.doPri vileged
Possible causes: If you are trying to use J/Direct (@dll.import),
check your compiler version (for JVC, requires 4336 or greater.)
If you are trying to use RNI, there are new requirements: see documentation.
at java/security/AccessContro ller.doPri vileged
at sun/rmi/server/RemoteProxy .getLogLev el
at sun/rmi/server/RemoteProxy .
at sun/rmi/server/RemoteProxy .getStub
at java/rmi/registry/LocateRe gistry.get Registry
at java/rmi/registry/LocateRe gistry.get Registry
at java/rmi/Naming.getRegistr y
at java/rmi/Naming.lookup
at idea/sagewebint/util/SageR mtObjs.get RmtObj
at idea/sagewebint/util/SageL oginServle t.doPost
at javax/servlet/http/HttpSer vlet.servi ce
at javax/servlet/http/HttpSer vlet.servi ce
at com/newatlanta/servletexec /ServletEx ec.CallSer vletServic e
at com/newatlanta/servletexec /ServletEx ec.process ServletReq uest
at com/newatlanta/servletexec /ServletEx ec.standar dServletRe quest
at com/newatlanta/servletexec /ServletEx ec.Process Request
at com/newatlanta/servletexec /ServletEx ec.Process Request
I am using windows 200...here is how my classpath and path looks like...
%CLASSPATH% .;C:\jdk1.2.2\lib\tools.ja
%PATH% .;C:\jdk1.2.2\bin;C:\jdk1.
now i get a different error
java.lang.UnsatisfiedLinkE
Possible causes: If you are trying to use J/Direct (@dll.import),
check your compiler version (for JVC, requires 4336 or greater.)
If you are trying to use RNI, there are new requirements: see documentation.
at java/security/AccessContro
at sun/rmi/server/RemoteProxy
at sun/rmi/server/RemoteProxy
at sun/rmi/server/RemoteProxy
at java/rmi/registry/LocateRe
at java/rmi/registry/LocateRe
at java/rmi/Naming.getRegistr
at java/rmi/Naming.lookup
at idea/sagewebint/util/SageR
at idea/sagewebint/util/SageL
at javax/servlet/http/HttpSer
at javax/servlet/http/HttpSer
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
at com/newatlanta/servletexec
Put all of the libraries into the system path. The problem is with Java code not founding natvie library path!
ASKER
I tried that too...it did not help me...same error.
Chintu,
Did u include .dll also into the PATH which is referring to.
Shyam
Did u include .dll also into the PATH which is referring to.
Shyam
ASKER
which dll??? I am loading any dll in my appl...
Chintu,
You program is referring to some dll in your programs. Or in simple words it is referring to some native dlls. Do you use any 3rd party components. If you are using such component did u configure it correctly (setting in classpath and path). If not pls do it before running the apps.
Do u get what i mean.
Shyam
You program is referring to some dll in your programs. Or in simple words it is referring to some native dlls. Do you use any 3rd party components. If you are using such component did u configure it correctly (setting in classpath and path). If not pls do it before running the apps.
Do u get what i mean.
Shyam
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Venci75
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Venci75
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hope it helps.