Google App Engine for Java
这里看GAE支持的java框架/技术/语言 列表
https://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
然后是让Struts2运行在gae上的方法
这里有2个相关资料
https://groups.google.com/group/google-appengine-java/browse_thread/thread/19018b0317f27817/ec19c458bb15413b?lnk=gst&q=struts2#ec19c458bb15413b
http://www.nabble.com/Google-App-Engine-support--td22972179.html
只看下文也可以
使用Struts2时候报异常
WARNING: Caught OgnlException while setting property 'location' on type
'org.apache.struts2.dispatcher.ServletDispatcherResult'.
java.lang.IllegalAccessException: Method [public void
org.apache.struts2.dispatcher.StrutsResultSupport.setLocation(java.lang.String)]
cannot be accessed.
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:508)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:812)
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'name' on 'class com.ociweb.gaestruts2.HelloAction: Error
setting expression 'name' with value '[Ljava.lang.String;@24de7d'
解决方法:
1. 建class如下
2.web.xm配置监听器
此时再运行你的struts2项目就行了