大家早上好,
我偶然在网上看到了一个教程,它展示了如何创建弹出对话框。本教程从我的环境的配置开始,比如添加成功创建和运行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.
发布于 2014-02-17 12:50:23
您可能会遗漏一些运行时依赖项,比如commons-logging。
使用ICEfaces需要以下JAR:
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服务器中,但是您必须检查commons依赖关系。
https://stackoverflow.com/questions/21827199
复制相似问题