-
1. Re: EJB3 issue on Jboss5
jaikiran Jan 22, 2009 2:31 AM (in response to venuwin)Looks like you are packaging JBoss-4.x related jboss jar files either in your application or on the client classpath. Your client needs JBoss-5.0 jboss client jar files instead.
-
2. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 2:38 AM (in response to venuwin)Will check this and revert back Jaikiran.
Thanks
venu -
3. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 2:46 AM (in response to venuwin)One quick question :
I am running the client on Jboss 5. The remote lookup server is still Jboss4. How do i manage this ? -
4. Re: EJB3 issue on Jboss5
jaikiran Jan 22, 2009 2:59 AM (in response to venuwin)"venuwin" wrote:
One quick question :
I am running the client on Jboss 5. The remote lookup server is still Jboss4. How do i manage this ?
What type of a client? Servlet? -
5. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 3:31 AM (in response to venuwin)The client is a plain java class. It has to lookup the remote EJB. The exception is thrown at the time of lookup.
-
6. Re: EJB3 issue on Jboss5
jaikiran Jan 22, 2009 3:40 AM (in response to venuwin)"venuwin" wrote:
The client is a plain java class.
So this statementI am running the client on Jboss 5.
is incorrect :) Your client is not on JBoss5.
The client classpath should always have the same jboss jar files that are on the server side. So if you are doing a lookup from a standalone client against JBoss-4.x, then on the client classpath, you should have the jar files present in %JBOSS_HOME%/client folder of the JBoss-4.x server. And if you are doing a lookup from a standalone client against JBoss-5, then you should have the jars from JBoss-5 client folder. -
7. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 3:51 AM (in response to venuwin)Ok Jaikiran,
let me explain : We have one EAR file up and running on Jboss5. This ear file contatins EJB3,servlets and core java classes. The client java program sits inside the EAR file.
So do you mean to say that I need to copy the jar files under REMOTE_JBOSS/server/default/lib to JBOSS5/client ?
If so is it enough to copy the jboss-ejb3x.jar and jboss-ejb3-client.jar to the client dir ? -
8. Re: EJB3 issue on Jboss5
jaikiran Jan 22, 2009 4:07 AM (in response to venuwin)So by plain java class you don't mean standalone java client.
"venuwin" wrote:
let me explain : We have one EAR file up and running on Jboss5. This ear file contatins EJB3,servlets and core java classes. The client java program sits inside the EAR file.
So its servlet or something hosted on JBossAS5 uses a java class within the app to do a lookup of a EJB3 hosted on JBossAS4.x. So effectively, JBossAS5 is the client of JBossAS4 and you run into:javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.IsLocalInterceptor; local class incompatible: stream classdesc serialVersionUID = -3758782
076801249473, local class serialVersionUID = 337700910587744646]
Might be a genuine issue. Let me check.
In the meantime can you confirm that you are not packaging any of the jboss jars in your application? -
9. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 4:11 AM (in response to venuwin)HI Jaikiran,
As you said, JBoss 5 is a client of Jboss 4.0.5.
I am not packaging any Jboss specific jar file along with my application. -
10. Re: EJB3 issue on Jboss5
jaikiran Jan 22, 2009 4:54 AM (in response to venuwin)It's a genuine issue which leads to JBoss5 client being incompatible with JBoss4.x server. Please create a JIRA here https://jira.jboss.org/jira/browse/EJBTHREE and point to this thread.
-
11. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 5:43 AM (in response to venuwin)Jira seems to be down.. Will post it there Jaikiran. Thanks for your guidance.
-
12. Re: EJB3 issue on Jboss5
venuwin Jan 22, 2009 8:46 AM (in response to venuwin)Jaikiran
Posted it in the jira
https://jira.jboss.org/jira/browse/EJBTHREE-1696 -
13. Re: EJB3 issue on Jboss5
venuwin Jan 27, 2009 8:16 AM (in response to venuwin)Hi Jaikiran,
No one has looked into the issue it seems. I though some Core Jboss developer would at least post some reply if not a solution. Is this the speed at which the issues are resolved in Jboss ? Just curious. -
14. Re: EJB3 issue on Jboss5
jaikiran Jan 27, 2009 9:55 AM (in response to venuwin)"venuwin" wrote:
Hi Jaikiran,
No one has looked into the issue it seems. I though some Core Jboss developer would at least post some reply if not a solution. Is this the speed at which the issues are resolved in Jboss ? Just curious.
Venu, sorry - we did look at that issue but forgot to update it appropriately. I have now updated the issue.As you said, JBoss 5 is a client of Jboss 4.0.5.
You will have to upgrade the server to JBossAS-4.2.2 or later