你们帮我看下 这是怎么了 当我在myeclipse中启动tomcat6.0的时候出现下面错误:严重: End event threw exception
java.lang.reflect.InvocationTargetExceptionCaused by: java.lang.IllegalArgumentException: Invalid <url-pattern> set.do in servlet mapping严重: Parse error in application web.xml file at jndi:/localhost/TestCookie/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> set.do in servlet mapping2008-12-18 11:19:48 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Occurred at line 16 column 21
2008-12-18 11:19:48 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2008-12-18 11:19:48 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2008-12-18 11:19:48 org.apache.catalina.core.StandardContext start
严重: Context [/TestCookie] startup failed due to previous errors这是我web项目的 web.xml<?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">
<servlet>
<servlet-name>setCookie</servlet-name>
<servlet-class>cn.orc.jie.servlet.SetCookie</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>setCookie</servlet-name>
<url-pattern>set.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>只有把<url-pattern>*.do</url-pattern> *.do才不抱错误!其他的设置都抱上面错误 这是为什么啊?
java.lang.reflect.InvocationTargetExceptionCaused by: java.lang.IllegalArgumentException: Invalid <url-pattern> set.do in servlet mapping严重: Parse error in application web.xml file at jndi:/localhost/TestCookie/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> set.do in servlet mapping2008-12-18 11:19:48 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Occurred at line 16 column 21
2008-12-18 11:19:48 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2008-12-18 11:19:48 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2008-12-18 11:19:48 org.apache.catalina.core.StandardContext start
严重: Context [/TestCookie] startup failed due to previous errors这是我web项目的 web.xml<?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">
<servlet>
<servlet-name>setCookie</servlet-name>
<servlet-class>cn.orc.jie.servlet.SetCookie</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>setCookie</servlet-name>
<url-pattern>set.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>只有把<url-pattern>*.do</url-pattern> *.do才不抱错误!其他的设置都抱上面错误 这是为什么啊?
解决方案 »
- 紧急求助!关于TOMCAT启动问题.
- 正则表达式 验证端口号(1-65535)
- jdom 生成XML的问题
- Hibernate配置“多对一”时,报ORA-00904: 无效列名错误!求高手解答
- 现在软件公司主要用JAVA那些技术开发软件。
- SSH中遇到的 404错误
- 用到struts的validatio.xml验证 ,不出现error msg ,内部报org.apache.commons.validator.ValidatorException:
- linux下繁体问题,急!!!!!!!!!!!!!!!
- 如何配置eclipse和tomcat5.0
- 请问2个servlet的问题
- JspContext和pageContext用法上的区别?
- 《Java项目开发全程实录》企业门户网站问题(有源码下载)
<servlet-name>setCookie </servlet-name>
<url-pattern>/set.do </url-pattern>
</servlet-mapping>
祝你好运 ..