Solved

java.lang.NoClassDefFoundError: java/rmi/Naming

Posted on 2002-04-14
9
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

724 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