幾個小時前,我正在研究我的web應用程序,它工作正常。但不知何故,一個比較奇怪的問題已經開始出現,我收到以下錯誤:tomcat找不到maven dependencies
Nov 7, 2011 1:49:10 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:springatwork' did not find a matching property.
Nov 7, 2011 1:49:10 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\csvn\bin\;C:\csvn\Python25\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_17\bin;C:\Home\apache-tomcat\bin;C:\Home\apache-maven-3.0.3\bin;C:\Home\apache-ant\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\QuickTime\QTSystem\
Nov 7, 2011 1:49:10 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 7, 2011 1:49:10 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 455 ms
Nov 7, 2011 1:49:10 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 7, 2011 1:49:10 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Nov 7, 2011 1:49:11 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3877)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 7, 2011 1:49:11 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Nov 7, 2011 1:49:11 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 7, 2011 1:49:11 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/springatwork] startup failed due to previous errors
Nov 7, 2011 1:49:11 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 7, 2011 1:49:11 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 7, 2011 1:49:11 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Nov 7, 2011 1:49:11 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 328 ms
我使用M2 Maven插件Eclipse和項目是Maven的web應用。當我使用tomcat-maven-plugin時,該項目可以正常工作,但如果我嘗試將其部署到Eclipse 3.5 IDE中配置的tomcat服務器上,則會出現上述錯誤。
編輯:此外,當我停止Tomcat我會在年底執行以下操作:
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
我記得做了嘗試使用調試模式做一些調試嘛。
有人能幫我理解爲什麼會發生這種情況,以及如何解決這個問題?
謝謝。
你試圖關閉/重新啓動日食? – Kevin
是的,我試了幾次。我什至嘗試重新啓動我的電腦,但沒有一個幫助。我用一些額外的信息編輯了這個問題。 – skip
我不知道如何以及爲什麼,但從Eclipse IDE中刪除項目,然後再次導入後,它開始工作。但由於某些原因,我無法正確使用Eclipse調試器。我想知道它是否與'eclipse.ini'中添加的用於解決maven插件問題的'-vm C:\ Program Files \ Java \ jdk1.6.0_17 \ bin \ javaw.exe'有關。在調試模式下工作時,「使用步驟過濾器」似乎不再適用。 – skip