tomcat启动失败,下面是配置文件中的内容,请各位朋友帮忙看看,哪里出了问题
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.LoginServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>RegisterServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.RegisterServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>IndexServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.IndexServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AddCartServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.AddCartServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>DelCartServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.DelCartServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>UpdateCartServlet</servlet-name>
<servlet-class>accp.easybuy.servlet.UpdateCartServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Play1Servlet</servlet-name>
<servlet-class>accp.easybuy.servlet.Play1Servlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Play2Servlet</servlet-name>
<servlet-class>accp.easybuy.servlet.Play2Servlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Play3Servlet</servlet-name>
<servlet-class>accp.easybuy.servlet.Play3Servlet</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>ELservlet</servlet-name>
<servlet-class>accp.easybuy.servlet.ELservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>RegisterServlet</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IndexServlet</servlet-name>
<url-pattern>/index</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AddCartServlet</servlet-name>
<url-pattern>/addCart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DelCartServlet</servlet-name>
<url-pattern>/delCart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UpdateCartServlet</servlet-name>
<url-pattern>/updateCart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Play1Servlet</servlet-name>
<url-pattern>/play1</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Play2Servlet</servlet-name>
<url-pattern>/play2</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Play3Servlet</servlet-name>
<url-pattern>/play3</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ELservlet</servlet-name>
<url-pattern>el</url-pattern>
</servlet-mapping>
<!-- 配置欢迎页 -->
<welcome-file-list>
<welcome-file>index</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
el 这个URL对么?看异常信息问题出在这
<servlet-mapping>
<servlet-name>ELservlet</servlet-name>
<url-pattern>el</url-pattern>
</servlet-mapping>
应该是这的问题,加上/试试
<servlet-mapping>
<servlet-name>ELservlet</servlet-name>
<url-pattern>/el</url-pattern>
</servlet-mapping>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。