???聽說ajax今年會很火,所以也就了解了解,順便也實際一下.據說DWR是ajax的一個很好框架,也比較簡單,對平時用的一些東西進行了封裝,所以我們用起來就方便.
?? 我也就想嘗試一下,學習學習一下.可萬萬沒想到一開始就碰殼了.總是提示"servlet.init()"出錯,我都是按照文檔一步步的,怎么會這樣呢?真是沒想明白,在群中問了很少有人回答,有一位"邢紅瑞"的同學到時給了我提示,他問我要更詳細的錯誤信息.哦,是呀我應該仔細看看Tomcat下的日志文件,打開了今天的日志原來還有一個重要的錯誤:
?????
342192658?[http-8080-Processor3]?ERROR?org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Ajax]?-?StandardWrapper.Throwable
javax.xml.transform.TransformerFactoryConfigurationError:?Provider?org.apache.xalan.processor.TransformerFactoryImpl?not?found
at?javax.xml.transform.TransformerFactory.newInstance(Unknown?Source)


???? 然后,google一查,找到人家的回答.
It?is?due?to?an?issue?with?the?xml-apis.jar?that?Tomcat?includes?in?the?common/endorsed?directory?(which?is?also?in?the?tomcat?classpath?by?default).?This?jar?conflicts?with?the?javax?call?attempted?seen?in?the?stack?trace.?I?renamed?xml-apis.jar?to?.bak?and?restarted,?which?solved?the?problem,?but?you?could?probably?also?just?remove?/common/endorsed?from?the?startup?script.?I’m?not?sure?if?Tomcat?needs?either?of?the?jars?in?this?folder?for?its?own?work,?but?so?far?things?seem?to?work?fine.?


? 我猜想應該是xml解析的類包有沖突,然后我把"
/common/endorsed?"下的文件干掉,重新啟動.一切OK!
??
呵呵,所以找問題一定要認真仔細,全面的考慮.
??
posted on 2006-04-27 14:11
Harryson 閱讀(508)
評論(0) 編輯 收藏 所屬分類:
AJAX