This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss deployment - PortableRemoteObject

 
Sarin Kuraganti
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic