0

我写了非常基本的代码。并且 servlet 可能是问题,因为,否则 tomcat 会完美启动并到达 index.html

我已经用eclipse IDE配置了tomcat。当我尝试从我的 servlet 开始时出现此错误。

堆栈跟踪是

Jun 28, 2019 1:41:16 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component 

[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/User_Test_Series-1]]
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)

我的xml配置

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
    <display-name>User_Test_Series-1</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>

    <servlet>
        <servlet-name>Registration</servlet-name>
        <servlet-class>jdbc.Registration</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Registration</servlet-name>
        <url-pattern>/Registration</url-pattern>
    </servlet-mapping>

</web-app>
4

0 回答 0