tomcat 6.0启动 End event threw exception

yuwangjunzheng 2008-05-01 09:26:01
2008-5-1 21:20:49 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.6.0_05\bin;D:\Tomcat 6.0\bin
2008-5-1 21:20:49 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-5-1 21:20:49 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1448 ms
2008-5-1 21:20:49 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-5-1 21:20:49 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2008-5-1 21:20:51 org.apache.tomcat.util.digester.Digester endElement
严重: End event threw exception
java.lang.reflect.InvocationTargetException
。。。。。。。。。
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> UserLogin in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2397)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2373)
... 45 more
2008-5-1 21:20:51 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Parse error in application web.xml file at jndi:/localhost/LoginView.myeclipse.bak/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> UserLogin in servlet mapping
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1143)

2008-5-1 21:20:51 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Occurred at line 24 column 21
2008-5-1 21:20:51 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2008-5-1 21:20:51 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2008-5-1 21:20:51 org.apache.catalina.core.StandardContext start
严重: Context [/LoginView.myeclipse.bak] startup failed due to previous errors
2008-5-1 21:20:51 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-5-1 21:20:51 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-5-1 21:20:51 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/94 config=null
2008-5-1 21:20:52 org.apache.catalina.startup.Catalina start
信息: Server startup in 2396 ms
...全文
3563 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
q1531 2008-05-01
  • 打赏
  • 举报
回复
是conf下的web.xml,不是web-inf下的。
yuwangjunzheng 2008-05-01
  • 打赏
  • 举报
回复
<?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>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>UserLogin</servlet-name>
<servlet-class>UserLogin</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>View</servlet-name>
<servlet-class>View</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserLogin</servlet-name>
<url-pattern>/UserLogin</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>View</servlet-name>
<url-pattern>/View</url-pattern>
</servlet-mapping>
</web-app>
yuwangjunzheng 2008-05-01
  • 打赏
  • 举报
回复
xml是自动生成的
q1531 2008-05-01
  • 打赏
  • 举报
回复
可能是web.xml没配置好。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧