In the web.xml of my web app I have configured the server as following:
<servlet>
<servlet-name>SOS</servlet-name>
<servlet-class>cn.SOS</servlet-class>
<init-param>
<param-name>configFile</param-name>
<param-value>/WEB-INF/conf/sos.config</param-value>
</init-param>
<init-param>
<param-name>dbConfigFile</param-name>
<param-value>/WEB-INF/conf/dssos.config</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SOS</servlet-name>
<url-pattern>/sos</url-pattern>
</servlet-mapping>
However when I request this servlet ,I got a error which tells me "Servlet SOS is not available", but I am sure this servlet do exist in the WEB-INFO/lib/sos.jar. And I have seen the initialization work under the servlet from the logs. I wonder why can not tomcat find the servlet?