0 Replies Latest reply on Feb 11, 2006 5:41 PM by jlauman

    JBoss 4.0.4RC1 won't build ejb3

    jlauman Newbie

      I get the following error of both the v4.0.4RC1 src distro and the cvs. Any help on how to resolve this would be appreciated.

      Thanks,

      Jack

      compile-classes:
      [javac] Compiling 111 source files to /opt/java/jboss-cvs/jboss-4.0/ejb3/output/classes
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:49: org.jboss.ejb3.entity.ExtendedHibernateSession is not abstract and does not override abstract method update(java.lang.String,java.lang.Object,java.io.Serializable) in org.hibernate.Session
      [javac] public class ExtendedHibernateSession implements Session, ExtendedPersistenceContext, Serializable
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:309: delete(java.lang.Object) in org.hibernate.Session cannot be applied to (java.lang.String,java.lang.Object)
      [javac] getHibernateSession().delete(entityName, object);
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:454: cannot find symbol
      [javac] symbol : method getTransaction()
      [javac] location: interface org.hibernate.Session
      [javac] return getHibernateSession().getTransaction();
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:52: org.jboss.ejb3.entity.InjectedHibernateSession is not abstract and does not override abstract method update(java.lang.String,java.lang.Object,java.io.Serializable) in org.hibernate.Session
      [javac] public class InjectedHibernateSession implements Session, Externalizable
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:316: delete(java.lang.Object) in org.hibernate.Session cannot be applied to (java.lang.String,java.lang.Object)
      [javac] getHibernateSession().delete(entityName, object);
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:461: cannot find symbol
      [javac] symbol : method getTransaction()
      [javac] location: interface org.hibernate.Session
      [javac] return getHibernateSession().getTransaction();
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedSessionFactory.java:92: cannot find symbol
      [javac] symbol : method getDefinedFilterNames()
      [javac] location: interface org.hibernate.SessionFactory
      [javac] return getSessionFactory().getDefinedFilterNames();
      [javac] ^
      [javac] /opt/java/jboss-cvs/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedSessionFactory.java:97: cannot find symbol
      [javac] symbol : method getFilterDefinition(java.lang.String)
      [javac] location: interface org.hibernate.SessionFactory
      [javac] return getSessionFactory().getFilterDefinition(filterName);
      [javac] ^
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 8 errors

      BUILD FAILED