您的位置:首页 > 其它

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

2007-08-30 10:34 549 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: