Hello!

I had a JSF 1.1 App running (well :) with the Sun implementation.

Now I would like to use tree2 components, and therefore I put the
tomahawk-1.1.3.jar into the "WEB-INF\lib" folder of my project, added the
corresponding entries in the web.xml and in the corresponding jsp.

Now, after restarting Tomcat (5.0) I am getting an 

IllegalArgumentException: Filter mapping specifies an unknown filter name
MyFacesExtensionsFilter
for the application while starting Tomcat, so the app is not being loaded
and therefore I am not even coming to the page with the tree2. The requested
resource (/XYApp/) is not available says the browser. 

All works otherwise perfectly without the Tomahawk entries in the web.xml.

Following my configuration: 

___________________________

web.xml:
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>

    <display-name>XY Application</display-name>
    <description> XY Application </description>

    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>

    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
        <description>
            Set this flag to true if you want the JavaServer Faces
            Reference Implementation to validate the XML in your
            faces-config.xml resources against the DTD.  Default
            value is false.
        </description>
    </context-param>

    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>true</param-value>
        <description>
            Set this flag to true if you want the JavaServer Faces
            Reference Implementation to verify that all of the application
            objects you have configured (components, converters,
            renderers, and validators) can be successfully created.
            Default value is false.
        </description>
    </context-param>

    <!-- Tomahawk -->
    <filter>
      <filter-name>extensionsFilter</filter-name>
     
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
        <param-name>uploadMaxFileSize</param-name>
        <param-value>100m</param-value>
        <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB</description>
      </init-param>
      <init-param>
        <param-name>uploadThresholdSize</param-name>
        <param-value>100k</param-value>
        <description>Set the threshold size - files
                    below this limit are stored in memory, files above
                    this limit are stored on disk.

                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB</description>
      </init-param>
    </filter> 
    <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
        <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>
    <!-- 
     /Tomahawk -->

    <!-- 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>

    <!-- Chart Servlet -->
        <servlet>
            <servlet-name>CewolfServlet</servlet-name>
            <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
        </servlet>

    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/tubut/*</url-pattern>
    </servlet-mapping>

    <!-- Chart Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>CewolfServlet</servlet-name>  
                <url-pattern>/cewolf/*</url-pattern>
        </servlet-mapping>

    <security-constraint>
         <!-- This security constraint illustrates how JSP pages 
             with JavaServer Faces components can be protected from
             being accessed without going through the Faces Servlet.
             The security constraint ensures that the Faces Servlet will
             be used or the pages will not be processed. -->
        <display-name>Restrict access to JSP pages</display-name>
        <web-resource-collection>
            <web-resource-name>
                Restrict access to JSP pages
            </web-resource-name>
            <url-pattern>/rootPage.jsp</url-pattern>
            <url-pattern>/xy.jsp</url-pattern>
            <url-pattern>/xyxy.jsp</url-pattern>
            <url-pattern>/yxyx.jsp</url-pattern>
            <url-pattern>/yx.jsp</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <description>
                With no roles defined, no access granted
            </description>
        </auth-constraint>
    </security-constraint>

</web-app>
___________________________
___________________________
jars included in the project:

batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
ifxjdbc.jar
ifxsqlj.jar
jcommon-1.0.0-pre2.jar
jfreechart-1.0.0-pre2-demo.jar
jfreechart-1.0.0-pre2.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
ojdbc14.jar
poi-2.5.1-final-20040804.jar
standard.jar
tomahawk-1.1.3.jar
___________________________

I have two candidates for the problem: 
1- conflicting jar files
2- bad web.xml declaration


1- I deleted the work folder of the app, because I had (in the past) old
myFaces jars (which I am not using currently). similar prob:
(http://mail-archives.apache.org/mod_mbox/myfaces-users/200504.mbox/[EMAIL 
PROTECTED])

2- I change the url entry in the tomahawk section from /faces/ to /tubut/
(tubut is the url I use for the Faces Servlet in this app)

No positive result with those approaches (and others I also tried...).

[ As soon as I comment out the Tomahawk entries in the web.xml the app works
again
, until I come to the page with the tree2 and then I get a
NullPointerException:
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:144)

since I dont have the entry in web.xml... ]

Any hint welcome!!
Thanks
-- 
View this message in context: 
http://www.nabble.com/IllegalArgumentException-while-integrating-Tomahawk-1.1.3-in-JSF-1.1-tf2866402.html#a8010684
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to