2013-09-26 321 views
0

嗨,我想使用下列技術結合在一起:java.lang.NoClassDefFoundError:組織/阿帕奇/公/蒸煮/蒸煮阿帕奇7

  • MyFaces的2.1.12
  • JSTL 1.2
  • 阿帕奇7

但試圖運行我的應用程序時,我得到了以下異常:

java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester 
    at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.<init>(DigesterFacesConfigUnmarshallerImpl.java:42) 
    at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getUnmarshaller(DefaultFacesConfigurationProvider.java:93) 
    at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:135) 
    at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69) 
    at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416) 
    at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370) 
    at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) 
    at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143) 
    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.Digester 

這是非常令人不安的,因爲我已經將commons-digester3-3.2.jar鏈接到我的項目中,將它放在「Web-INF」下的lib目錄中,並將其添加到java構建路徑中......出了什麼問題?

謝謝,

回答

0

使用commons-digester版本1.8。 commons-digester3已經有很多變化。

+0

它的工作原理,謝謝 –

相關問題