[jboss-user] [Remoting] - Service invoked remotely by another service by http invoker

bgonline do-not-reply at jboss.com
Tue Jan 9 06:14:07 EST 2007


Hello,

I use HttpInvoker remoting technology of Spring to access services remotely.
I'm running under JBoss-4.0.3.

I have a service that invoke remotely another service by HttpInvoker.
These 2 services are deployed in 2 separated wars.
In each war, there is the object ClientIdentification.

First, the service MyService calls remotely the other service ClientService to get the object ClientIdentification (1).
Then, the service MyService calls remotely the other service ClientService to update the object ClientIdentification. (2)


  | public void MyService {
  | 	public void updateClient() {
  | 		// (1)
  | 		ClientIdentification clientIdentification =  this.clientService.viewClient("000001");
  | 		clientIdentification.setNumberOfChildren(4);
  | 		
  | 		// (2)
  | 		this.clientService.updateClient(clientIdentification);
  | 	}
  | }
  | 
When I do the update, there is the following exception :

  | org.springframework.web.util.NestedServletException: Class not found during deserialization;
  | nested exception is java.lang.ClassNotFoundException: No ClassLoaders found for: com.cwsoft.client.client.businessobject.ClientIdentification
  | Caused by:
  | java.lang.ClassNotFoundException: No ClassLoaders found for: com.cwsoft.client.client.businessobject.ClientIdentification
  | 
I suspect that the classloader of the ClientIdentification object in the caller service is not the same as the ClientIdentification object in the service accessed.

Is there any solution or advice to resolve this problem ?

Thanks in advance,

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999393#3999393

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999393



More information about the jboss-user mailing list