473,946 Members | 1,506 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 2023

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

Similar topics

1
3541
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
1604
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
7096
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
3999
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
1784
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
2158
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
1317
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
13755
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
2427
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
10162
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
9982
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11566
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...
1
11342
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
10689
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6113
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4943
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
3
3541
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.