appengine上的Springmvc表单标签错误无法编译jsp文件
在使用 springmvc 的应用程序上部署到应用程序引擎时,我收到以下错误。我在自定义 jstl 标签上看到过类似的帖子,但没有看到与 springmvc 表单标签相关的帖子。我还在 http://groups.google 上关注了该线程。 com/group/google-appengine-java/browse_thread/thread/d93fd7385bf85bf7 注册 PropertyEditors。从命令行运行 appcfg 脚本后,我收到以下错误,专门指向 springframework 表单标签:
Reading application configuration data...
Mar 30, 2011 7:11:55 PM com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed AllData/netBeans_Projects/Listings/web\WEB-INF/appe
ngine-web.xml
Mar 30, 2011 7:11:55 PM com.google.apphosting.utils.config.AbstractConfigXmlRead
er readConfigXml
INFO: Successfully processed AllData/netBeans_Projects/Listings/web\WEB-INF/web.
xml
Beginning server interaction for opevel-listings...
0% Creating staging directory
5% Scanning for jsp files.
8% Compiling jsp files.
Error Details:
Mar 30, 2011 7:11:59 PM org.apache.jasper.JspC processFile
INFO: Built File: \redirect.jsp
Exception in thread "main" org.apache.jasper.JasperException: The absolute uri:
http://www.springframework.org/tags/form cannot be resolved in either web.xml or
the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:51)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:116)
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Tag
LibraryInfoImpl.java:315)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoIm
pl.java:148)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:38
6)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:449)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1396)
at org.apache.jasper.compiler.Parser.parse(Parser.java:130)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:255)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:103)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
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)
Error while executing: C:\Java\jdk1.6.0_06\jre\bin\java.exe -classpath /D:/appen
gine-java-sdk-1.4.2/lib/impl/appengine-api-labs.jar;/D:/appengine-java-sdk-1.4.2
/lib/impl/appengine-api-stubs.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengin
e-api.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengine-local-runtime.jar;D:\a
ppengine-java-sdk-1.4.2\lib\shared\appengine-local-runtime-shared.jar;D:\appengi
ne-java-sdk-1.4.2\lib\shared\el-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\j
sp\repackaged-appengine-ant-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\shared\jsp
\repackaged-appengine-ant-launcher-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\sha
red\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\appengine-java-sdk-1.4.2\lib\s
hared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\appengine-java-sdk-1.4.2\
lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\appengine-java-sdk
-1.4.2\lib\shared\jsp-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\servlet-api
.jar;D:\appengine-java-sdk-1.4.2\lib\shared\tools.jar;C:\DOCUME~1\ADMINI~1\LOCAL
S~1\Temp\appcfg56538.tmp\WEB-INF\classes;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appc
fg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.
1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.
tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMI
NI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.2
9.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jasper-el-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tm
p\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LO
CALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.
jar; com.google.appengine.tools.development.LocalJspC -uriroot C:\DOCUME~1\ADMIN
I~1\LOCALS~1\Temp\appcfg56538.tmp -p org.apache.jsp -l -v -webinc C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\generated_web.xml -d C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\classes -compile -javaEncoding UTF-
8
com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp
files.
Unable to update app: Failed to compile jsp files.
Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56537.log] for fur
ther information.
将不胜感激。
问候
I am getting the following error on deployment to app engine on my application that makes use of springmvc. I have seen similar postings on custom jstl tags but none relating to springmvc form tags. I have also followed this thread at http://groups.google.com/group/google-appengine-java/browse_thread/thread/d93fd7385bf85bf7 to register PropertyEditors. After running the appcfg script from the command line, I am getting the following error specifically pointing to springframework form tags:
Reading application configuration data...
Mar 30, 2011 7:11:55 PM com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed AllData/netBeans_Projects/Listings/web\WEB-INF/appe
ngine-web.xml
Mar 30, 2011 7:11:55 PM com.google.apphosting.utils.config.AbstractConfigXmlRead
er readConfigXml
INFO: Successfully processed AllData/netBeans_Projects/Listings/web\WEB-INF/web.
xml
Beginning server interaction for opevel-listings...
0% Creating staging directory
5% Scanning for jsp files.
8% Compiling jsp files.
Error Details:
Mar 30, 2011 7:11:59 PM org.apache.jasper.JspC processFile
INFO: Built File: \redirect.jsp
Exception in thread "main" org.apache.jasper.JasperException: The absolute uri:
http://www.springframework.org/tags/form cannot be resolved in either web.xml or
the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:51)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:116)
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Tag
LibraryInfoImpl.java:315)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoIm
pl.java:148)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:38
6)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:449)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1396)
at org.apache.jasper.compiler.Parser.parse(Parser.java:130)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:255)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:103)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
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)
Error while executing: C:\Java\jdk1.6.0_06\jre\bin\java.exe -classpath /D:/appen
gine-java-sdk-1.4.2/lib/impl/appengine-api-labs.jar;/D:/appengine-java-sdk-1.4.2
/lib/impl/appengine-api-stubs.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengin
e-api.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengine-local-runtime.jar;D:\a
ppengine-java-sdk-1.4.2\lib\shared\appengine-local-runtime-shared.jar;D:\appengi
ne-java-sdk-1.4.2\lib\shared\el-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\j
sp\repackaged-appengine-ant-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\shared\jsp
\repackaged-appengine-ant-launcher-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\sha
red\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\appengine-java-sdk-1.4.2\lib\s
hared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\appengine-java-sdk-1.4.2\
lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\appengine-java-sdk
-1.4.2\lib\shared\jsp-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\servlet-api
.jar;D:\appengine-java-sdk-1.4.2\lib\shared\tools.jar;C:\DOCUME~1\ADMINI~1\LOCAL
S~1\Temp\appcfg56538.tmp\WEB-INF\classes;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appc
fg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.
1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.
tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMI
NI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.2
9.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jasper-el-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tm
p\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LO
CALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.
jar; com.google.appengine.tools.development.LocalJspC -uriroot C:\DOCUME~1\ADMIN
I~1\LOCALS~1\Temp\appcfg56538.tmp -p org.apache.jsp -l -v -webinc C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\generated_web.xml -d C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\classes -compile -javaEncoding UTF-
8
com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp
files.
Unable to update app: Failed to compile jsp files.
Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56537.log] for fur
ther information.
Will appreciate any help.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将 appdir 的命令从
“appcfg --enable_jar_splitting update path/to/project/web path/to/project/dist/”更改为
“appcfg --enable_jar_splitting update path/to/project/build/web” 解决了该问题路径/到/项目/dist/”
问候
I fixed the problem by changing the command for the appdir from
"appcfg --enable_jar_splitting update path/to/project/web path/to/project/dist/" to
"appcfg --enable_jar_splitting update path/to/project/build/web path/to/project/dist/"
Regards