2014-02-17 20 views
0

大家早上好,請幫忙,jsf icefaces webapp無法在netbean中運行

我在網上遇到一個教程,說明如何創建一個彈出對話框。本教程從我的環境配置開始,例如添加成功創建和運行ICE faces項目所需的所有可能的.jar文件。

我成功添加了所有的jar文件,創建了項目並鍵入了本教程給出的所有代碼。

但是,當我試圖運行icefaces project時,netbean總是在輸出面板中彈出錯誤消息。

我懷疑問題來自我省略的配置或其他我不知道的問題。

所以,如果你們中的任何人都可以幫助我確定爲什麼我的項目在運行時無法正常工作,我會很高興。

以下是錯誤netbean告訴我,當我嘗試運行它:

In-place deployment at C:\JavaProjects\new app\First Ice Popup\build \web deploy?DEFAULT=C:\JavaProjects\new app\First Ice Popup\build \web&name=First_Ice_Popup& contextroot=/First_Ice_Popup&force=true failed on GlassFish Server 3.1.2 Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Source Document: jar:file:/C:/JavaProjects /new%20app/First%20Ice%20Popup/build /web/WEB-INF/lib/icefaces-compat.jar!/META- INF/faces-config.xml Cause: Class ' com.icesoft.faces.component.effect.ApplyEffectRenderer' 
C : \JavaProjects\new app\First Ice Popup \build \web 
deploy ? DEFAULT = C : \JavaProjects\new app\First Ice Popup \build\web & name = First_Ice_Popup & contextroot =/ First_Ice_Popup & force = true failed on GlassFish Server 3.1 . 2 Error occurred during deployment : Exception while loading the app : java . lang . IllegalStateException : ContainerBase . addChild : start : org . apache . catalina . LifecycleException : java . lang . RuntimeException : com . sun . faces . config . ConfigurationException : Source Document : jar : file :/ C :/ JavaProjects/new % 20app/First % 20Ice % 20Popup/build/web/WEB - INF/lib/icefaces - compat . jar !/ META - INF/faces - config . xml 
    Cause : Class ' com.icesoft.faces.component.effect.ApplyEffectRenderer 
'is missing a runtime dependency : java.lang.NoClassDefFoundError: org/apache /commons/logging/LogFactory. Please see server.log for more details. C:\JavaProjects\new app\First Ice Popup\nbproject\build-impl.xml: 724: The module has not been deployed. See 
java . lang . NoClassDefFoundError : org/apache/commons/logging/LogFactory . Please see server . log for more details . C : \JavaProjects\new app\First Ice Popup \nbproject\build - impl . xml : 724 : The module has not been deployed . 
Seethe server log for details. 

回答

0

你可能會丟失一些運行時依賴諸如共享記錄。

下面的JAR文件,需要使用ICEfaces的:

backport-util-concurrent.jar 
commons-beanutils.jar 
commons-collections.jar 
commons-digester.jar 
commons-fileupload.jar 
commons-logging.jar 
commons-logging-api.jar 
el-api.jar 
icefaces.jar (incl. std. JSF comp. support) 
just-ice.jar (without std. JSF comp. support) 
icefaces-comps.jar 
xercesImpl.jar 
xml-apis.jar 

他們幾個已經包含在GlassFish服務器,但你必須檢查公地依賴性。

+0

謝謝soooo很多先生,!!我很感激,非常感激!雖然沒有嘗試過。 – David

相關問題