2014-07-07 30 views
0

我試圖在調試模式下啓動jsf應用程序,但它不起作用。我對代碼做了一些修改,然後停止了工作。我已將這些更改發送給我的朋友,並且正常工作。在調試模式下啓動服務器將無法在eclipse上工作

這裏的日誌:

07/07/2014 16:48:51 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\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\apache-maven-2.2.1\bin;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\;. 
07/07/2014 16:48:51 org.apache.tomcat.util.digester.SetPropertiesRule begin 
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '5' did not find a matching property. 
07/07/2014 16:48:51 org.apache.tomcat.util.digester.SetPropertiesRule begin 
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:solis_web' did not find a matching property. 
07/07/2014 16:48:51 org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
07/07/2014 16:48:51 org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 612 ms 
07/07/2014 16:48:51 com.mchange.v2.log.MLog <clinit> 
INFO: MLog clients using java 1.4+ standard logging. 
07/07/2014 16:48:51 com.mchange.v2.c3p0.C3P0Registry banner 
INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] 
07/07/2014 16:48:51 org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
07/07/2014 16:48:51 org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26 
07/07/2014 16:48:52 org.apache.catalina.loader.WebappClassLoader validateJarFile 
INFO: validateJarFile(C:\Users\jvmartins\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\solis_web\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 
07/07/2014 16:48:52 org.apache.catalina.core.StandardContext addApplicationListener 
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. 
SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/C:/apache-tomcat-6.0.26/shared/lib/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/C:/Users/jvmartins/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/solis_web/WEB-INF/lib/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 

但如果我嘗試正常啓動服務器,它的工作原理。我試圖清理項目和Apache服務器,但它沒有幫助。

+0

這個日誌沒有說什麼。我唯一能想到的是Eclipse沒有正確地將您的應用程序部署到服務器。但這似乎並不能解釋給定的症狀。 –

+0

嗯......我以前給過相同的日誌,但服務器會在調試模式下啓動......我不知道可能是由於什麼原因造成的......我的同事說要刪除該項目並將其重新下載svn ....也許它會幫助... –

+0

不要以爲你需要這樣一個極端的解決方案。只要看看你是否改變了項目的* .project *文件夾或類似的東西。 –

回答

0

刪除部署到solis_web\WEB-INF\lib\servlet-api-2.5.jar的jar。它與Tomcat內置的(和提供的)類的版本衝突。打開項目的Properties對話框,確保Server頁面指向Tomcat;應該正確地將API放在構建路徑中而不重複它們。

相關問題