openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pif <frank.pien...@googlemail.com>
Subject Porblems with apache-openjpa-2.2.0 and Java 7 examples
Date Fri, 29 Jul 2011 10:01:39 GMT
I have problems with the build of the apache openjpa 2.2.0 examples  and Java
7 because of 
any idee how to solve that? 
    [javac]
C:\apache-openjpa-2.2.0-SNAPSHOT\examples\openbooks\build.jse.xml:81 
: warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=las 
t; set to false for repeatable builds 
    [javac] Compiling 46 source files to
C:\apache-openjpa-2.2.0-SNAPSHOT\exampl 
es\openbooks\target\classes 
    [javac] warning: Supported source version 'RELEASE_6' from annotation
proces 
sor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than
-source 
 '1.7' 
Bei switching JAVA_HOME to Java 7 all works fine 
another problem with th Classloader (did ORACLE change behaviour?) with
example simple\hellojpa 
compile: 
    [javac] C:\apache-openjpa-2.1.0\examples\simple\build.xml:104: warning:
'inc 
ludeantruntime' was not set, defaulting to build.sysclasspath=last; set to
false 
 for repeatable builds 

run: 
     [java] Exception in thread "main" java.lang.LinkageError: loader
(instance 
of  sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition
for 
 name: "org/apache/openjpa/jdbc/identifier/DBIdentifier$DBIdentifierType" 
     [java]     at java.lang.ClassLoader.defineClass1(Native Method) 
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:791) 
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader 
.java:142) 
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:449) 
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:71) 
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:361) 
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
     [java]     at java.security.AccessController.doPrivileged(Native
Method) 
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 
     [java]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 
     [java]     at
org.apache.openjpa.jdbc.sql.DBDictionary.configureNamingRules 
(DBDictionary.java:478) 


ragards 
Frank

--
View this message in context: http://openjpa.208410.n2.nabble.com/Porblems-with-apache-openjpa-2-2-0-and-Java-7-examples-tp6632946p6632946.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Mime
View raw message