0

我第一次尝试在 App Engine 上部署应用程序,我收到一条错误消息“com.google.appengine.tools.admin.JspCompilationException:编译 jsp 文件失败。”。任何人都有任何想法我该如何解决这个问题。我已经将eclipse设置为指向JDK1.6.0_17。我正在尝试使用具有 App Engine SDK 1.7 的 Eclipse 3.7 Indigo 将 OAuth 与 salesforce 和 GAE 集成。问题是应用程序是用 jdk 1.5 编写的,我必须让它部署在 jdk 1.6 中。我使用了 5 个帮助 jar 文件:commons-codec-1.6.jar、commons-lang-2.6.jar、oauth-1.4.jar、partner-18.jar、wsc-gae-16_0.jar。伙伴 jar 包含: com.sforce.sobject.SObject.class 用于编译 jsp 文件。它显示错误为:

    Preparing to deploy:
    Created staging directory at: 'C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp'
    Scanning for jsp files.
    Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files.
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Error compiling file: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java     [javac] Compiling 1 source file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
    [javac] import com.sforce.soap.partner.sobject.SObject;
    [javac]                                       ^
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
    [javac] import com.sforce.soap.partner.sobject.SObject;
    [javac]                                       ^
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]   SObject[] accounts = (SObject[])request.getAttribute("accounts");
    [javac]   ^
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]   SObject[] accounts = (SObject[])request.getAttribute("accounts");
    [javac]                         ^
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:69: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]  for (SObject account : accounts) { 
    [javac]       ^
    [javac] Note: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors

Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    at org.apache.jasper.JspC.processFile(JspC.java:1192)
    at org.apache.jasper.JspC.execute(JspC.java:1341)
    at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:18)
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Environment: Compile: javaFileName=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java
    classpath=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
    cp=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api-labs.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api-stubs.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-local-runtime.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\google_sql.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar
    cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar
    cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
    work dir=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
    extension dir=C:\Program Files\Java\jdk1.6.0_05\jre\lib\ext;C:\windows\Sun\Java\lib\ext
    srcDir=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
    compiler=extJavac
   compilerTargetVM=1.5
   compilerSourceVM=1.5
    include=org/apache/jsp/accounts_jsp.java


Exception in thread "main" org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: -1 in the generated java file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
    [javac] import com.sforce.soap.partner.sobject.SObject;
    [javac]                                       ^


An error occurred at line: -1 in the generated java file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
    [javac] import com.sforce.soap.partner.sobject.SObject;
    [javac]                                       ^


An error occurred at line: -1 in the generated java file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]   SObject[] accounts = (SObject[])request.getAttribute("accounts");
    [javac]   ^


An error occurred at line: -1 in the generated java file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]   SObject[] accounts = (SObject[])request.getAttribute("accounts");
    [javac]                         ^


An error occurred at line: -1 in the generated java file
    [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:69: cannot find symbol
    [javac] symbol  : class SObject
    [javac] location: class org.apache.jsp.accounts_jsp
    [javac]  for (SObject account : accounts) { 
    [javac]       ^


An error occurred at line: -1 in the generated java file
    [javac] Note: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java uses unchecked or unsafe operations.


An error occurred at line: -1 in the generated java file
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors



An error occurred at line: 20 in the generated java file
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    at org.apache.jasper.JspC.processFile(JspC.java:1192)
    at org.apache.jasper.JspC.execute(JspC.java:1341)
    at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:18)


An error occurred at line: 20 in the generated java file
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass


An error occurred at line: -1 in the generated java file
SEVERE: Environment: Compile: javaFileName=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java


An error occurred at line: -1 in the generated java file
    classpath=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\T....... and so on

Debugging information may be found in C:\Users\Astrea\AppData\Local\Temp\appengine-deploy54830.log

$任何想法为什么会发生这种情况?我正在使用的文件是:accounts.jsp

<%@ page import="com.sforce.soap.partner.sobject.SObject" %>

<%  
  SObject[] accounts = (SObject[])request.getAttribute("accounts");
%>

<%@ include 
4

2 回答 2

0

You should make sure that the extra jars are in WEB-INF\lib directory (or make sure that your IDE copies them there).

于 2012-07-11T08:01:40.723 回答
0

试试这个:可能有用

Add -vm C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe to my eclipse.ini.
Ensure that the JDK is in my project's build path and not the jre.
Add the C:\Program Files\Java\jdk1.6.0_43\bin\ to the PATH for Environment Variable.

将 JAVA_HOME 路径从 JRE 更改为 JDK,并确保 JAVA_HOME\bin 包含在 PATH 中。然后,重新启动 Eclipse。

即使问题仍然存在,该包的构建路径。

于 2013-08-29T07:00:04.737 回答