Java “面向”;服务器无法启动";错误

Java “面向”;服务器无法启动";错误,java,spring,spring-mvc,tomcat,web.xml,Java,Spring,Spring Mvc,Tomcat,Web.xml,我正在从事一个SpringMVC项目,以创建一个web应用程序。现在我已经创建了一个网页。 遵循以下步骤: 1.创建web.xml 2.创建了spring dispather servelet 3.一个JSP页面,用于打印简单的欢迎消息 面对此错误“服务器无法启动”。 我试过: 1.从“org.spring.resources”中删除快照文件,并从“org.spring.wst”中删除“temp”文件夹。 2.已删除现有服务器并添加新服务器。 3.将tomcat的端口从8080替换为8088。

我正在从事一个SpringMVC项目,以创建一个web应用程序。现在我已经创建了一个网页。 遵循以下步骤: 1.创建web.xml 2.创建了spring dispather servelet 3.一个JSP页面,用于打印简单的欢迎消息

面对此错误“服务器无法启动”。 我试过: 1.从“org.spring.resources”中删除快照文件,并从“org.spring.wst”中删除“temp”文件夹。 2.已删除现有服务器并添加新服务器。 3.将tomcat的端口从8080替换为8088。 4.在文件web.xml中,尝试删除servlet映射标记和servlet名称标记

但到目前为止,一切都不起作用

请将使用过的文件查找为:

spring dispacher servlet文件:

<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:ctx="http://www.springframework.org/schema/context"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:cache="http://www.springframework.org/schema/cache"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd  http://www.springframework.org/schema/cache 
        http://www.springframework.org/schema/cache/spring-cache-3.2.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

        <context:component-scan base-package="com.mrunal"/>
        <bean id="ViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">

            <property name="prefix">
                <value>/WEB-INF/pages/</value>
            </property>
            <property name="suffix">
                <value>.jsp</value>
            </property>
        </bean>
        </beans>

/WEB-INF/pages/
.jsp
Web.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>CommodityTrading12</display-name>
<servlet> 
<servlet-name>spring-dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.Dispatcherservlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>spring-dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>

商品贸易12
春季调度员
org.springframework.web.servlet.Dispatcherservlet
春季调度员
/

始终先尝试步骤
0
;重新启动。如果这不能解决问题,请共享您正在运行的平台。您可以共享所有错误日志吗?你在运行什么环境?@Elliott Frisch我正在使用windows 10和apche tomcat 8.5我们中的大多数人已经转向spring boot以避免此类问题。您需要向我们显示完整的堆栈跟踪,以便我们提供帮助。