在调试模式下启动服务器不会在eclipse上工作

时间:2014-07-07 19:50:47

标签: java eclipse jsf tomcat

我试图在调试模式下启动jsf应用程序,但它不起作用。我对代码进行了一些修改,然后停止了工作。我已将这些更改发送给我的朋友并且它正常工作。

这是日志:

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服务器,但它没有帮助。

1 个答案:

答案 0 :(得分:0)

删除部署到solis_web\WEB-INF\lib\servlet-api-2.5.jar的jar。它与Tomcat内置(并由Tomcat提供)的那些类的版本冲突。打开项目的“属性”对话框,确保“服务器”页面指向Tomcat;应该正确地将API放在构建路径中而不重复它们。