开发者社区> 问答> 正文

tomcat启动失败,哪里的问题

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> 

展开
收起
落地花开啦 2016-05-30 10:15:05 1851 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    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>
    2019-07-17 19:19:10
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载