[ECSide] ecside为什么在tomcat5.0.28下运行不起来?
sharong
2007-05-16
我试了一下,用jdk1.4,在apache tomcat5.0.28下启动时filter报错,但是只有一句话
error filterstart 我们现在开发时的环境要求eclipse+tomcat5.0.28,只是最后发布到was5.1下。我在was5.1下试了一下,程序在was下filter是可以正确运行的,所以想请fins修改一下filter,你的这个filter在tomcat5.0.28+jdk1.4下运行不起来 另外,我用tomcat5.5.12试过,程序也可以正确运行,只有tomcat5.0.28不行 |
|
fins
2007-05-16
不应该啊
因为我们的开发环境就是 5.0.28 :'( 你的web.xml是怎么写的 发来看看呗 谢谢 |
|
sharong
2007-05-17
我的架构以前已经告诉过您了,是struts1.1+spring1.2.9+hibernate3.2.3,然后我用了ecside1.3呈现列表页面,我的web.xml如下:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app id="WebApp"> <display-name>SeaportWeb</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/applicationContext-*.xml</param-value> </context-param> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/classes/log4j.xml</param-value> </context-param> <context-param> <param-name>log4jRefreshInterval</param-name> <param-value>600000</param-value> </context-param> <filter> <filter-name>encoding</filter-name> <filter-class>com.ninetowns.commons.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> <init-param> <param-name>ignore</param-name> <param-value>true</param-value> </init-param> </filter> <filter> <filter-name>eXtremeExport</filter-name> <filter-class>org.ecside.filter.ECSideFilter</filter-class> <init-param> <param-name>responseHeadersSetBeforeDoFilter</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>useEasyDataAccess</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>useEncoding</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> </filter> <filter-mapping> <filter-name>encoding</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>eXtremeExport</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>SpringContextServlet</servlet-name> <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>action</servlet-name> <servlet-class>com.ninetowns.commons.SeaportActionServlet</servlet-class> <!-- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> --> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>/index.jsp</welcome-file> <welcome-file>/login.jsp</welcome-file> </welcome-file-list> <error-page> <error-code>404</error-code> <location>/error.html</location> </error-page> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/ecside.tld</taglib-uri> <taglib-location>/WEB-INF/ecside.tld</taglib-location> </taglib> </web-app> 这个文件在jdk1.4.2_01+tomcat5.0.28的环境下运行不起来 我google了一下,网上有些文章是认为tomcat5.0.28的filter功能有问题,但是我们目前开发必须用jdk1.4 |