Problem is due to libraries required when project is run are in war/
WEB-INF/lib and libraries used during build are from java library path
(project settings). And there are no easy ways to sync unless you are
Eclipse guru and can manage to write Ant script to update web
libraries using project variables.

For EAR projects J2EE Module Dependencies can solve jar sync problem
(http://www.eclipse.org/webtools/releases/1.5/newandnoteworthy/
j2ee.html) but Google Web Application project is not EAR project.
Again Eclipse gurus can do some magic here editing .project file by
hand.

Simple problem resoluton for mortals follows.


1. Change errors to warnings

Window/Preferences from menu
Google
        Errors/Warnings
Expand "Project structure and SDKs"
SDK JAR missing from WEB-INF/lib : select Warning in combo


2. Delete old jars from war/WEB-INF/lib.

Delete these jars from war/WEB-INF/lib (except gwt-servlet.jar):
appengine-api-1.0-sdk-1.2.1.jar
datanucleus-appengine-1.0.1.final.jar
datanucleus-core-1.1.0.jar
datanucleus-jpa-1.1.0.jar
geronimo-jpa_3.0_spec-1.1.1.jar
geronimo-jta_1.1_spec-1.1.1.jar
jdo2-api-2.3-SNAPSHOT.jar

You still will be able to compile project but not run it because jetty
web server will look for libraries in WEB-INF/lib.

3. Copy missing jars of required versions to WEB-INF/lib.

Simpliest way is to copy all files from:
(eclipse)\plugins\com.google.appengine.eclipse.sdkbundle.
1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\demos\guestbook\war
\WEB-INF\lib

(eclipse) is location where your eclipse is installed. Macs and
Linuxes should replace \ to / in file path


4. Refresh folder in Eclipse

In Eclipse, select war/WEB-INF/lib, Refresh to refresh folder
contents.


5. Now fix your Eclipse settings to avoid running into the same
problems again.

Window/Preferences from menu
Google
        App Engine
Check latest SDK version
Google
        Web Toolkit
Check latest GWT version


PS. And now Google suggests to upgrade to release 1.3.3 :)

-- 
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