tomcat啟動出錯。。。。
不加入工程(或加入簡單的測試工程)時﹐啟動正常
加入我正在調試的這個工程時﹐啟動tomcat出現錯誤
(環境﹕Eclipse3.2+tomcat5+jdk5+Oracle9i 用到了Struts)
錯誤提示如下﹕
2007/4/12 下午 07:29:15 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: E:\jdk1.5.0_11\bin;.;C:\WINNT\system32;C:\WINNT;D:\oracle\ora92\bin;E:\jdk1.5.0_11\bin;C:\winnt\system32
2007/4/12 下午 07:29:15 org.apache.coyote.http11.Http11BaseProtocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2007/4/12 下午 07:29:15 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 1047 ms
2007/4/12 下午 07:29:15 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2007/4/12 下午 07:29:15 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/5.5.23
2007/4/12 下午 07:29:15 org.apache.catalina.core.StandardHost start
資訊: XML validation disabled
2007/4/12 下午 07:29:16 org.apache.catalina.core.StandardContext filterStart
嚴重的: Exception starting filter Set Character Encoding
java.lang.ClassNotFoundException: SetCharacterEncodingFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
at org.apache.catalina.core.ApplicationFilterConfig. <init> (ApplicationFilterConfig.java:78)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2007/4/12 下午 07:29:16 org.apache.catalina.core.StandardContext start
嚴重的: Error filterStart
2007/4/12 下午 07:29:16 org.apache.catalina.core.StandardContext start
嚴重的: Context [/emtg] startup failed due to previous errors
2007/4/12 下午 07:29:17 org.apache.catalina.core.ApplicationContext log
資訊: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2007/4/12 下午 07:29:17 org.apache.catalina.core.ApplicationContext log
資訊: ContextListener: contextInitialized()
2007/4/12 下午 07:29:17 org.apache.catalina.core.ApplicationContext log
資訊: SessionListener: contextInitialized()
2007/4/12 下午 07:29:17 org.apache.catalina.core.ApplicationContext log
資訊: ContextListener: contextInitialized()
2007/4/12 下午 07:29:17 org.apache.catalina.core.ApplicationContext log
資訊: SessionListener: contextInitialized()
2007/4/12 下午 07:29:18 org.apache.coyote.http11.Http11BaseProtocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2007/4/12 下午 07:29:18 org.apache.jk.common.ChannelSocket init
資訊: JK: ajp13 listening on /0.0.0.0:8009
2007/4/12 下午 07:29:18 org.apache.jk.server.JkMain start
資訊: Jk running ID=0 time=0/47 config=null
2007/4/12 下午 07:29:18 org.apache.catalina.storeconfig.StoreLoader load
資訊: Find registry server-registry.xml at classpath resource
2007/4/12 下午 07:29:18 org.apache.catalina.startup.Catalina start
資訊: Server startup in 2969 ms
[解决办法]
检查你配置文件是否有错误,还有是不是设置了SetCharacterEncodingFilter而没有写相应的过滤类SetCharacterEncodingFilter.java
[解决办法]
认真检查下配置文件!