473,832 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

rmi Server ClassNotFoundEx ception problems

I'm trying to resurrect some of my old RMI code and running into problems
where the bind() throws a ClassNotFoundEx ception for the remote interface.
The old code ran on a older JDK and an older version of Windows.

Any help you could offer would be GREATLY appreciated.

I'm running on Windows XP Pro with 5.0 of the JDK. I've done my best to turn
off any firewall, ani-virus, and Internet worm (Norton) checking.

I've tried to reduce it a trivial case:
* Message: an interface that extends Remote
* MessageImpl: a class that implements Message and extends
UnicatseRemoteO bject.
* MessageServer: a class with a main method that:
a) creates an instance of MessageImpl
b) does a bind passing a name and the above instance.

All this is compiled and in a single jar.
I start the rmiregistry and run the Server.
However, I still get:

java.rmi.Unmars halException: error unmarshalling arguments; nested exception
is:
java.lang.Class NotFoundExcepti on: Message
at sun.rmi.server. UnicastServerRe f.oldDispatch(U nicastServerRef .java:385)
at sun.rmi.server. UnicastServerRe f.dispatch(Unic astServerRef.ja va:240)
Jul 17 '05 #1
0 2011

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3533
by: David Liebtag | last post by:
I have what I hope is a simple question: I'm learning how to serialize objects. I create an ObjectOutputStream and writeObject an object to it. I then create an ObjectInputStream and try to readObject the object from it. readObject is failing with a ClassNotFoundException. The class mentioned in the exception description is in a JAR file listed in CLASSPATH. I know the class can be found because I successfully create an object from...
0
1596
by: quitaxe | last post by:
hi i have tomcat 3.3,jdk1.4 setup and running perfectly on my win 98 pc.i have tried to install apache cocoon on this but have failed.i'm getting the following error when i startup tomcat(after it auto-deploys cocoon) and type the url: http://127.0.0.1:8080/cocoon into my ie5.5 Cocoon 2 - Internal server error
1
7087
by: Anoniem | last post by:
Hi, I'm trying to start a example which comes with the midp2.0 distribution. My relevant environment variables are set in a batch file like: PATH=%PATH%;\j2sdk1.4.2_10\bin;c:\j2me\midp2.0fcs\bin;j2me\j2me_cldc\bin set CLASSPATH=c:\j2me\midp2.0fcs\classes;. set MIDP_HOME=c:\j2me\midp2.0fcs When I go to the C:\j2me\midp2.0fcs\example directory and give the following
2
3986
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database Buildfile: build.xml env-user: prop-user: set-user:
1
1771
by: mayurapink | last post by:
Hello, I've been banging my metaphorically banging my head again the wall all day attempting to use a simple servlet to connect to a db2 database and update a table. I eventually run into the Exception you see above. I've read a couple of other forum posts from various forums and as far as I can tell I have eveything in order: - My classpath is: .;C:\Program Files\SQLLIB\bin;C:\ServletDev;C:\tomcat 4.1\common\lib\servlet.jar;C:\Program...
2
2151
by: mayurapink | last post by:
Hello, I've been banging my metaphorically banging my head again the wall all day attempting to use a simple servlet to connect to a db2 database and update a table. I eventually run into the Exception you see above. I've read a couple of other forum posts from various forums and as far as I can tell I have eveything in order: - My classpath is: .;C:\Program Files\SQLLIB\bin;C:\ServletDev;C:\tomcat 4.1\common\lib\servlet.jar;C:\Program...
2
1311
by: pradeep84 | last post by:
Hi to all....... i hav compiled my program.. i got error like this java.lang.ClassNotFoundException: sun.jdbc.odbc.Jdbc.OdbcDriver can any one wat does it mean and how to resolve it.... regards pradeep
2
13743
by: jith87 | last post by:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Ths s the error i get whn i try to connect to mysql using jdbc driver.....Can u help me out...
0
2419
by: brum2008 | last post by:
Hello! Below is the Netbeans Mobility source code for my application (The application offers SPP service, and then just hangs waiting for a client to connect (using acceptAndOpen()). The other device (A7 Engineering's eb506 Bluetooth serial adapter connected to a microcontroller) connects to the phone, but is not linked to my application). If I make the connection directly from the phone (Nokia 6085) to the eb506, there is no problem...
0
9796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10782
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10500
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10543
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4422
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.