[JBoss-dev] [Design of JBoss Eclipse IDE (dev)] - Re: incompatible stream classdesc serialVersionUID
Hi, This is likely due to the problem that the version of class on your client is different from server. E.g. You call the EJB from a servlet, thus servlet is client. On your servlet, you will have some class of your EJB. If you make some changes to your EJB and redeploy your EJB, but didn't update your WAR app, your servlet will connect to the EJB expecting the old version of the class, and thus cause the Exception. You may wish to try to update both the EJB and WAR. Note that this is also common if you are using Hibernate. i.e. even though you have change some class in the mapping classes and you EJB using it has been updated, you still need to update the hibernate.sar for example. Hope this helps. Cheers. Han Ming View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868758#3868758 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868758 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of JBoss Eclipse IDE (dev)] - Re: incompatible stream classdesc serialVersionUID
anonymous wrote : | You call the EJB from a servlet, thus servlet is client. | On your servlet, you will have some class of your EJB. | If you make some changes to your EJB and redeploy your EJB, but didn't update your WAR app, your servlet will connect to the EJB expecting the old version of the class, and thus cause the Exception. | You may wish to try to update both the EJB and WAR. | While dealing with entrprise application this is quite correct: the fact is that this is prescribed by specifications. However with Eclipse plugin it is look like design problem. The versions of jar files supported by plugin can be different from server side counterparts, due to the natural software developemnt cycle. This introduce a problem of synchronizing the plugin's jars with each new versions of the server. Very elegant and, from my point of view, correct approach have Eclipse WTP project: you shift the responsibility to the user. In order to run/develop against some server user must define the server "runtime", that in turn contributes required jars directly from the server. BTW: do you plan to support WTP? Alex. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869230#3869230 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869230 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of JBoss Eclipse IDE (dev)] - Re: incompatible stream classdesc serialVersionUID
Thanks a lot for your answers, Han Ming and Alex. I did what you wrote, Alex. I defined the server "runtime" in my Eclipse project: I created a plain Java Project and added two user libraries (EJB3 Library and JBoss Client). 'EJB3 Library' contains the needed jar-files of Hibernate3 (from EJB-3.0_Previous_4/lib). These are exactly the jar-files which I had copied to JBoss-4.0.1sp1 (following the install instructions of EJB-3.0_Previous_4). 'JBoss Client' contains the needed jar-files of JBoss-4.0.1sp1/client. Now, the stateless example of EJB-3.0_Previous_4 is running from inside the Eclipse IDE. Holger View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869432#3869432 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869432 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development