[jboss-user] [JBoss jBPM] - Re: Problem testing Hello BPEL sample

zauberlehrling do-not-reply at jboss.com
Sun Dec 17 14:07:23 EST 2006


I 've found the following entry in the jndi:

anonymous wrote : Global JNDI Namespace
  | 
  |   +- jbpmbpel-client (class: org.jnp.interfaces.NamingContext)
  |   |   +- service (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- Hello (class: org.jboss.ws.jaxrpc.ServiceReferenceable)
  | 
And if I read the jndi with the following code:
Properties properties = new Properties();
  | properties.setProperty("java.naming.provider.url", "jnp://localhost:1099");
  | properties.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
  | properties.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming.client");
  | properties.setProperty("j2ee.clientName", "jbpmbpel-client");
  | InitialContext iniCtx = new InitialContext(properties);
  | 
  | NamingEnumeration iter = (NamingEnumeration)iniCtx.list("jbpmbpel-client/service");
  | while (iter.hasMore())
  | {
  |      System.out.println(" "+iter.next());
  | }
then I get the following answer:
Hello: org.jboss.ws.jaxrpc.ServiceReferenceable
This looks fine. But when I run the following commands: 
Properties properties = new Properties();
  | properties.setProperty("java.naming.provider.url", "jnp://localhost:1099");
  | properties.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
  | properties.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming.client");
  | properties.setProperty("j2ee.clientName", "jbpmbpel-client");
  | InitialContext iniCtx = new InitialContext(properties);
  | 
  | Object object  = iniCtx.lookup("jbpmbpel-client/service/Hello");
then the answer is:
19:56:02,788 ERROR ServiceObjectFactory : Cannot create service
  | javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
  | 	at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:127)
  | 	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
  | 	at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
  | 	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
  | 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
  | 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | 	at javax.naming.InitialContext.lookup(InitialContext.java:351)
So as I understand there is a problem accessing the Hello-Object in the jndi.

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

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



More information about the jboss-user mailing list