Hello,

I have a problem using JBoss Portal 2.6.2 with JBoss AS 4.2.2 (so not the 
portal 2.6.2 bundle, but a separate installation), regarding JSF MyFaces and RI 
incompatibility, as stated by the following log :

  | 10:31:03,911 ERROR [STDERR] Dec 3, 2007 10:31:03 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
  | 10:31:04,009 ERROR [STDERR] Dec 3, 2007 10:31:04 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
  | 10:31:04,057 ERROR [STDERR] Dec 3, 2007 10:31:04 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
  | 10:31:04,072 ERROR [STDERR] Dec 3, 2007 10:31:04 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
  | 10:31:04,129 ERROR [STDERR] Dec 3, 2007 10:31:04 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
  | 10:31:04,138 ERROR [STDERR] Dec 3, 2007 10:31:04 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
  | 10:31:04,889 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default 
value true
  | 10:31:04,889 INFO  [MyfacesConfig] Tomahawk jar not available. 
Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are 
disabled now.
  | 10:31:04,889 INFO  [MyfacesConfig] Starting up Tomahawk on the 
RI-JSF-Implementation.
  | 10:31:04,889 INFO  [MyfacesConfig] Starting up Tomahawk on the 
MyFaces-JSF-Implementation
  | 10:31:04,889 ERROR [MyfacesConfig] Both MyFaces and the RI are on your 
classpath. Please make sure to use only one of the two JSF-implementations.
  | 

But I am just using the default installations of JBoss AS and JBoss portal.

and also later :

  | 11:43:42,495 ERROR [STDERR] Dec 3, 2007 11:43:42 AM 
com.sun.facelets.tag.jsf.ComponentRule warnAttr
  | WARNING: /WEB-INF/jsf/common/confirm.xhtml @11,69 for="username" Property 
'for' is not on type: javax.faces.component.html.HtmlOutputText
  | 11:43:42,497 ERROR [STDERR] Dec 3, 2007 11:43:42 AM 
com.sun.facelets.tag.jsf.ComponentRule warnAttr
  | WARNING: /WEB-INF/jsf/common/confirm.xhtml @14,63 for="email" Property 
'for' is not on type: javax.faces.component.html.HtmlOutputText
  | 11:43:42,500 ERROR [STDERR] Dec 3, 2007 11:43:42 AM 
com.sun.facelets.tag.jsf.ComponentRule warnAttr
  | WARNING: /WEB-INF/jsf/common/confirm.xhtml @17,69 for="password" Property 
'for' is not on type: javax.faces.component.html.HtmlOutputText
  | 

Some lines before in the log (JBOss initialization) there are the following 
messages, several times :

  | 10:28:22,756 INFO  [FacesConfigurator] Reading standard config 
org/apache/myfaces/resource/standard-faces-config.xml
  | 10:28:22,791 INFO  [FacesConfigurator] Reading config 
jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/faces-config.xml
  | 10:28:22,796 INFO  [FacesConfigurator] Reading config 
/WEB-INF/faces-config.xml
  | 10:28:22,825 INFO  [FacesConfigurator] MyFaces-package : myfaces-api not 
found.
  | 10:28:22,825 INFO  [FacesConfigurator] MyFaces-package : myfaces-impl not 
found.
  | 10:28:22,825 INFO  [FacesConfigurator] MyFaces-package : tomahawk-sandbox 
not found.
  | 10:28:22,825 INFO  [FacesConfigurator] MyFaces-package : tomahawk not found.
  | 10:28:22,826 WARN  [LocaleUtils] Locale name in faces-config.xml null or 
empty, setting locale to default locale : en_US
  | 10:28:22,827 INFO  [RenderKitFactoryImpl] RenderKit with renderKitId 
'HTML_BASIC' was replaced.
  | 10:28:22,828 WARN  [FacesConfigurator] More than one managed bean w/ the 
name of 'portalobjectmgr' - only keeping the last 
  | 10:28:22,828 WARN  [FacesConfigurator] More than one managed bean w/ the 
name of 'portalAction' - only keeping the last 
  | 10:28:22,828 WARN  [FacesConfigurator] More than one managed bean w/ the 
name of 'addPageAction' - only keeping the last 
  | 10:28:22,828 WARN  [FacesConfigurator] More than one managed bean w/ the 
name of 'assignContentToWindowAction' - only keeping the last 
  | 10:28:22,828 WARN  [FacesConfigurator] More than one managed bean w/ the 
name of 'dashboardmgr' - only keeping the last 
  | 

And after all, I have exceptions using JBoss Forum 1.0.1 DR :

  | 16:04:07,779 ERROR [STDERR] Dec 3, 2007 4:04:07 PM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/views/admin/index.xhtml]
  | java.lang.IllegalStateException: Client-id : 
jbpns_2fdefault_2fforums_2fJBossForumsWindowsnpbj_id85 is duplicated in the 
faces tree.
  |     at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
  |     at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
  |     at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
  |     at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
  |     at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
  |     at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:396)
  |     at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
  |     at 
org.jboss.portlet.forums.ui.ForumsJSFPortlet.doView(ForumsJSFPortlet.java:375)
  |     at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
  |     at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
  |     at 
org.jboss.portlet.forums.ui.ForumsJSFPortlet.render(ForumsJSFPortlet.java:409)
  |     at 
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
  |     at 
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
  |     at 
org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
  |     at 
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
  | ...........
  | 

But perhaps this last one is another pb....

Should I go back to JBoss AS 4.2.1 ?
That does not seem necessary according to this thread : JBoss Portal 2.6.2 + 
JBoss AS 4.2.2.GA = 
true?(http://www.jboss.com/index.html?module=bb&op=viewtopic&t=123653).

The search for these subjects was not great help, just the following wiki :
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces
http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyFaces

But I did not understand that, in these wiki, there could be solutions to these 
problems.

The users forum of JBoss Portal did not help me neither : some topics are 
discussing about some problems with JSF, but all to specific portlets or other 
development. Here I am just using the default portal with just the JBoss Forum 
1.0.1DR added.

I don't want to use the first one JSF implementation or the second one. 
Whatever the one that would be working with JBoss AS 4.2.2 and JBoss Portal 
2.6.2, that would be OK for me.

Thank you very much for some help.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109972#4109972

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109972
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to