我在启动tomcat时就出现这两个warn?
2007-7-9 13:16:29 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Java\jdk1.5.0_06\BIN
2007-7-9 13:16:29 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2007-7-9 13:16:29 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1453 ms
2007-7-9 13:16:29 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-7-9 13:16:29 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2007-7-9 13:16:29 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-7-9 13:16:29 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(E:\my_Eclipse\snmpmgrweb_myfaces\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
[DEBUG] The REALPATH of this web application is 'E:\my_Eclipse\snmpmgrweb_myfaces '.
问题一:
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Java\jdk1.5.0_06\BIN
它怎么说没找到环境呢,重要吗??
问题二:
validateJarFile(E:\my_Eclipse\snmpmgrweb_myfaces\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
[DEBUG] The REALPATH of this web application is 'E:\my_Eclipse\snmpmgrweb_myfaces '.
这两个Warn怎么产生的呢??
我现在只知道是不是我的log4jconf.cfg文件写错了,以下是我的cfg文件内容:
log4j.rootLogger=info, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller 's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=./logs/snmpMgrLog
log4j.appender.R2=org.apache.log4j.DailyRollingFileAppender