Solved

java.lang.NoClassDefFoundError: java/rmi/Naming

Posted on 2002-04-14
9
280 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
Comment Utility
 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
Comment Utility
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
Comment Utility
Put all of the libraries into the system path. The problem is with Java code not founding natvie library path!
0
 

Author Comment

by:Chintu
Comment Utility
I tried that too...it did not help me...same error.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 3

Expert Comment

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

Shyam
0
 

Author Comment

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

Expert Comment

by:shyamkumarreddy
Comment Utility
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
Comment Utility
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
Comment Utility
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now