Tomcat启动时,自己部署的WEB APP启动失败,帮看看这个web.xml是否有问题

Tomcat启动时,自己部署的WEB APP启动失败,帮看看这个web.xml是否有问题

自己写了个Servlet的配置,目的是把所有.jsp结尾的url访问都转到指定的Servlet。在web.xml的配置如下:
  <servlet-mapping>
    <servlet-name>simpleServlet</servlet-name>
    <url-pattern>/*.jsp</url-pattern>
  </servlet-mapping>


但是把APP部署到Tomcat,启动Tomcat时,这个部分报了错误:
2008-8-1 16:01:49 org.apache.catalina.startup.ContextConfig applicationConfig
严重: Parse error in application web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /*.jsp in servlet mapp
ing
        at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
        at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)

是不允许这样的通配符匹配吗?
使用的Tomcat是5.0.28版本的,在WIN XP上。
<url-pattern>/*.jsp</url-pattern> 有问题
去掉 / 试试



• A string beginning with a ‘/’ character and ending with a ‘/*’ postfix is used for path mapping.
• A string beginning with a ‘*.’ prefix is used as an extension mapping.
• A string containing only the ’/’ character indicates the "default" servlet of the
application. In this case the servlet path is the request URI minus the context
path and the path info is null.
• All other strings are used for exact matches only.

  1.   /path[/*]用于路径匹配   
  2.   *.ext用于后缀匹配