myeclipse和tomcat连好后,运行tomcat警告

来源:百度知道 编辑:UC知道 时间:2024/06/04 01:50:16
myeclipse和tomcat连好后,运行tomcat警告
2009-4-24 19:13:42 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
2009-4-24 19:13:42 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
2009-4-24 19:13:42 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:\Java\jre1.5.0\bin;F:\Tomcat\bin
2009-4-24 19:13:42 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8008
2009-4-24 19:13:42 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1134 ms

这个警告是在你的server.xml中配置的,你把debug设置为:0,但是找不到debug属性的一些配置,所以就报警了.
你可以在server.xml中:
<Context path="" docBase="" crossContext="false" debug="0"
reloadable="true" > </Context>
中debug设置为:1
就不会出现了警告提示了.
希望对你有所帮助.

这个警告是在server.xml中配置的,把debug设置为:0,但是找不到debug属性的一些配置,所以就报警了。
可以在server.xml中:
<Context path="" docBase="" crossContext="false" debug="0"
reloadable="true" > </Context>
中debug设置为:1
就不会出现了警告提示了。

这是因为, 使用的Myeclipse 的编译时的 JDK 版本比较高.  而tomcat 使用的jre 版本比较低.

举例 :  在jdk 1.6 编译的 .class  文件,  使用jre  1.5 环境运行 就会报 Bad version number in .class

解决办法:(任选其一)

  1. 更改tomcat 的版本(高版本的tomcat 使用的jre版本也会相对较高)

  2. 指定tomcat 运行的jre (通常配置jre 的环境变量就好了, tomcat自己会找寻jre的环境变量)

  3. (推荐)   更改Myeclipse 编译级别  ,