4 Replies Latest reply: Mar 23, 2012 6:06 AM by Sascha Janz RSS

Trouble deploying seam 2.1.2 richfaces 3.3.3 app on JBoss AS 7

Sascha Janz Master

Hi,

 

i try to deploy my app Seam 2.1.2 app with richfaces 3.3.3. on JBoss AS 7

 

the login page renderes correct. but when i try to access an xhtml page with an extendeddatatable

 

i got following exception

 

javax.servlet.ServletException: org.richfaces.model.Ordering cannot be cast to org.richfaces.model.Ordering
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)


root cause

 

any ideas what the trouble is?

  • 1. Re: Trouble deploying seam 2.1.2 richfaces 3.3.3 app on JBoss AS 7
    Tomaz Cerar Master

    What does you deployment look like?

     

    can you post output of your deployment that is produced by invoking:

    jar tf <name of your deployment>

     

    --

    tomaz

  • 2. Re: Trouble deploying seam 2.1.2 richfaces 3.3.3 app on JBoss AS 7
    Sascha Janz Master

    here it is. hope you can help

     

    the rich*.jar are deployed in the war file

     

    META-INF/
    META-INF/MANIFEST.MF
    lib/
    META-INF/application.xml
    META-INF/jboss-app.xml
    META-INF/jboss-deployment-structure.xml
    hibernate.cfg.xml
    jboss-seam.jar
    jbpm.cfg.xml
    lib/Filters.jar
    lib/PDFRenderer-0.9.1.jar
    lib/acrobat.jar
    lib/antlr-runtime.jar
    lib/barcode4j-light.jar
    lib/core.jar
    lib/dom4j.jar
    lib/drools-api.jar
    lib/drools-compiler.jar
    lib/drools-core.jar
    lib/drools-decisiontables.jar
    lib/drools-jsr94.jar
    lib/drools-templates.jar
    lib/gwt-servlet.jar
    lib/hibernate-annotations.jar
    lib/hibernate-commons-annotations.jar
    lib/hibernate-core.jar
    lib/hibernate-entitymanager.jar
    lib/hibernate-search.jar
    lib/hibernate-tools.jar
    lib/hibernate-validator.jar
    lib/hibernate.jar
    lib/hibernate3.jar
    lib/icepdf-core.jar
    lib/icepdf-viewer.jar
    lib/jai_codec.jar
    lib/jai_core.jar
    lib/jai_imageio.jar
    lib/janino.jar
    lib/jasperreports-3.6.0.jar
    lib/jaspertags-0.9.0.jar
    lib/java-image-scaling-0.8.5.jar
    lib/javassist.jar
    lib/jawin-stubs.jar
    lib/jawin.jar
    lib/jboss-annotations-ejb3.jar
    lib/jboss-el.jar
    lib/jbpm-jpdl.jar
    lib/jsf-api.jar
    lib/jsf-facelets.jar
    lib/jsf-impl.jar
    lib/jsf_core.tld
    lib/jsftemplating-base-1.2-SNAPSHOT.jar
    lib/jsr311-api-1.1.1.jar
    lib/jxl.jar
    lib/log4j.jar
    lib/mvel14.jar
    lib/mvel2.jar
    lib/nekohtml-0.9.5.jar
    lib/requester2.jar
    lib/resteasy-atom-provider.jar
    lib/resteasy-jaxb-provider.jar
    lib/resteasy-jaxrs.jar
    lib/resteasy-jettison-provider.jar
    lib/slf4j-api.jar
    lib/slf4j-log4j12.jar
    lib/xercesImpl.jar
    lib/xpp3_min.jar
    lib/xstream.jar
    workflow.jar
    workflow.war

     

     

     

    <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
      <deployment>
            <dependencies>
              <module name="org.apache.log4j" export="true"/>
              <module name="org.dom4j" export="true"/>
              <module name="org.apache.commons.logging" export="true"/>
              <module name="org.apache.commons.collections" export="true"/>
              <module name="javax.faces.api" slot="1.2" export="true"/>
              <module name="com.sun.jsf-impl" slot="1.2" export="true"/>
            </dependencies>
      </deployment>
        <sub-deployment name="workflow.war">

          <exclusions>

              <module name="javax.faces.api" slot="main"/>

              <module name="com.sun.jsf-impl" slot="main"/>

            </exclusions>

            <dependencies>

              <module name="javax.faces.api" slot="1.2"/>

              <module name="com.sun.jsf-impl" slot="1.2"/>

            </dependencies>

      </sub-deployment>

       
    </jboss-deployment-structure>

  • 3. Re: Trouble deploying seam 2.1.2 richfaces 3.3.3 app on JBoss AS 7
    Sascha Janz Master

    i moved all rich*.jar jboss-seam*.jar to the ear deployment.

     

    then my ear file gets deployed.

     

    but pages are rendered without richfaces as simple text.

     

    and  when i access the login page

     

    javax.servlet.ServletException: Function 'rich:element' not found
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
    org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
    org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
    org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
    org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

  • 4. Re: Trouble deploying seam 2.1.2 richfaces 3.3.3 app on JBoss AS 7
    Sascha Janz Master

    ok...moved jsf-faclet.jar also to the ear. now it seams to work.