1 Reply Latest reply on Feb 13, 2006 4:53 PM by Bhanu K

    JBoss 4.0.2 - Coldfusion - myfaces interoperability

    Bhanu K Newbie

      I have this sample application where I want to confirm Interoperability of Coldfusion and MyFaces. I deployed this application on JBoss 4.0.2. after several, several hurdles, I have this following error:

      Could not create instance of tag handler class org.apache.myfaces.taglib.html.HtmlFormTag: java.lang.ClassCastException: org.apache.myfaces.taglib.html.HtmlFormTag.

      java.lang.ClassCastException: org.apache.myfaces.taglib.html.HtmlFormTag
      at coldfusion.runtime.NeoPageContext$TagSet.getTagHandlerInstance(NeoPageContext.java:1845)
      at coldfusion.runtime.NeoPageContext.getTagHandlerInstance(NeoPageContext.java:1800)
      at coldfusion.runtime.CfJspPage._initTag(CfJspPage.java:1167)
      at cflogin2ecfm806713828.runPage(C:\Program Files\JBoss\jboss-4.0.2\server\default\.\deploy\ColdFusionMyFacesTiles.war\cfm\login.cfm:5)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
      at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
      at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:24)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.CfmServlet.service(CfmServlet.java:105)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)



      My cfm page looks like this:




      <h:form id="loginForm">

      <h:panelGrid id="loginGrid" columns="2">

      <h:outputText value="UserId" />

      <h:inputText id="userName" value="bhanu"
      required="true">
      <f:validateLength minimum="1" />
      </h:inputText>

      <h:outputText value="Password" />

      <h:inputSecret id="password" value="password"
      required="true">
      <f:validateLength minimum="3" />
      </h:inputSecret>


      <h:commandButton id="submit" value="submit" />


      </h:panelGrid>

      </h:form>


      I have tweaked several things in JBoss. As per the wiki, http://www.jboss.com/wiki/Wiki.jsp?page=JBossFaces, I configured jsf-libs and added all the myfaces jars. I also added the tlds for myfaces-core and myfaces-html. I just cannot get it to work. Can you please help?

      Thanks


      PS: I am able to get a regular JSF-Myfaces app working fine on JBoss. No issues. Problem arises when I try to interoperate with Coldfusion on JBoss.

      Any ideas is appreciated.

      Thanks

        • 1. Re: JBoss 4.0.2 - Coldfusion - myfaces interoperability
          Bhanu K Newbie

          I missed out in the imports on the cfm page in my previous post:

          My cfm page looks like this:

          (both the cfimports below are between <>, for some reason, this post strips it off if i keep it)

          cfimport taglib="/WEB-INF/lib/myfaces_html.tld" prefix="h"
          cfimport taglib="/WEB-INF/lib/myfaces_core.tld" prefix="f"


          <h:form id="loginForm">

          <h:panelGrid id="loginGrid" columns="2">

          <h:outputText value="UserId" />

          <h:inputText id="userName" value="bhanu"
          required="true">
          <f:validateLength minimum="1" />
          </h:inputText>

          <h:outputText value="Password" />

          <h:inputSecret id="password" value="password"
          required="true">
          <f:validateLength minimum="3" />
          </h:inputSecret>


          <h:commandButton id="submit" value="submit" />


          </h:panelGrid>

          </h:form>