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

时间:2021-02-10 20:00:31
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目录下,出错:
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFacesorg.jboss.web.jsf.integration.config.JBossJSFConfigureListener
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFacesjava.lang.NoClassDefFoundError: org
/apache/myfaces/renderkit/html/HtmlTextareaRenderer
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces... ...
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFacesorg.jboss.deployment.DeploymentException: URL file:
/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp18917helloJise.ear-contents/helloJise-exp.war/ deployment failed
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:
379)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:
104)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:
375)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.web.WebModule.startModule(WebModule.java:
83)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.web.WebModule.startService(WebModule.java:
61)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
289)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:
245)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at java.lang.reflect.Method.invoke(Method.java:
597)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155)
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces
seam2中实现fckEditor出错:jboss4.2.1已经不再支持myFaces......

仅把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.