1 2 Previous Next 15 Replies Latest reply on Jan 27, 2009 10:50 AM by venuwin

    EJB3 issue on Jboss5

    venuwin

      Hi all,

      I am using Jboss 5 and have deployed few ear files. The irony here is that the same build was not throwing this error in JBoss4.0.5.

      the error i get in Jboss 5 is


      00:50:25,535 ERROR [Helper] getClickUrl() Ex: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.IsLocalInterceptor; local class incompatible: stream classdesc serialVersionUID = -3758782076801249473, local class serialVersionUID = 337700910587744646]
      javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.IsLocalInterceptor; local class incompatible: stream classdesc serialVersionUID = -3758782076801249473, local class serialVersionUID = 337700910587744646]
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:725)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at net.tss.app.utils.Utility.getProductLookupBean(Utility.java:1688)


      Any idea why ? And how do i fix this ? Some googling took me to some pages where i found that it was an issue in Jboss 4 which was then fixed.

      Thanks
      Venu

        • 1. Re: EJB3 issue on Jboss5
          jaikiran

          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

            Will check this and revert back Jaikiran.

            Thanks
            venu

            • 3. Re: EJB3 issue on Jboss5
              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

                 

                "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

                  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

                     

                    "venuwin" wrote:
                    The client is a plain java class.


                    So this statement

                    I 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

                      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

                        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

                          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

                            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

                              Jira seems to be down.. Will post it there Jaikiran. Thanks for your guidance.

                              • 12. Re: EJB3 issue on Jboss5
                                venuwin
                                • 13. Re: EJB3 issue on Jboss5
                                  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

                                     

                                    "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

                                    1 2 Previous Next