I am using the google eclipse plugin for app engine and once I add
log4j to WEB-INF/lib and to my project classpath the automatic
datanucleus enhancement step starts to fail with the error at the
bottom of this message.
My ant build script still works fine, so could anyone confirm whether
I might be missing something or is this an issue with the plugin?
java.lang.RuntimeException: Unexpected exception
at com.google.appengine.tools.enhancer.Enhancer.execute
(Enhancer.java:59)
at com.google.appengine.tools.enhancer.Enhance.<init>
(Enhance.java:60)
at com.google.appengine.tools.enhancer.Enhance.main
(Enhance.java:41)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.appengine.tools.enhancer.Enhancer.execute
(Enhancer.java:57)
... 2 more
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at
org.datanucleus.metadata.annotations.AbstractAnnotationReader.getFieldAnnotationsForClass
(AbstractAnnotationReader.java:289)
at
org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass
(AbstractAnnotationReader.java:143)
at
org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass
(AnnotationManagerImpl.java:136)
at
org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass
(MetaDataManager.java:2278)
at org.datanucleus.metadata.MetaDataManager.loadClasses
(MetaDataManager.java:385)
at
org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput
(DataNucleusEnhancer.java:743)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhance
(DataNucleusEnhancer.java:545)
at org.datanucleus.enhancer.DataNucleusEnhancer.main
(DataNucleusEnhancer.java:1252)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at com.google.appengine.tools.enhancer.EnhancerLoader.loadClass
(EnhancerLoader.java:85)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
398)
... 18 more
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.