---
title: "resin3.0升级到3.1版本遇到的问题"
author: "e3002"
date: "2008-06-13T11:59:00Z"
tags: []
slug: "resin3-0-3-1"
draft: false
lastmod: "2008-06-13T11:59:00Z"
id: 231972
url: "https://e3002.iteye.com/blog/231972"
---

resin3.0升级到3.1版本遇到的问题

1.接手前任项目，没有测试环境（真不知前任怎么弄的），只好自己动手弄一个啦，ok，开始  

一。把现在线上的代码直接tar了个包。wget到测试server上，解压下，以为应该一切顺利啦，结果不能登录

，登陆系统用不了。跟踪了resin的输出日志，报空指针异常，怪了，明明有用户系统的配置文件啊，google了

半天，终于解决，原来是reisn解析xml的问题，原来的web.xml中用户系统的配置如下

 &lt;filter&gt;  

              &lt;filter-name&gt;UserLoginFilter&lt;/filter-name&gt;   

               &lt;filter-class&gt;    com.airinbox.matrix.client.web.UserLoginFilterB   &lt;/filter-class&gt;  

                 &lt;init-param&gt;

                          &lt;param-name&gt;configFilePath&lt;/param-name&gt;   

                     &lt;param-value&gt;

                              /WEB-INF/config/matrix-client.properties   

                  &lt;/param-value&gt;

             &lt;/init-param&gt;

 &lt;/filter&gt;

改成下面就可以了

  &lt;filter&gt;   

     &lt;filter-name&gt;UserLoginFilter&lt;/filter-name&gt;

     &lt;filter-class&gt;    com.airinbox.matrix.client.web.UserLoginFilterB   &lt;/filter-class&gt;  

     &lt;init-param&gt;  

            &lt;param-name&gt;configFilePath&lt;/param-name&gt;    

           &lt;param-value&gt;/WEB-INF/config/matrix-client.properties&lt;/param-value&gt;

   &lt;/init-param&gt;  

&lt;/filter&gt;

注意比较下两者的不同啊，&lt;param-value&gt;的写法

二。用户系统可以用了，但又出现了不能编译jsp的问题，提示文件类型问题，不能编译，继续google，有篇文

章说是bom（[http://lavasp.iteye.com/blog/103731](http://lavasp.iteye.com/blog/103731) ）的问题。可以用ultraedit将起转码为utf-8，就可以

了。赶紧试了下没用啊  三。测试人员催的又紧，我得给提供个测试环境啊。干脆把线上用的resin3.0的直接copy来，改了下port，和

java\_home。注意两个文件分别位于resin.conf和httpd.sh中

ok！