This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes jboss deployment - PortableRemoteObject Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss deployment - PortableRemoteObject" Watch "jboss deployment - PortableRemoteObject" New topic
Author

jboss deployment - PortableRemoteObject

Sarin Kuraganti
Greenhorn

Joined: Sep 04, 2003
Posts: 24
Hi,
I am unable to compile the TestClient.java to test my EJB in JBoss. I included the following in classpath:
set classpath=%classpath%;f:\JBoss\lib\ext\ejb.jar
set classpath=%classpath%;f:\JBoss\client\jboss-client.jar and
set classpath=%classpath%;f:\JBoss\client\jndi.jar
And if I say javac Client.java, I get the following error:
Unable to find javax.rmi.PortableRemoteObject.
I saw all the jar files present in all directories in JBoss but unable to find this class file to include in my classpath. Kindly revert back with necessary details like what to do and where to find the jar file containing this class file on the net, is it downloadable and can we just use it with my current version of JBoss. I am using JBoss 2.2.2 version and jdk 1.2 version. I guess I need to download the latest version for the above mentioned PortableRemoteObject, but I want help with my current version of JBoss.
Also anyone kindly inform me whether there is any way of including all the jar files in the classpath using something like *.jar or do we have to type each and every jar file we require inorder for the to be available in the classpath.
I appreciate your help in advance. Thanks.
please respond to sarinbabu@yahoo.com
Sarin
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
There should be a j2ee.jar in your JBoss deployment, can't recall where exactly that is in 2.x right now. I am moving this thread to the JBoss Forum for any further discussion...
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
javax.rmi.PortableRemoteObject is available in java 1.3 and later. You'll need to upgrade.

One solution for your jar problems would be using build tool like Ant that can do exactly what you want.
 
jQuery in Action, 2nd edition
 
subject: jboss deployment - PortableRemoteObject
 
Similar Threads
deployment issue
Loading a resource
Make sure the generated binary files are on the classpath
packaging submission
SCJP chapter 10 : Development