-
Calling an EJB in JBoss 4.0.2 from a 1.3.1 client (2 messages)
- Posted by: Aldo Laiseca
- Posted on: September 13 2006 16:21 EDT
Hi all, I have an EJB that needs to be compiled at least using JDK 1.4.2 and deployed to run in a JBoss 4.0.2 server. I also have a SWT stand-alone application that needs to call that EJB, but for some specific environment restrictions that client application needs to compiled and run under JDK/JRE 1.3.1. It seems that the JBoss client libraries included for 4.0.2 are not 1.3.1 compatible, so I tried to use those of 3.2.5 and I am getting the following exception: 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] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509) at javax.naming.InitialContext.lookup(InitialContext.java:347) ... etc So my question is: how can I setup a stand-alone application running in a 1.3.1 environment to be a client of an EJB deployed in a JBoss 4.0.2 server? Thanks for your help!!Threaded Messages (2)
- Re: Calling an EJB in JBoss 4.0.2 from a 1.3.1 client by Bhagvan K on September 13 2006 19:38 EDT
- Re: Calling an EJB in JBoss 4.0.2 from a 1.3.1 client by Aldo Laiseca on October 11 2006 17:37 EDT
-
Re: Calling an EJB in JBoss 4.0.2 from a 1.3.1 client[ Go to top ]
- Posted by: Bhagvan K
- Posted on: September 13 2006 19:38 EDT
- in response to Aldo Laiseca
One solution is : define on the client serial versionUID as the serverside class spec... private final static long serialVersionUID = More details, please refer to : http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-control-p2.html Bhagvan K http://www.jroller.com/page/bhagvank -
Re: Calling an EJB in JBoss 4.0.2 from a 1.3.1 client[ Go to top ]
- Posted by: Aldo Laiseca
- Posted on: October 11 2006 17:37 EDT
- in response to Aldo Laiseca
Thanks; I made it work by using 3.2.8 SP1 version of JBoss client. According to JBoss, their client library 4.0.x will only work under 1.4 or above.