Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Java in General
RMI codebase complications
Shawn Capron
Greenhorn
Posts: 9
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to modify the execution
string
for my RMI service the command works as expected in this format:
java -cp "$MAIN_DIR/lib/*" -Djava.rmi.server.codebase="file:$MAIN_DIR/lib/api-dev-1.0.0.jar file:$MAIN_DIR/lib/client-dev-1.0.0.jar" -Djava.security.policy="$CONFIG_DIR/security.policy" -Djava.rmi.server.hostname=server.name my.service.CLassl
but it fails like this:
java -cp "$MAIN_DIR/lib/*" -Djava.rmi.server.codebase="file:$MAIN_DIR/lib/" -Djava.security.policy="$CONFIG_DIR/security.policy" -Djava.rmi.server.hostname=server.name my.service.CLassl
The exception I get is:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: my.service.CLass at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:419) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:267) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:378) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
I have read that just specifying a directory for a codebase works with the syntax I have, is there something that I am missing?
Shawn Capron
Greenhorn
Posts: 9
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Closed this
thread
because I realized it is in the wrong section, this thread can be deleted.
Arthur, where are your pants? Check under this tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
RMI broken after Ubuntu server upgrade
Callback calls 127.0.1.1 instead of real client IP
Classpath Issue
RMI UnMarshal Exception.
Java RMI and MyEclipse
More...