During Seam 2 compilation of EAP 4.3.10.ER1, the following error is thrown:
compilecore: [javac] Compiling 503 source files to JBOSS_EAP_DIR-src/seam2/classes/coreclasses [javac] jboss-eap-src/seam2/src/main/org/jboss/seam/persistence/HibernateSessionProxy.java:671: cannot find symbol [javac] symbol : method registerInsertedKey(org.hibernate.persister.entity.EntityPersister,java.io.Serializable) [javac] location: interface org.hibernate.engine.SessionImplementor [javac] getDelegateSessionImplementor().registerInsertedKey(arg0, arg1); [javac] ^ [javac] jboss-eap-src/seam2/src/main/org/jboss/seam/persistence/HibernateSessionProxy.java:675: cannot find symbol [javac] symbol : method wasInsertedDuringTransaction(org.hibernate.persister.entity.EntityPersister,java.io.Serializable) [javac] location: interface org.hibernate.engine.SessionImplementor [javac] return getDelegateSessionImplementor().wasInsertedDuringTransaction(arg0, arg1); [javac] [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors Buildfile: build.xml
The reason for this is that Seam2/build/root.pom.xml has a dependency to hibernate:hibernate3:3.2.4.SP1_CP10-brew, which doesn't contain the above-mentioned methods. In EAP however, there is hibernate 3.2.4.SP1_CP12 (including these methods).