Solved

java.lang.NoClassDefFoundError: java/rmi/Naming

Posted on 2002-04-14
9
292 Views
Last Modified: 2013-12-29
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

0
Comment
Question by:Chintu
9 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 6940350
 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.
0
 

Author Comment

by:Chintu
ID: 6940354
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
0
 
LVL 3

Expert Comment

by:msterjev
ID: 6941553
Put all of the libraries into the system path. The problem is with Java code not founding natvie library path!
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:Chintu
ID: 6942584
I tried that too...it did not help me...same error.
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6944289
Chintu,
Did u include .dll also into the PATH which is referring to.

Shyam
0
 

Author Comment

by:Chintu
ID: 6944396
which dll??? I am loading any dll in my appl...
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6944786
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
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7940693
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
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7990864
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question