[jboss-user] [EJB 3.0] - Re: $Proxy200 error & Invalid (i.e. remote) invocation of lo

ezanih do-not-reply at jboss.com
Thu Jan 8 03:25:04 EST 2009


The error message on my Eclipse console stubbornly shows that I am still using Hibernate Annotations 2.1.GA despite me adding the latest versions of HA to the classpath. I have also tried adding them to the lib folder of server\default. That I guess is the source of my error but how do I get Eclipse to recognise that I'm using a later version of HA than 2.1.GA ???

Eclipse Console error message:

  | - Hibernate Annotations 3.2.1.GA
  | Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
  | INFO: Hibernate 3.3.0.SP1
  | Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
  | INFO: hibernate.properties not found
  | Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment buildBytecodeProvider
  | INFO: Bytecode provider name : javassist
  | Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
  | INFO: using JDK 1.4 java.sql.Timestamp handling
  | Jan 8, 2009 3:08:51 PM org.hibernate.ejb.Version <clinit>
  | INFO: Hibernate EntityManager 3.4.0.GA
  | Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
  | 	at org.hibernate.ejb.Ejb3Configuration.setProperty(Ejb3Configuration.java:535)
  | 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:165)
  | 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
  | 	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
  | 	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
  | 	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
  | 	at BidClient.main(BidClient.java:53)
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200261#4200261

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200261



More information about the jboss-user mailing list