为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

菠萝1230 2017-07-25 20:34:03
七月 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.DispatcherServletjava.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() exceptionjava.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
查看完整描述

8 回答

已采纳
?
qq_喂丶我的男人不准看_0

TA贡献8条经验 获得超2个赞

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

查看完整回答
反对 回复 2017-07-25
  • 菠萝1230
    菠萝1230
    没太懂??这个就是tomcat运行情况,报了很严重的错误。
?
慕前端8877643

TA贡献1条经验 获得超0个赞

ClassNotFoundException , 少包了。

查看完整回答
反对 回复 2017-07-26
?
rookie2maven

TA贡献278条经验 获得超76个赞

404路径不对,自己check

查看完整回答
反对 回复 2017-07-26
  • 8 回答
  • 0 关注
  • 5596 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信