seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces

jboss4.2.1GA,jboss-seam-CVS.2007-08-30_14-35-23

把fck-faces-1.7.26.jar和FCKeditor-2.3.jar放在根目录下,用firefox打开相关页面出错:

XML解析错误:前缀未绑定至名字空间
位置:http://localhost:8080/helloJise/testrichtextAddEdit.seam?cid=6
行:56,列:17
                     <fck:editor toolbarSet="Default" value="" width="100%" height="400" id="content" cols="180" rows="118"></fck:editor>
----------------^

原先在jboss4.0.5GA中是可以运行的。
根据seam论坛的解释,基本可以确定是由于从jboss4.0.5GA迁移至4.2.0GA所致。
michael.yuan@jboss.com
Yes, migrating from 4.0.5 to 4.2.0 is a pain because we switched from MyFaces to JSF RI. But that should stay stable for the foreseeable future -- meaning that migrating to JBoss AS 5.0 should be very easy.

如果把两个jar文件放到war包的web-info/lib目录下,出错:
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.NoClassDefFoundError: org
/ apache / myfaces / renderkit / html / HtmlTextareaRenderer

... ...

org.jboss.deployment.DeploymentException: URL file:
/ C: / jboss - 4.2 . 1 .GA / server / default / tmp / deploy / tmp18917helloJise.ear - contents / helloJise - exp.war /  deployment failed
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:
379 )
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:
104 )
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:
375 )
    at org.jboss.web.WebModule.startModule(WebModule.java:
83 )
    at org.jboss.web.WebModule.startService(WebModule.java:
61 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
289 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:
245 )
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
597 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )

......

仅把FCKeditor-2.3.jar 放到war包的web-info/lib目录下,加载时不出错,浏览页面时,出现:
XML解析错误:前缀未绑定至名字空间,与前面所述相同。

2007.9.1  可能是加载fck-faces-1.7.26.jar时出了问题
2007.9.5  根据资料介绍,jboss4.2.1已经不再至此myFaces,而fck-faces包正是使用了myFaces的功能,因此,导致加载fck-faces-1.7.26.jar时出错。

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces:

JBoss AS 4.0.3 and higher ships with the MyFaces JSF 1.1 implementation. For information on using the JSF 1.1 support in these versions, see JBossWithIntegratedMyFaces.

JBoss AS 5.x and JBoss AS 4.2 ship with the java.net CDDL JSF 1.2 Implementation. For information on using the JSF 1.2 support, see JBossWithJSFCDDL.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值