My web application worked fine locally but failed when I tried to deploy to Google Appengine. The problem faced is JSP Compilation Problem, it stated that it couldn’t found com/sun/…./javac classes.
The solution is:
1. First, locate your Google Appengine SDK installation folders:
such as, [ C:\Users\fyhao\Desktop\eclipse-jee-ganymede-SR2-win32\appengine-java-sdk-1.4.0\appengine-java-sdk-1.4.0 ]
2. Locate [installation folder[\bin\appcfg.cmd file, you will see:
@java -cp "%~dp0\..\lib\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*
@"C:\Program Files\Java\jdk1.6.0\bin\java" -cp "%~dp0\..\lib\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*
as you see, change java into JDK path.
3. And then, locate [JDK path]\lib\tools.jar, copy this file into [appengine installation folder]\lib\shared
And then, now, you can try again if it worked successfully.