web配置

<?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>
 <display-name>Web</display-name>
 <description>Web servlets and JSP pages..</description>
 <error-page>
  <exception-type>java.lang.Exception</exception-type>
  <location>/error/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>404</error-code>
  <location>/error/error.jsp</location>
 </error-page>
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath*:applicationContext*.xml</param-value>
 </context-param>

 <filter>
  <filter-name>LocalEncodingFilter</filter-name>
  <filter-class>
   com.linkage.litms.common.util.SetCharacterEncodingFilter
  </filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>gbk</param-value>
  </init-param>
  <init-param>
   <param-name>debug</param-name>
   <param-value>false</param-value>
  </init-param>
 </filter>
 <filter>
  <filter-name>struts</filter-name>
  <filter-class>
   org.apache.struts2.dispatcher.FilterDispatcher
  </filter-class>
 </filter>
 <filter-mapping>
  <filter-name>LocalEncodingFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>struts</filter-name>
  <url-pattern>*.jsp</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>struts</filter-name>
  <url-pattern>*.action</url-pattern>
 </filter-mapping>
 <listener>
  <listener-class>
   org.springframework.web.context.ContextLoaderListener
  </listener-class>
 </listener>

 <!--  初始化 LOG-->
 <servlet>
  <servlet-name>LogInitServlet</servlet-name>
  <display-name>Init Servlet</display-name>
  <description>init log4j.properties</description>
  <servlet-class>
   com.init.Log4jInitServlet
  </servlet-class>
  <init-param>
   <param-name>log4j-init-file</param-name>
   <param-value>WEB-INF/log4j.xml</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <!--  初始化 DB-->
 <servlet>
  <servlet-name>ServletConfigurator</servlet-name>
  <description>db proxool</description>
  <servlet-class>
   org.logicalcobwebs.proxool.configuration.ServletConfigurator
  </servlet-class>
  <init-param>
   <param-name>xmlFile</param-name>
   <param-value>WEB-INF/proxool.xml</param-value>
  </init-param>
  <load-on-startup>2</load-on-startup>
 </servlet>
 <!--  初始化 基本服务-->
 <servlet>
  <servlet-name>AppInitServlet</servlet-name>
  <description>AppInitServlet</description>
  <servlet-class>
   com.linkage.litms.init.AppInitServlet
  </servlet-class>
  <init-param>
   <param-name>ACS4H_CORBA_NAME</param-name>
   <param-value>ACS4H_</param-value>
  </init-param>
  <init-param>
   <param-name>ACS4E_CORBA_NAME</param-name>
   <param-value>ACS4E_</param-value>
  </init-param>
  <load-on-startup>3</load-on-startup>
 </servlet>
 <!-- db -->
 <servlet>
  <servlet-name>DBPoolAdmin</servlet-name>
  <servlet-class>
   org.logicalcobwebs.proxool.admin.servlet.AdminServlet
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>DisplayChart</servlet-name>
  <servlet-class>
   org.jfree.chart.servlet.DisplayChart
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>DisplayChartLinkage</servlet-name>
  <servlet-class>
   org.jfree.chart.servlet.DisplayChart
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>UploadFile</servlet-name>
  <servlet-class>
   com.common.upload.UploadFile
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>AxisServlet</servlet-name>
  <servlet-class>
   org.apache.axis.transport.http.AxisServlet
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>StrategyThread</servlet-name>
  <description>StrategyThread</description>
  <servlet-class>
   com.linkage.litms.init.StrategyThread
  </servlet-class>
  <load-on-startup>200</load-on-startup>
 </servlet>
 <servlet>
  <servlet-name>DoBusinessThreadInit</servlet-name>
  <description>DoBusinessThreadInit</description>
  <servlet-class>
   com.linkage.litms.init.DoBusinessThreadInit
  </servlet-class>
  <load-on-startup>200</load-on-startup>
 </servlet>
 <servlet>
  <servlet-name>SOAPMonitorService</servlet-name>
  <servlet-class>
   org.apache.axis.monitor.SOAPMonitorService
  </servlet-class>
  <init-param>
   <param-name>SOAPMonitorPort</param-name>
   <param-value>5001</param-value>
  </init-param>
  <load-on-startup>100</load-on-startup>
 </servlet>

 <servlet>
  <servlet-name>bbmsAuth</servlet-name>
  <servlet-class>
   com.servlet.CtUserRequestDealServlet
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>ctLogOut</servlet-name>
  <servlet-class>
   com.servlet.CtUserLogOut
  </servlet-class>
 </servlet>
 <servlet>
  <servlet-name>ctAuth</servlet-name>
  <servlet-class>
   com.servlet.CtTestServlet
  </servlet-class>
 </servlet>

 <servlet>
  <servlet-name>uss</servlet-name>
  <servlet-class>com.CheckURL</servlet-class>
 </servlet>

 <servlet>
  <servlet-name>AcsAliveMQServlet</servlet-name>
  <servlet-class>
   com.linkage.litms.init.AcsAliveMQServlet
  </servlet-class>
  <load-on-startup>200</load-on-startup>
 </servlet>
 <servlet>
  <servlet-name>AcsRpcMQServlet</servlet-name>
  <servlet-class>
   com.init.AcsRpcMQServlet
  </servlet-class>
  <load-on-startup>201</load-on-startup>
 </servlet>

 <servlet-mapping>
  <servlet-name>uss</servlet-name>
  <url-pattern>/UserSelfServ/</url-pattern>
 </servlet-mapping>

 <servlet-mapping>
  <servlet-name>DBPoolAdmin</servlet-name>
  <url-pattern>/DBPoolAdmin</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>DisplayChart</servlet-name>
  <url-pattern>/servlet/DisplayChart/*</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>DisplayChartLinkage</servlet-name>
  <url-pattern>/servlet/DisplayChartLinkage/*</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>UploadFile</servlet-name>
  <url-pattern>/servlet/UploadFile</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>StrategyThread</servlet-name>
  <url-pattern>/servlet/StrategyThread</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>DoBusinessThreadInit</servlet-name>
  <url-pattern>/servlet/DoBusinessThreadInit</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>AxisServlet</servlet-name>
  <url-pattern>/ws/*</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>SOAPMonitorService</servlet-name>
  <url-pattern>/SOAPMonitor</url-pattern>
 </servlet-mapping>

 <servlet-mapping>
  <servlet-name></servlet-name>
  <url-pattern>/uss/</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>ctLogOut</servlet-name>
  <url-pattern>/uss/logOut</url-pattern>
 </servlet-mapping>
 <servlet-mapping>
  <servlet-name>ctAuth</servlet-name>
  <url-pattern>/ctAuth</url-pattern>
 </servlet-mapping>

 <mime-mapping>
  <extension>wsdl</extension>
  <mime-type>text/xml</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>xsd</extension>
  <mime-type>text/xml</mime-type>
 </mime-mapping>
</web-app>

 

展开阅读全文

没有更多推荐了,返回首页