?
Solved

java.lang.NoClassDefFoundError: java/rmi/Naming

Posted on 2002-04-14
9
Medium Priority
?
301 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month12 days, 6 hours left to enroll

752 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