GAE(Google App Engine)上Java开发两条Tips

 

 GAE(Google App Engine)上Java开发两条Tips

 

1、所有的非jsp,java文件需要在appengine-config.xml中配置为static-files 或者 resource-files,否则无法上传到GAE服务器

2、所有跑在GAE上的对象必须实现Serializable接口,否则可能出错

 

 


Tags: Google  struts  struts2  java  java基础  gae  
GAE(Google App Engine)上使用Struts2

 

使用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.Str ing)] 
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如下..............

 


Tags: Google  struts  struts2  java  java基础  gae  
分页:[«] 1[»]
Feed订阅集
勤劳致富^.^
Powered By Z-Blog   STYLE by busfly . FatMouse
Copyright © 2007 巴士飞扬技术博客. . 沪ICP备07027972号. 会员群1(VS为主):3769186.