首页 新闻 会员 周边 捐助

springmvc 我在myeclipse上做的没问题,到eclipse上运行服务器就出现这样的错误,java高手求解

0
悬赏园豆:5 [待解决问题]

2012-10-22 19:26:58 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\jdk1.6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:/jdk1.6/bin/../jre/bin/client;F:/jdk1.6/bin/../jre/bin;F:/jdk1.6/bin/../jre/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Autodesk\Backburner\;F:\jdk1.6\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;J:\java\eclipse\eclipse;
2012-10-22 19:26:59 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:tomcat_7' did not find a matching property.
2012-10-22 19:26:59 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
2012-10-22 19:26:59 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
2012-10-22 19:26:59 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1553 ms
2012-10-22 19:26:59 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2012-10-22 19:26:59 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.29
2012-10-22 19:27:00 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet hello as unavailable
2012-10-22 19:27:00 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /tomcat_7 threw load() exception
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2012-10-22 19:27:00 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2012-10-22 19:27:00 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2012-10-22 19:27:00 org.apache.catalina.startup.Catalina start
信息: Server startup in 874 ms

wmj_hg的主页 wmj_hg | 初学一级 | 园豆:191
提问于:2012-10-22 19:29
< >
分享
所有回答(3)
0

因为有点tomcat的问题,我也遇见过

若雪封尘 | 园豆:663 (小虾三级) | 2012-10-23 15:42
0

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

 

很明显 没有这个类,最大的原因就是没有相关jar包

ljinshuan | 园豆:210 (菜鸟二级) | 2012-10-24 18:46
0

myeclipse 中自带的有tomcat服务器,所以可以正常运行;但是在eclipse中是没有的,你配置一个tomcat服务器就行了!

Vincent.Pei | 园豆:156 (初学一级) | 2012-11-28 22:42
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册