ITPub博客

首页 > 应用开发 > Java > glassfish3 install,dwr3+struts2 deploy error handling

glassfish3 install,dwr3+struts2 deploy error handling

原创 Java 作者:zenzuguo 时间:2012-09-26 16:27:52 0 删除 编辑

0. set java_home and path in enviroment to jdk1.6, remove jdk1.5 from path
1. install glassfish-installer-v2.1.1-b31g-windows-ml.jar
2. java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-windows-ml.jar
3. cd glassfish
4. ant -f setup.xml

0. should working in JDK1.6
1. add sun-web.xml
2. remove
--asm-1.5.3.jar
--asm-attrs-1.5.3.jar
--cglib-2.1_3.jar

--xercesImpl-2.6.2.jar
--xml-apis-1.0.b2.jar


3. add bellow jars
--asm-all-3.3.jar
--backport-util-concurrent-2.2.jar
--cglib-2.2.jar


replace login.jsp

issue:

1. glassfish create more than 10G log files in few mins.
check jre in bellow file. set it as: set AS_JAVA=C:javajdk1.6.0_17jre/..
glassfishconfigasenv.bat

set JAVA_HOME=C:javajdk1.6.0_17
set path=%JAVA_HOME%bin;%path%
java -version
asadmin start-domain domain1


4. exception handling
dwr2+Struts2 can't deploy on glassfish3 linux

(1) dwr exception: session error
resolve method:
change dwr2 to dwr3
no need parameter in web.xml:crossDomainSessionSecurity

(2)struts can't load configration file. java.util.zip.ZipException: error reading zip file

struts
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts
/*
REQUEST
FORWARD


struts
*.action
FORWARD

<!-- For Struts debugging console -->

struts
*.html

change action name to page name in decorators.xml

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/106285/viewspace-1059503/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2012-12-30

  • 博文量
    84
  • 访问量
    828861