[jboss-user] [JBoss Remoting] - Trying to Understand Class Loading

Kyle Thielk do-not-reply at jboss.com
Wed Jun 30 12:44:40 EDT 2010


Kyle Thielk [http://community.jboss.org/people/Fender963] created the discussion

"Trying to Understand Class Loading"

To view the discussion, visit: http://community.jboss.org/message/550427#550427

--------------------------------------------------------------
I'm a little lost and trying to find answers but am struggling, so please forgive me if anything appears...well stupid.
I am trying to follow the org.jboss.remoting.samples.transporter.serialization and incorporate it into a seam project I have deployed as an ear. In other words the server side will be running within the seam application and client side will be a standalone distributed as a jar.


I have gotten it working with built in types i.e a String. 

So change method footprint from:

`
public Order processOrder(Order order)
`
to

`
public String processOrder(String text)
`

I can call from the Client side just fine:

`
OrderProcessor orderProcessor = (OrderProcessor) TransporterClient.createTransporterClient(locatorURI, OrderProcessor.class);

      System.out.println("Order to be processed: " + order);
      String resultString = orderProcessor.processOrder("My Text");
`

and get back a result.

However if I try to use a custom object, like Order. I get ClassNotFoundException on the server side. How do I configure JBoss to use the classes deployed in my ear file? What confuses me is I have deployed the server transporter in my ear file as well as Order.class, however Order.class can't be found. I have tried following the instructions here:  http://docs.jboss.org/jbossremoting/docs/guide/2.2/html/ch07.html http://docs.jboss.org/jbossremoting/docs/guide/2.2/html/ch07.html but I think that I am misunderstanding the purpose of those instructions.

Can anyone clarify this for me?

Thank you!

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/550427#550427]

Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100630/ed2598b3/attachment.html 


More information about the jboss-user mailing list