gpt4 book ai didi

java - 以 Debug模式启动服务器在 eclipse 上不起作用

转载 作者:行者123 更新时间:2023-11-28 23:35:59 35 4
gpt4 key购买 nike

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

这是日志:

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

最佳答案

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

关于java - 以 Debug模式启动服务器在 eclipse 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24618673/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com