3 Replies Latest reply on Nov 13, 2007 6:29 AM by jeffbc

    Help! Getting

    parki

      Hello - any help appreciated.

      I'm running JBoss4.2.1GA on a Mac (Java 1.5.0_07). I have a simple web app running, and I'm trying to get the richfaces stuff working - I'm following this doc:

      http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html_single/index.html

      When I start up JBoss with this war file deployed, no problem.

      If I add in the following (as per the doc):


      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>


      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      then I get an error on startup of JBoss:

      ...
      ...
      23:03:33,748 INFO [A] Bound to JNDI name: queue/A
      23:03:33,751 INFO [B] Bound to JNDI name: queue/B
      23:03:33,754 INFO [C] Bound to JNDI name: queue/C
      ...
      23:03:35,065 INFO [TomcatDeployer] deploy, ctxPath=/testservlet, warUrl=.../tmp/deploy/tmp58278testservlet-exp.war/
      23:03:35,329 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
      23:03:35,338 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, org.richfaces.SKIN=blueSky}
      23:03:35,339 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
      23:03:35,629 ERROR [[/testservlet]] Exception starting filter richfaces
      java.lang.IllegalStateException: Filter mapping for chameleon filter richfaces do not contain wilcard prefix or suffix
      at org.ajax4jsf.webapp.WebXml.setFilterName(WebXml.java:408)
      at org.ajax4jsf.webapp.WebXml.init(WebXml.java:164)
      ...
      ...

      The jar files 'richfaces-api-3.1.0.jar', 'richfaces-impl-3.1.0.jar', 'richfaces-ui-3.1.0.jar', 'commons-beanutils.jar', 'commons-digester-1.8.jar' are bundled with the war file.

      Any ideas?

      Help appreciated.

      Cheers,

      parki...


        • 1. Re: Help! Getting

          How you Faces Servlet defined?

          • 2. Re: Help! Getting
            parki

            Hi Sergey:

            Thanks - I get it - updated to define the Faces Servlet - JBoss is now launching without any errors in the log files - happiness.

            Now, when I launch JBoss, it launches an application - on the Mac, I get a MenuBar org.jboss.Main - this is very annoying - can I turn this off?

            I'm day #1 with JBoss - this is great stuff.

            Really interested in getting JSF working - looks nice.

            Cheers,

            parki...

            • 3. Re: Help! Getting
              jeffbc

              Hi parki and Sergey,

              I am getting the same exception. How did you updated your web.xml to define your Faces Servlet?

              I am trying to run it under Glassfish v1 (running JSF 1.2), Java Version 1.6.0_03 on Ubuntu. My WAR is bundled with these JARs:
              richfaces-impl-3.1.2.GA.jar
              richfaces-ui-3.1.2.GA.jar
              richfaces-api-3.1.2.GA.jar
              commons-collections-3.2.jar
              commons-logging-1.1.jar
              commons-beanutils.jar
              commons-digester-1.8.jar

              The web.xml is like this way:

              <?xml version="1.0" encoding="UTF-8"?>
              
              <web-app xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
               version="2.5">
              
               <display-name>a4jEchoText</display-name>
              
               <context-param>
               <param-name>org.richfaces.SKIN</param-name>
               <param-value>blueSky</param-value>
               </context-param>
               <filter>
               <display-name>RichFaces Filter</display-name>
               <filter-name>richfaces</filter-name>
               <filter-class>org.ajax4jsf.Filter</filter-class>
               </filter>
               <filter-mapping>
               <filter-name>richfaces</filter-name>
               <servlet-name>Faces Servlet</servlet-name>
               <dispatcher>REQUEST</dispatcher>
               <dispatcher>FORWARD</dispatcher>
               <dispatcher>INCLUDE</dispatcher>
               </filter-mapping>
               <listener>
               <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
               </listener>
              
              
              
               <!-- Faces Servlet -->
               <servlet>
               <servlet-name>Faces Servlet</servlet-name>
               <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
              
               <context-param>
               <param-name>com.sun.faces.verifyObjects</param-name>
               <param-value>true</param-value>
               </context-param>
               <context-param>
               <param-name>com.sun.faces.validateXml</param-name>
               <param-value>true</param-value>
               </context-param>
               <context-param>
               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
               <param-value>client</param-value>
               </context-param>
              
              
               <session-config>
               <session-timeout>
               30
               </session-timeout>
               </session-config>
               <welcome-file-list>
               <welcome-file>
               index.jsp
               </welcome-file>
               </welcome-file-list>
              </web-app>
              


              Any help is appreciated.

              Cheers,
              Jeff.