Link to home
Start Free TrialLog in
Avatar of Chintu
Chintu

asked on

java.lang.NoClassDefFoundError: java/rmi/Naming

Hi,
I am getting the following error...while executing
 java.lang.NoClassDefFoundError: java/rmi/Naming
     at idea/sagewebint/util/SageRmtObjs.getRmtObj
     at idea/sagewebint/util/SageLoginServlet.doPost
     at javax/servlet/http/HttpServlet.service
     at javax/servlet/http/HttpServlet.service
     at com/newatlanta/servletexec/ServletExec.CallServletService
     at com/newatlanta/servletexec/ServletExec.processServletRequest
     at com/newatlanta/servletexec/ServletExec.standardServletRequest
     at com/newatlanta/servletexec/ServletExec.ProcessRequest
     at com/newatlanta/servletexec/ServletExec.ProcessRequest


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

Avatar of girionis
girionis
Flag of Greece image

 If it was working on NT and not on Windows 2000 then it is probably a infamous classpath problem. Make 100% sure that you have the rmi classes in your classpath.

  Hope it helps.
Avatar of Chintu
Chintu

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.jar;C:\jdk1.2.2\jre\lib\rt.jar;C:\jsdk2.0\lib\jsdk.jar;C:\Web_Sage\Jars\;C:\JSQLConnect\JSQLConnect.jar;

%PATH% .;C:\jdk1.2.2\bin;C:\jdk1.2.2\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\oldpc\downloadables\latest;C:\SageRT\bin;C:\cygwin\bin;.;C:\Tornado\host\x86-win32\bin;C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29;C:\Tornado\target\config\simpc;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\mysql\bin;

now i get a different error

java.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged  
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/AccessController.doPrivileged
     at sun/rmi/server/RemoteProxy.getLogLevel
     at sun/rmi/server/RemoteProxy.
     at sun/rmi/server/RemoteProxy.getStub
     at java/rmi/registry/LocateRegistry.getRegistry
     at java/rmi/registry/LocateRegistry.getRegistry
     at java/rmi/Naming.getRegistry
     at java/rmi/Naming.lookup
     at idea/sagewebint/util/SageRmtObjs.getRmtObj
     at idea/sagewebint/util/SageLoginServlet.doPost
     at javax/servlet/http/HttpServlet.service
     at javax/servlet/http/HttpServlet.service
     at com/newatlanta/servletexec/ServletExec.CallServletService
     at com/newatlanta/servletexec/ServletExec.processServletRequest
     at com/newatlanta/servletexec/ServletExec.standardServletRequest
     at com/newatlanta/servletexec/ServletExec.ProcessRequest
     at com/newatlanta/servletexec/ServletExec.ProcessRequest
Put all of the libraries into the system path. The problem is with Java code not founding natvie library path!
Avatar of Chintu

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
Avatar of Chintu

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
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
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial