Gugu's profile豚豚的狗窝PhotosBlogListsMore ![]() | Help |
|
November 19 工程从 Tomcat 6.0.20 移植到 WAS 6.1.0.27 碰到的一些杯具工程的开发环境是 Spring2.5.5 + Struts2.1.6 + iBatis2.3.4 + MyEclipse7.5 + Tomcat6.0.20,现在要部署到 WAS 6.1.0.27 上去。随便捣鼓了几下。 1. SqlMap 文件中如果有中文注释的,内容前后和注释标记之间需要空格。并且,含有中文字符的文件的编码如果是 UTF-8 格式的,必须不含 BOM 头。 2. 工程中 Spring 的一些 applicationContext.xml 我们是直接放在 src 下的,web.xml 中配置 contextConfigLocation 写的是 classpath:applicationContext-*.xml,需要改成 WEB-INF/classes/applicationContext-*.xml。 3. 工程 lib 中增加 velocity-tools-1.4.jar 和 velocity-1.5.jar。 4. 工程 lib 中移除 jsf-api.jar 和 jsf-impl.jar。 5. 工程的 JDK 换成 IBM 的 1.5.0,并且 Defalut VM Arguments 加入 -Dibm.stream.nio=true,保证编译通过。 6. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine 下,在 Generic JVM arguments 中写入 -Dibm.stream.nio=true。 7. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine > Custom Properties 下,增加属性 com.ibm.ws.webcontainer.invokeFiltersCompatibility,值为 true。 TrackbacksThe trackback URL for this entry is: http://guguons.spaces.live.com/blog/cns!E49A3927315AF03!1957.trak Weblogs that reference this entry
|
|
|