嚴重: Error configuring application listener of class flex.messaging.HttpFlexSession flex.messaging.Ht
阿新 • • 發佈:2019-02-16
報錯內容:
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,錯誤解除。