今天将项目打成war包准备发布到weblogic,结果选择文件部署时报错
查看weblogic日志之后发现是web.xml配置有误,仔细检查之后发现有一处filter配置不规范,因为我本机使用的是Tomcat服务器没有出现问题,将配置改了之后就可以了,下面是修改前后代码对比
<filter>
<filter-name>UpdateJDBCFilter</filter-name>
<filter-class>com.ly.filter.UpdateJDBCFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UpdateJDBCFilter</filter-name>
<url-pattern>/CustomerListToJspServlet</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UpdateJDBCFilter</filter-name>
<url-pattern>/CarLoadListToJspServlet</url-pattern>
</filter-mapping>
<filter>
<filter-name>UpdateJDBCFilter</filter-name>
<filter-class>com.ly.filter.UpdateJDBCFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UpdateJDBCFilter</filter-name>
<url-pattern>/CustomerListToJspServlet</url-pattern>
<url-pattern>/CarLoadListToJspServlet</url-pattern>
</filter-mapping>