3 Replies Latest reply on Nov 22, 2006 12:34 PM by Ryszard Kozmik

    Error with Jboss Forums

    Vinutha GR Newbie

      Hi

      I have integrated the Jboss AS 4.0.5 GA with Portal 2.4.0 and the JBoss Forums from the repositry.

      I get the following error when i try to view a post

      javax.portlet.PortletException: Change component/tag 'newTopic' from javax.faces.*/ to org.apache.myfaces.*/, or embed it in a form. This is not a bug. Please see: http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3 The path to this component is {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /views/topics/viewtopic_body.xhtml][Class: javax.faces.component.html.HtmlCommandLink,Id: newTopic]}

      I added the


      <component-family>javax.faces.Command</component-family>
      <renderer-type>javax.faces.Button</renderer-type>
      <renderer-class>org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlButtonRenderer</renderer-class>



      <component-family>javax.faces.Command</component-family>
      <renderer-type>javax.faces.Link</renderer-type>
      <renderer-class>org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer</renderer-class>


      in jboss-portal.sar/portal-core.war/WEB-INF/faces-config.xml

      Then I get a different error as follows.
      17:50:39,056 ERROR [ClassUtils] Class org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlButtonRenderer not found
      java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlButtonRenderer
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:219)
      at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:138)
      at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
      at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:625)
      at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:142)
      at org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(MyFacesGenericPortlet.java:184)
      at org.apache.myfaces.portlet.MyFacesGenericPortlet.init(MyFacesGenericPortlet.java:110)
      at javax.portlet.GenericPortlet.init(GenericPortlet.java:355)
      at org.jboss.portal.portlet.container.PortletContainer.initPortlet(PortletContainer.java:391)
      at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:251)



      and...


      17:50:39,087 ERROR [ClassUtils] Class org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer not found
      java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:219)
      at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:138)
      at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
      at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:625)
      at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:142)
      at org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(MyFacesGenericPortlet.java:184)
      at org.apache.myfaces.portlet.MyFacesGenericPortlet.init(MyFacesGenericPortlet.java:110)
      at javax.portlet.GenericPortlet.init(GenericPortlet.java:355)
      at org.jboss.portal.portlet.container.PortletContainer.initPortlet(PortletContainer.java:391)
      at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:251)
      at org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
      at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


      I think the following classes are missing ...

      ExtendedHtmlLinkRenderer
      ExtendedHtmlButtonRenderer