Hi All,

I started using google app engine for java couple of days back. Am
trying the hello world app as documented in page -
http://code.google.com/appengine/docs/java/gettingstarted/creating.html,
but running into issues.

I'm trying the ant build of the application, so created the build.xml
file for my project as described in page -
http://code.google.com/appengine/docs/java/tools/ant.html. My problem
is - the datanucleusenhance target fails with a severe error message
of classnotfound. The detail message is given below. Any idea what is
going wrong in my test setup? I have also printed the classpath being
used in the "enhance_war" macro. Really appreciate somebody's help
here.

Thank you,
Venkatesh


Error message:

  [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of
classes
  [enhance] Mar 22, 2010 3:20:02 PM
org.datanucleus.metadata.MetaDataManager loadClasses
  [enhance] SEVERE: Class "com.venkat.guestbook.GuestBookServlet" was
not found in the CLASSPATH. Please check your specification and your
CLASSPATH.
  [enhance] org.datanucleus.exceptions.ClassNotResolvedException:
Class "com.venkat.guestbook.GuestBookServlet" was not found in the
CLASSPATH. Please check your specification and your CLASSPATH.
  [enhance]     at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
250)
  [enhance]     at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
415)
  [enhance]     at
org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java:
379)
  [enhance]     at
org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:
743)
  [enhance]     at
org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:
545)
  [enhance]     at
org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:
1252)
  [enhance]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  [enhance]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  [enhance]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  [enhance]     at java.lang.reflect.Method.invoke(Method.java:585)
  [enhance]     at
com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:57)
  [enhance]     at
com.google.appengine.tools.enhancer.Enhance.<init>(Enhance.java:60)
  [enhance]     at
com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41)
  [enhance]
  [enhance] DataNucleus Enhancer completed with success for 0 classes.
Timings : input=63 ms, enhance=0 ms, total=63 ms. Consult the log for
full details
  [enhance] DataNucleus Enhancer completed and no classes were
enhanced. Consult the log for full details

FYI, classpath getting used:

     [echo] classpath: C:\Program Files\Google\appengine-java-
sdk-1.3.1\lib\appengine-tools-api.jar;D:\projects\gae\Guestbook\war
\WEB-INF\classes;D:\projects\gae\Guestbook\war\WEB-INF\lib\appengine-
api-1.0-sdk-1.3.1.jar;D:\projects\gae\Guestbook\war\WEB-INF\lib
\appengine-api-labs-1.3.1.jar;D:\projects\gae\Guestbook\war\WEB-INF\lib
\appengine-jsr107cache-1.3.1.jar;D:\projects\gae\Guestbook\war\WEB-INF
\lib\datanucleus-appengine-1.0.5.final.jar;D:\projects\gae\Guestbook
\war\WEB-INF\lib\datanucleus-core-1.1.5.jar;D:\projects\gae\Guestbook
\war\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;D:\projects\gae\Guestbook
\war\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;D:\projects\gae
\Guestbook\war\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;D:\projects
\gae\Guestbook\war\WEB-INF\lib\jdo2-api-2.3-eb.jar;D:\projects\gae
\Guestbook\war\WEB-INF\lib\jsr107cache-1.1.jar

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to