报错内容: 2013-10-18 18:46:58 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:\Java\jdk1.5.0_16\bin;.;C:\Windows\system32;C:\Windows;D:/Java/jdk1.5.0_16/bin/../jre/bin/client;D:/Java/jdk1.5.0_16/bin/../jre/bin;D:/Java/jdk1.5.0_16/bin/../jre/lib/i386;D:\OracleBaseDirctory\D\product\11.2.0\dbhome_1\bin;D:\ant181\apache-ant-1.8.4-bin\apache-ant-1.8.4/bin;.;D:\Java\jdk1.5.0_16\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\Program Files\TortoiseSVN\bin;E:\android\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64-20130522\sdk\tools;E:\android\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64-20130522\sdk\platform-tools;D:\Program Files (x86)\Vim\vim73;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC;;D:\eclipse\eclipse-jee-indigo-SR2-win32\eclipse;
2013-10-18 18:46:58 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2013-10-18 18:46:58 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 406 ms
2013-10-18 18:46:58 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-10-18 18:46:58 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.23
2013-10-18 18:46:58 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2013-10-18 18:46:58 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class flex.messaging.HttpFlexSession
java.lang.ClassNotFoundException: flex.messaging.HttpFlexSession
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.StandardContext.listenerStart(StandardContext.java:3712)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
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)
2013-10-18 18:46:58 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2013-10-18 18:46:58 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-10-18 18:46:58 org.apache.catalina.core.StandardContext start
严重: Context [/mortise] startup failed due to previous errors
2013-10-18 18:46:59 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2013-10-18 18:46:59 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2013-10-18 18:46:59 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/0 config=null
2013-10-18 18:46:59 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2013-10-18 18:46:59 org.apache.catalina.startup.Catalina start
信息: Server startup in 1077 ms
我为了排查这个错误花了6天的时间,痛苦万分。
出错原因:BlazeDS包的问题。
解决方法:
1.下一个BlazeDS的war包。将BlazeDS.war的后缀更改为.zip。然后解压缩得到BlazeDS文件夹。
把文件夹下的META-INFO和WEB-INFO复制下来,粘贴到项目工程的Web-Content目录下面。覆盖掉重复的文件。请注意是覆盖,就是用新的替换掉旧的,不是合并。
然后clean一下Project。再reflesh一下。重新部署一下tomcat,错误解除。