猿问

运行一个简单maven web项目,出现了404,tomcat报严重错误,求指教???

七月 25, 2017 8:31:14 下午 org.apache.catalina.core.AprLifecycleListener init

信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.

七月 25, 2017 8:31:14 下午 org.apache.catalina.core.AprLifecycleListener init

信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

七月 25, 2017 8:31:15 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:WebTest2' did not find a matching property.

七月 25, 2017 8:31:15 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:spring-mvc-study' did not find a matching property.

七月 25, 2017 8:31:15 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL

信息: OpenSSL successfully initialized with version OpenSSL 1.0.2k  26 Jan 2017

七月 25, 2017 8:31:15 下午 org.apache.coyote.http11.Http11AprProtocol init

信息: Initializing Coyote HTTP/1.1 on http-8080

七月 25, 2017 8:31:15 下午 org.apache.coyote.ajp.AjpAprProtocol init

信息: Initializing Coyote AJP/1.3 on ajp-8009

七月 25, 2017 8:31:15 下午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 987 ms

七月 25, 2017 8:31:15 下午 org.apache.catalina.core.StandardService start

信息: Starting service Catalina

七月 25, 2017 8:31:15 下午 org.apache.catalina.core.StandardEngine start

信息: Starting Servlet Engine: Apache Tomcat/6.0.53

七月 25, 2017 8:31:16 下午 org.apache.catalina.core.ApplicationContext log

信息: Marking servlet mvc-dispatcher as unavailable

七月 25, 2017 8:31:16 下午 org.apache.catalina.core.ApplicationContext log

严重: Error loading WebappClassLoader

  context: /spring-mvc-study

  delegate: false

  repositories:

    /WEB-INF/classes/

----------> Parent Classloader:

org.apache.catalina.loader.StandardClassLoader@201644c9

 org.springframework.web.servlet.DispatcherServlet

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1698)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4491)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4808)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:761)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


七月 25, 2017 8:31:16 下午 org.apache.catalina.core.StandardContext loadOnStartup

严重: Servlet /spring-mvc-study threw load() exception

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1698)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4491)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4808)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:761)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


七月 25, 2017 8:31:16 下午 org.apache.coyote.http11.Http11AprProtocol start

信息: Starting Coyote HTTP/1.1 on http-8080

七月 25, 2017 8:31:16 下午 org.apache.coyote.ajp.AjpAprProtocol start

信息: Starting Coyote AJP/1.3 on ajp-8009

七月 25, 2017 8:31:16 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 386 ms


菠萝1230
浏览 5590回答 8
8回答

qq_喂丶我的男人不准看_0

首先启动一下tomcat,看看tomcat是否正常访问。不能访问的话,看一下配置的是否有问题/端口是否被占用。能访问的话,在将项目部署在tomcat上,运行。

慕前端8877643

ClassNotFoundException , 少包了。

rookie2maven

404路径不对,自己check
随时随地看视频慕课网APP

相关分类

Java
我要回答