请帮忙,jsf icefaces webapp无法在netbean中运行

时间:2014-02-17 10:57:45

标签: java jsf icefaces

大家早上好,

我在网上看到了一个教程,展示了如何创建弹出对话框。本教程从我的环境配置开始,例如添加成功创建和运行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.

1 个答案:

答案 0 :(得分:0)

您可能缺少一些运行时依赖项,例如commons-logging。

以下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服务器中,但您必须检查公共依赖项。