求助: 我的web.xml文件 哪里错了。 求改正。谢谢

田Instance 发布于 2014/02/24 17:35
阅读 1K+
收藏 0

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<filter>

<filter-name>sessionIdOrganizationFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.SessionIdOrganizationFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>sessionIdOrganizationFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>jbossCacheFilter</filter-name>

<filter-class>net.xinshi.jemall.cache.JBossCacheFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>jbossCacheFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<display-name>bbs</display-name>

<servlet>

<servlet-name>servletdynatreehandler</servlet-name>

<servlet-class>net.xinshi.jemall.ui.tree.web.ServletDynaTreeHandler</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>servletdynatreehandler</servlet-name>

<url-pattern>*.dtree</url-pattern>

</servlet-mapping>

<jsp-config>

<jsp-property-group>

<display-name>JSPConfiguration</display-name>

<url-pattern>*.jsp</url-pattern>

<page-encoding>GBK</page-encoding>

</jsp-property-group>

</jsp-config>

<listener>

<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

</listener>

<listener>

<listener-class>com.comall.broadcast.web.BroadcastContextListener</listener-class>

</listener>

<listener>

<listener-class>net.xinshi.jemall.listener.UserSessionListener</listener-class>

</listener>

<listener>

<listener-class>net.xinshi.jemall.ui.servlet.SessionListener</listener-class>

</listener>

<servlet>

<servlet-name>InitDB</servlet-name>

<servlet-class>net.xinshi.jemall.dbtools.DBSource</servlet-class>

<init-param>

<param-name>ConnectUrl</param-name>

<param-value>jdbc:mysql://127.0.0.1/mysql_isone_198?characterEncoding=GBK&amp;user=root&amp;password=123456&amp;useUnicode=true&amp;autoReconnect=true</param-value>

</init-param>

<init-param>

<param-name>DriverClassName</param-name>

<param-value>org.gjt.mm.mysql.Driver</param-value>

</init-param>

<init-param>

<param-name>GuestPassword</param-name>

<param-value>GuestGuest</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet>

<servlet-name>EnvServlet</servlet-name>

<servlet-class>net.xinshi.jemall.base.EnvServlet</servlet-class>

<init-param>

<param-name>DatabaseType</param-name>

<param-value>oracle</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>

<servlet>

<servlet-name>StartupServlet</servlet-name>

<servlet-class>net.xinshi.cloud.message.process.StartupServlet</servlet-class>

<load-on-startup>3</load-on-startup>

</servlet>

<servlet>

<servlet-name>ValidateCode</servlet-name>

<servlet-class>net.xinshi.jemall.ui.servlet.ValidateCode</servlet-class>

<load-on-startup>2</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>ValidateCode</servlet-name>

<url-pattern>/ValidateCode</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>BarcodeServlet</servlet-name>

<servlet-class>net.sourceforge.barbecue.BarcodeServlet</servlet-class>

</servlet>


<servlet-mapping>

<servlet-name>BarcodeServlet</servlet-name>

<url-pattern>/barcode</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>CheckValidateCode</servlet-name>

<servlet-class>net.xinshi.jemall.ui.servlet.CheckValidateCode</servlet-class>

<load-on-startup>2</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>CheckValidateCode</servlet-name>

<url-pattern>/CheckValidateCode</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>URLRedir</servlet-name>

<servlet-class>net.xinshi.jemall.ui.servlet.URLRedir</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>URLRedir</servlet-name>

<url-pattern>*.redir</url-pattern>

</servlet-mapping>

<context-param>

<param-name>contextConfigLocation</param-name>

<param-value>/WEB-INF/context-config/*.xml</param-value>

</context-param>

<context-param>

<param-name>javax.servlet.jsp.jstl.temp.ExpressionEvaluatorClass</param-name>

<param-value>org.apache.taglibs.standard.lang.spel.Evaluator</param-value>

</context-param>

<context-param>

<param-name>MallMenuTypes</param-name>

<param-value>1,6,7,51,61,62,11,21,22,23,31,41,71,81,82,91,92,93,94,101,102,121,122,123,131,141,151,152,161,171,181,182,183,184,191,271,201,211,221,231,241,242,261,281,291,301,321,351,421,431,341,481,531,533,561,580,581,582,583,584,585,591,611,621,641,651,751,800,900,991,1200,1221,1251,1261,1271,1491,1511,1991,2000,2001,2002,2003,2100,2511,2512,2522,2541,2551,2572,2573,2574,2801,2991,2992,3011,3021,3031,3041,3201,3211,4001,4002,4011,4021,4031,4041,4051,4061,4351,5700,7000,7100,8100,8200,8901,25001,40000,65101,65201,65301,65401,65501,65601,65701,65801,65901,41000,42000,43000</param-value>

</context-param>

<context-param>

<param-name>UploadPath</param-name>

<param-value>/upload/</param-value>

</context-param>

<context-param>

<param-name>CacheType</param-name>

<param-value>jcs</param-value>

</context-param>

<context-param>

<param-name>PageCacheEngine</param-name>

<param-value>jcs</param-value>

</context-param>

<context-param>

<param-name>MaxConcurrentCacheRequest</param-name>

<param-value>5</param-value>

</context-param>

<context-param>

<param-name>PageCacheMaxDeltaSeconds</param-name>

<param-value>3600</param-value>

</context-param>

<context-param>

<param-name>IdleNumberOfDBConnection</param-name>

<param-value>50</param-value>

</context-param>

<context-param>

<param-name>WhenIdleCacheRefreshSeconds</param-name>

<param-value>600</param-value>

</context-param>

<context-param>

<param-name>AutoAddMerchandiseCode</param-name>

<param-value>false</param-value>

</context-param>

<context-param>

<param-name>MultiAdminToMer</param-name>

<param-value>true</param-value>

</context-param>

<context-param>

<param-name>ShouldRebuildLeftTree</param-name>

<param-value>yes</param-value>

</context-param>

<context-param>

<param-name>ModuleId49</param-name>

<param-value>3</param-value>

</context-param>

<filter>

<filter-name>urlRedirectFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.UrlRedirectFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/*</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>urlRedirectFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>Set Character Encoding</filter-name>

<filter-class>net.xinshi.jemall.filter.SetCharacterEncodingFilter</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>false</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>Set Character Encoding</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>BackEndGuardFilter</filter-name>

<filter-class>net.xinshi.jemall.ui.filters.BackEndGuardFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>BackEndGuardFilter</filter-name>

<url-pattern>/OurHome/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>MultipartFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.MultipartFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/modules/hint/;/OurHome/modules/core/</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>MultipartFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>MultipartFilter</filter-name>

<url-pattern>/tide/uploadeTideOK.do</url-pattern>

</filter-mapping>

<filter>

<filter-name>PrivilegeFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.PrivilegeControlFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/modules/remarkKeyword/;/OurHome/modules/managehotkeyword/;/OurHome/modules/remarkKeyword;/OurHome/modules/hint/;/OurHome/modules/core/;/OurHome/modules/dateInterface/;/OurHome/modules/dateInterface/;/OurHome/modules/remark/;/OurHome/htmleditor/;/OurHome/modules/htmltemplate/;/modules/filtercondition/;/OurHome/htmleditor/fckeditor;/OurHome/commonds/;/OurHome/modules/commons/;/OurHome/fckeditor/editor/filemanager/connectors/jsp/</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>PrivilegeFilter</filter-name>

<url-pattern>/OurHome/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>CPSVisitorFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.CPSVisitorFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do;*.html;*.shtml;*.htm</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/*</param-value>

</init-param>

<init-param>

<param-name>cpsvfObj</param-name>

<param-value>cpsVistorFlag</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>CPSVisitorFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>FLWCPSVisitorFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.CPSVisitorFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do;*.html;*.shtml;*.htm</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/*</param-value>

</init-param>

<init-param>

<param-name>cpsvfObj</param-name>

<param-value>FLWcpsVistorFlag</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>FLWCPSVisitorFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>merchantIdFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.MultiMerchantIdFilter</filter-class>

<init-param>

<param-name>defaultMid</param-name>

<param-value>0</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>merchantIdFilter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>REQUEST</dispatcher>

     <dispatcher>FORWARD</dispatcher>

</filter-mapping>

<filter>

<filter-name>CompositorFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.CompositorFilter</filter-class>

<init-param>

<param-name>productUrls</param-name>

<param-value>/Product.do</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>CompositorFilter</filter-name>

<url-pattern>/Product.do</url-pattern>

</filter-mapping>

<servlet>

<servlet-name>dispatcherServlet</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<init-param>

<param-name>contextConfigLocation</param-name>

<param-value>/WEB-INF/mvc-config/*.xml</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>dispatcherServlet</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

<context-param>

<param-name>EnablePageCache</param-name>

<param-value>OFF</param-value>

</context-param>

<context-param>

<param-name>WebDomain</param-name>

<param-value>xtpo.cn</param-value>

</context-param>

<servlet>

<servlet-name>bbsuserpicdeleteservlet</servlet-name>

<servlet-class>net.xinshi.jemall.bbs.servlet.BBSUserPicDeleteServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>bbsuserpicdeleteservlet</servlet-name>

<url-pattern>*.userdeletepic</url-pattern>

</servlet-mapping>

<servlet>

<display-name>DWR Servlet</display-name>

<servlet-name>dwr-invoker</servlet-name>

<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>

<init-param>

<param-name>debug</param-name>

<param-value>false</param-value>

</init-param>

</servlet>

<servlet-mapping>

<servlet-name>dwr-invoker</servlet-name>

<url-pattern>/dwr/*</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>deletepicservlet</servlet-name>

<servlet-class>net.xinshi.jemall.attribute.servlet.DeletePicServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>deletepicservlet</servlet-name>

<url-pattern>/OurHome/deletepicservlet.do</url-pattern>

</servlet-mapping>

<filter>

<filter-name>contextpathfilter</filter-name>

<filter-class>net.xinshi.jemall.attribute.privilege.ContextPathFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>contextpathfilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<servlet>

<servlet-name>servletjcrontab</servlet-name>

<servlet-class>net.xinshi.jemall.jcrontab.ServletJcrontab</servlet-class>

<init-param>

<param-name>org.jcrontab.data.file</param-name>

<param-value>WEB-INF/crontab.xml</param-value>

</init-param>

<init-param>

<param-name>org.jcrontab.data.datasource</param-name>

<param-value>org.jcrontab.data.XMLSource</param-value>

</init-param>

<load-on-startup>200</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>servletjcrontab</servlet-name>

<url-pattern>/servletjcrontab</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>dispatcher</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<init-param>

<param-name>contextConfigLocation</param-name>

<param-value>/WEB-INF/mvc-config/*.xml</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet>

<display-name>Apache-Axis Servlet</display-name>

<servlet-name>AxisServlet</servlet-name>

<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>

</servlet>

<servlet>

<display-name>Axis Admin Servlet</display-name>

<servlet-name>AdminServlet</servlet-name>

<servlet-class>org.apache.axis.transport.http.AdminServlet</servlet-class>

<load-on-startup>100</load-on-startup>

</servlet>

<servlet>

<display-name>SOAPMonitorService</display-name>

<servlet-name>SOAPMonitorService</servlet-name>

<servlet-class>org.apache.axis.monitor.SOAPMonitorService</servlet-class>

<init-param>

<param-name>SOAPMonitorPort</param-name>

<param-value>5101</param-value>

</init-param>

<load-on-startup>100</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>dispatcher</servlet-name>

<url-pattern>*.net</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>/servlet/AxisServlet</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>*.jws</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AxisServlet</servlet-name>

<url-pattern>/services/*</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>SOAPMonitorService</servlet-name>

<url-pattern>/SOAPMonitor</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>AdminServlet</servlet-name>

<url-pattern>/servlet/AdminServlet</url-pattern>

</servlet-mapping>

<mime-mapping>

<extension>wsdl</extension>

<mime-type>text/xml</mime-type>

</mime-mapping>

<filter>

<filter-name>setoriginrequesturifilter</filter-name>

<filter-class>net.xinshi.jemall.filter.SetOriginRequestUriFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>setoriginrequesturifilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>


<filter>

<filter-name>sessionReloadFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.SessionReloadFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>*.jsp;*.do;*.html;*.shtml;*.htm</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/*</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>sessionReloadFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>cookieCartReloadFilter</filter-name>

<filter-class>net.xinshi.jemall.filter.CookieCartReloadFilter</filter-class>

<init-param>

<param-name>includeUrls</param-name>

<param-value>/frontendjson/smallcartinfo.do;/NewIndex/FInclude/IncludeNotice.do;/AddToCart.do;/Cart/ShowCart.do;/Cart/OrderForm.do;/Wine/FInclude/CMTopShoppingCar.do</param-value>

</init-param>

<init-param>

<param-name>excludeUrls</param-name>

<param-value>/OurHome/*</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>cookieCartReloadFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<filter>

<filter-name>setwebcontextfilter</filter-name>

<filter-class>net.xinshi.jemall.filter.SetWebContextFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>setwebcontextfilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<!--

<filter>

<filter-name>CacheFilter</filter-name>

<filter-class>com.jspbook.CacheFilter</filter-class>

<init-param>

<param-name>cacheTimeout</param-name>

<param-value>60</param-value>

</init-param>

<init-param>

<param-name>cachePath</param-name>

<param-value>/WEB-INF/cache</param-value>

</init-param>

<init-param>

<param-name>/OurHome/modules/core/relogin.htm</param-name>

<param-value>nocache</param-value>

</init-param>

<init-param>

<param-name>/OurHome/modules/product/productlist.htm</param-name>

<param-value>nocache</param-value>

</init-param>

<init-param>

<param-name>/treeloader.htm</param-name>

<param-value>nocache</param-value>

</init-param>

</filter>

<filter-mapping>

<filter-name>CacheFilter</filter-name>

<url-pattern>/</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>CacheFilter</filter-name>

<url-pattern>*.jsp</url-pattern>

<dispatcher>FORWARD</dispatcher>

</filter-mapping>

<filter-mapping>

<filter-name>CacheFilter</filter-name>

<url-pattern>*.do</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>CacheFilter</filter-name>

<url-pattern>*.htm</url-pattern>

</filter-mapping>

-->

<filter>

<filter-name>UrlRewriteFilter</filter-name>

<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>

<init-param>

<param-name>confReloadCheckInterval</param-name>

<param-value>0</param-value>

</init-param>

<init-param>

<param-name>logLevel</param-name>

<param-value>INFO</param-value>

</init-param>

</filter>


<filter-mapping>

<filter-name>UrlRewriteFilter</filter-name>

<url-pattern>*</url-pattern>

</filter-mapping>

<servlet>

<servlet-name>assignMemberCardServlet</servlet-name>

<servlet-class>net.xinshi.jemall.user.servlet.AssignMemberCardServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>assignMemberCardServlet</servlet-name>

<url-pattern>/OurHome/modules/user/assignMemberCard.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>getAmountServlet</servlet-name>

<servlet-class>net.xinshi.jemall.user.servlet.GetAmountServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>getAmountServlet</servlet-name>

<url-pattern>/OurHome/modules/user/getAmount.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>checkMemberCardNoServlet</servlet-name>

<servlet-class>net.xinshi.jemall.user.servlet.CheckMemberCardNoServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>checkMemberCardNoServlet</servlet-name>

<url-pattern>/OurHome/modules/user/checkMemberCardNo.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>activeMemberCardServlet</servlet-name>

<servlet-class>net.xinshi.jemall.user.servlet.ActiveMemberCardServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>activeMemberCardServlet</servlet-name>

<url-pattern>/OurHome/modules/user/activeMemberCard.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>bindMemberCardServlet</servlet-name>

<servlet-class>net.xinshi.jemall.user.servlet.BindMemberCardServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>bindMemberCardServlet</servlet-name>

<url-pattern>/OurHome/modules/user/bindMemberCard.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>fileDownLoad</servlet-name>

<servlet-class>net.xinshi.jemall.bbs.servlet.FileDownLoad</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>fileDownLoad</servlet-name>

<url-pattern>/bbs/fileDownLoad.do</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>qqVerifyCode</servlet-name>

<servlet-class>net.xinshi.jemall.frontend.member.contactImporter.springmvc.VerificationQQVerifyCodeServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>qqVerifyCode</servlet-name>

<url-pattern>/mashup/qq/verifycode</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>AutoComplete</servlet-name>

<servlet-class>net.xinshi.jemall.pyserver.AutoComplete</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>AutoComplete</servlet-name>

<url-pattern>/AutoComplete</url-pattern>

</servlet-mapping>

<session-config>

<session-timeout>60</session-timeout>

</session-config>

<error-page>

<error-code>400</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>401</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>402</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>403</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>404</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>405</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>408</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>410</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>411</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>412</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>413</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>414</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>415</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>500</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>501</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>502</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>503</error-code>

<location>/error.do</location>

</error-page>

<error-page>

<error-code>506</error-code>

<location>/error.do</location>

</error-page>

<context-param>

<param-name>DomainName</param-name>

<param-value>http://locahost:5888/Subuy</param-value>

</context-param>

<context-param>

<param-name>staticURL</param-name>

<param-value>http://locahost:5888/Subuy</param-value>

</context-param>

<context-param>

<param-name>picPath</param-name>

<param-value>http://locahost:5888/Subuy</param-value>

</context-param>

<context-param>

<param-name>statichome</param-name>

<param-value></param-value>

</context-param>

<context-param>

<param-name>staticfiletype</param-name>

<param-value></param-value>

</context-param>

<context-param>

<param-name>SH-Domain</param-name>

<!-- <param-value>100,http://10.90.0.210:8080</param-value> -->

<param-value>100,http://locahost:5888/Subuy</param-value>

</context-param>

<context-param>

<param-name>BJ-Domain</param-name>

<param-value>0,http://locahost:5888/Subuy</param-value>

</context-param>

<context-param>

<param-name>GZ-Domain</param-name>

<param-value>200,http://locahost:5888/Subuy</param-value>

</context-param>

<servlet>

<servlet-name>api</servlet-name>

<servlet-class>com.fivestars.interfaces.bbs.api.UC</servlet-class>

<load-on-startup>10</load-on-startup>

</servlet>


<servlet-mapping>

<servlet-name>api</servlet-name>

<url-pattern>/api/uc.php</url-pattern>

</servlet-mapping>


 <welcome-file-list>  

        <welcome-file>index.jsp</welcome-file>  

    </welcome-file-list> 


</web-app>




2014-2-24 17:10:10 org.apache.catalina.startup.ContextConfig applicationWebConfig

严重: Parse error in application web.xml file at jndi:/localhost/Subuy/WEB-INF/web.xml

java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>

at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726)

at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752)

at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1061)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)

at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1060)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4238)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:451)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

加载中
0
路飞
路飞
 


严重: Parse error in application web.xml file at jndi:/localhost/Subuy/WEB-INF/web.xml

java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>

日志里不是有么


0
田Instance
田Instance
@路飞 我知道,但是怎么写呢? 
路飞
路飞
路飞
建议用版本管理工具找出是哪个新加进去的有问题,这么多的内容,逐行找实在不是明智的方法。。。
0
pantrick
pantrick
像这种贴个代码都懒的用语法着色工具的,我都懒得帮他去看!
0
田Instance
田Instance

恩,

恩,你配置文件没有错,tomcat加载配置文件的时候,adding 'metadata-complete="true"' will block any other jars from contributing to web.xml, 
<web-app 
   
    version="2.4" metadata-complete="true">

    <!-- Config here. -->

</web-app>
试试看吧。。。。

返回顶部
顶部