[jboss-user] [JNDI/Naming/Network] - Lookup error [Jboss 3.2.5 >> 4.2.2]
aaraujo
do-not-reply at jboss.com
Tue Oct 14 11:41:12 EDT 2008
Hi,
I have an application A, which runs on Jboss 3.2.5 (JDK 1.4) and I'm trying to lookup an EJB (2.1) on another application B, which runs on Jboss 4.2.2.GA (JDK 1.6), but I'm getting the following error:
2008-10-13 21:40:45,023 INFO [STDOUT] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889]
| 2008-10-13 21:40:45,032 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
| 2008-10-13 21:40:45,036 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
| 2008-10-13 21:40:45,041 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:347)
|
I understand Jboss 3.2.5 has a different version of GUID class than Jboss 4.2.2, but I really need to make this lookup. Does anyone have an idea?
Above the code I'm using to make the lookup:
Properties props = new Properties();
| props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| props.put(Context.PROVIDER_URL, "192.168.0.100:1099");
| props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
|
| InitialContext ic = new InitialContext(props);
| Object objref = ic.lookup("MyEJB");
| VendasFuncoesHome home = (MyEJBHome) PortableRemoteObject.narrow(objref, MyEJBHome.class);
|
Tks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182183#4182183
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182183
More information about the jboss-user
mailing list