marcorosi / regola-kit

Automatically exported from code.google.com/p/regola-kit
1 stars 2 forks source link

I test di Regola JDO non funzionano su Java 6 #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Se si eseguono i test di regola-jdo con Java 6 si ottiene questo messaggio:

org.springframework.orm.jdo.JdoUsageException: The class
"org.regola.model.Customer" is not Persistence-Capable. This means that it
either hasnt been enhance
d, or that the enhanced version of the file is not in the CLASSPATH (or is
hidden by an unenhanced version), or the Meta-Data for the class is not
found.; ne
sted exception is org.jpox.exceptions.ClassNotPersistenceCapableException:
The class "org.regola.model.Customer" is not Persistence-Capable. This
means that 
it either hasnt been enhanced, or that the enhanced version of the file is
not in the CLASSPATH (or is hidden by an unenhanced version), or the
Meta-Data for
 the class is not found.

La versione di Java 6 testata:
Java(TM) SE Runtime Environment (build 1.6.0-b105)

Original issue reported on code.google.com by davide.r...@gmail.com on 11 Oct 2007 at 6:03

GoogleCodeExporter commented 9 years ago
Problema risolto eliminando la fase di enhance a compile time e sostituita con 
quella
a runtime (usando -javaagent). Per farlo ho dovuto migrare alla versione 
1.2-SNAPSHOT
di JPOX (dai repository maven-nightly...).

Ora i test passano interamente, con Java5 e 6 :-)

Java6:

  [INFO] ------------------------------------------------------------------------
  [INFO] REGOLA Toolkit ........................................ SUCCESS [0.371s]
  [INFO] REGOLA Toolkit :: Core module ......................... SUCCESS [3.409s]
  [INFO] REGOLA Toolkit :: Hibernate integration module ........ SUCCESS [3.874s]
  [INFO] REGOLA Toolkit :: JPA integration module .............. SUCCESS [8.702s]
  [INFO] REGOLA Toolkit :: JDO integration module .............. SUCCESS [9.092s]
  [INFO] ------------------------------------------------------------------------

Java5:

  [INFO] ------------------------------------------------------------------------
  [INFO] REGOLA Toolkit ........................................ SUCCESS [0.612s]
  [INFO] REGOLA Toolkit :: Core module ......................... SUCCESS [4.305s]
  [INFO] REGOLA Toolkit :: Hibernate integration module ........ SUCCESS [4.402s]
  [INFO] REGOLA Toolkit :: JPA integration module .............. SUCCESS [12.326s]
  [INFO] REGOLA Toolkit :: JDO integration module .............. SUCCESS [11.845s]
  [INFO] ------------------------------------------------------------------------

Original comment by davide.r...@gmail.com on 11 Oct 2007 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by l.bragag...@gmail.com on 14 Oct 2007 at 10:31