The header of ejb-jar.xml changes for new versions of jboss? Because I tried to execute an EJB aplication and I had problems on JBoss4.0.3RC1, but when I use the JBoss3.2.1 the program perform very well......
This is the ejb-jar.xml header:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
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] Caused by: java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
Problem is not with ejb-jar.xml. In your classpath you have jar files of jboss-3.2.1, even when you have shifted to jboss-4.0.3RC1. Thats the reason, the wrong class files are being referenced. Remove your old jar files from the classpath and try out