Gugu's profile豚豚的狗窝PhotosBlogListsMore Tools Help

Blog


    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。

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://guguons.spaces.live.com/blog/cns!E49A3927315AF03!1957.trak
    Weblogs that reference this entry
    • None