You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "ved.gunjan" <ve...@yahoo.com> on 2006/06/27 05:35:48 UTC

Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mapping

Hi Experts,
  I new to the world of JSF and im presently playing around with 
MyFaces Tomhawk implementation.
I tried the tree example using tomahawk.jar ,myfaces-api and 
myfaces-impl.
  I was able to get the tree working with these version of jars.
   
  But now when i upgraded to  the latest jars i.e 
myfaces-api 1.1.3
myfaces-imple1.1.3 and
tomahawk-1.1.3
   
  I'm using the <t:div> tag and has a <jsp:include /> in side it.
  Her's a snapshot of JSP.
   
  <!-- tomahawk component -->
  <t:panelGrid width="100%" columns="1" styleClass="allborders" >
  
  <t:div id="generalTab" style="display: block;" forceId="true" >
  <jsp:include page="general.jsp" /> 
  </t:div>
  
  <t:div id="designTab" style="display: none;" forceId="true" >
  <jsp:include page ="design.jsp" /> 
  </t:div>
  
  <t:div id="requirementTab" style="display: none;" forceId="true">
  <jsp:include page ="requirement.jsp" /> 
  </t:div>
  
  </t:panelGrid> 
   
  This works fine with old jars but with new tomahawk1.1.3 jars , i'm 
getting the following error...see the stack trace below:
   
  java.lang.IllegalStateException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html
 
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
 
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
 
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
 
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)
 
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:152)
 
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
  I googled for this also did the required changes.
here are the links i visited.
1) http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3
  
2) http://www.mail-archive.com/users@myfaces.apache.org/msg23110.html
  
3) http://www.mail-archive.com/users@myfaces.apache.org/msg23094.html
   
   
  Here's my web.xml
  <?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 <context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>client</param-value>
 </context-param>
   <context-param>
  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
  <param-value>true</param-value>
 </context-param>
   <context-param>
  <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
  <param-value>false</param-value>
 </context-param>
   <context-param>
  <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
  <param-value>true</param-value>
 </context-param>
   <context-param>
  <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
  <param-value>true</param-value>
   </context-param>
   <context-param>
  <param-name>javax.faces.CONFIG_FILES</param-name>
  <param-value>/WEB-INF/faces-config.xml</param-value>
 </context-param>
   <!--  The following listener is needed when using the Apache MyFaces
  JSF implementation -->
   <listener>
  
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
 </listener>
   <!-- Extensions Filter -->
 <filter>
  <filter-name>MyFacesExtensionsFilter</filter-name>
    
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  <init-param>
   <param-name>maxFileSize</param-name>
   <param-value>20m</param-value>
  </init-param>
 </filter>
   <!-- extension mapping for adding <script/>, <link/>, and other 
resource
  tags to JSF-pages  -->
 <filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <!-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry -->
  <url-pattern>*.jsp</url-pattern>
 </filter-mapping>
   <!-- extension mapping for serving page-independent resources 
(javascript,
  stylesheets, images, etc.)  -->
 <filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
 </filter-mapping>
 <!-- Extensions Filter -->
 
 <servlet>
  <servlet-name>Faces Servlet</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
 </servlet>
   <servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>*.faces</url-pattern>
 </servlet-mapping>
</web-app>
   
  
Please help me out in fixing this exception.....im sure lot of people 
must have encountered this exception.
   
   
  Thanks
  Ved


 		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

RE: Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mapping

Posted by "ved.gunjan" <ve...@yahoo.com>.
Thanks for the reply Rick...
  I had my include file in subview only..
  Here's snapshot of the  the included jsp.

  <f:subview id="generalInclude">
   
  <!--  tree  starts --->
  <h:panelGrid columns="2" border="1" >
                    <t:tree2 id="serverTree"
                             value="#{solutionTreeHandler.treeModel.treeData}"
                             var="node" varNodeToggler="tree"
                             clientSideToggle="false"
                             >
                        <f:facet name="sol">
                            <h:panelGroup>
                                <t:graphicImage value="/images/open.png"
                                                rendered="#{tree.nodeExpanded}" />
                                <t:graphicImage value="/images/closed.png"
                                                rendered="#{!tree.nodeExpanded}"/>
                                <h:outputText value="Class"
                                              styleClass="nodeFolder"/>
                                <h:outputText value="#{node.description}"
                                              styleClass="nodeFolder"/>
                            </h:panelGroup>
  
       <h:commandLink action="nodeClicked"
                                               actionListener="#{classTreeHandler.excute}"
                                               value="#{node.description}"
                                               immediate="true">
            
           </h:commandLink>
                        </f:facet>
     ..........................
   .............................
   ................
     </f:subview>
   
  Please guide me as to where im going wrong, as i'm in a very bad shape...
  
Rick <ri...@arc-mind.com> wrote:
        v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}                Try putting the include inside of a f:subview.
   
      
---------------------------------
  
  From: ved.gunjan [mailto:ved.gunjan@yahoo.com] 
Sent: Monday, June 26, 2006 8:36 PM
To: users@myfaces.apache.org
Subject: Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mapping

   
  Hi Experts,
  I new to the world of JSF and im presently playing around with 
MyFaces Tomhawk implementation.
I tried the tree example using tomahawk.jar ,myfaces-api and 
myfaces-impl.
  I was able to get the tree working with these version of jars.
   
  But now when i upgraded to  the latest jars i.e 
myfaces-api 1.1.3
myfaces-impl1.1.3 and
tomahawk-1.1.3
   
  I'm using the <t:div> tag and has a <jsp:include /> in side it.
  Her's a snapshot of JSP.
   
  <!-- tomahawk component -->
  <t:panelGrid width="100%" columns="1" styleClass="allborders" >
  
  <t:div id="generalTab" style="display: block;" forceId="true" >
  <jsp:include page="general.jsp" /> 
  </t:div>
  
  <t:div id="designTab" style="display: none;" forceId="true" >
  <jsp:include page ="design.jsp" /> 
  </t:div>
  
  <t:div id="requirementTab" style="display: none;" forceId="true">
  <jsp:include page ="requirement.jsp" /> 
  </t:div>
  
  </t:panelGrid> 
   
  This works fine with old jars but with new tomahawk1.1.3 jars , i'm 
getting the following error...see the stack trace below:
   
  java.lang.IllegalStateException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html

org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:152)

javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
  I googled for this also did the required changes.
here are the links i visited.
1) http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3
  
2) http://www.mail-archive.com/users@myfaces.apache.org/msg23110.html
  
3) http://www.mail-archive.com/users@myfaces.apache.org/msg23094.html
   
   
  Here's my web.xml
  <?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>client</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
  <param-value>true</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
  <param-value>false</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
  <param-value>true</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
  <param-value>true</param-value>
   </context-param>
   <context-param>
  <param-name>javax.faces.CONFIG_FILES</param-name>
  <param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
   <!--  The following listener is needed when using the Apache MyFaces
  JSF implementation -->
   <listener>
  
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
   <!-- Extensions Filter -->
<filter>
  <filter-name>MyFacesExtensionsFilter</filter-name>
    
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  <init-param>
   <param-name>maxFileSize</param-name>
   <param-value>20m</param-value>
  </init-param>
</filter>
   <!-- extension mapping for adding <script/>, <link/>, and other 
resource
  tags to JSF-pages  -->
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <!-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry -->
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>
   <!-- extension mapping for serving page-independent resources 
(javascript,
  stylesheets, images, etc.)  -->
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<!-- Extensions Filter -->

<servlet>
  <servlet-name>Faces Servlet</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
   <servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
   
  
Please help me out in fixing this exception.....im sure lot of people 
must have encountered this exception.
   
   
  Thanks
  Ved
    
    
---------------------------------
  
  Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.



 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

RE: Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured. JSF mapping

Posted by Rick <ri...@arc-mind.com>.
Try putting the include inside of a f:subview.

 

  _____  

From: ved.gunjan [mailto:ved.gunjan@yahoo.com] 
Sent: Monday, June 26, 2006 8:36 PM
To: users@myfaces.apache.org
Subject: Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly
configured. JSF mapping

 

Hi Experts,
  I new to the world of JSF and im presently playing around with 
MyFaces Tomhawk implementation.
I tried the tree example using tomahawk.jar ,myfaces-api and 
myfaces-impl.
  I was able to get the tree working with these version of jars.
   
  But now when i upgraded to  the latest jars i.e 
myfaces-api 1.1.3
myfaces-imple1.1.3 and
tomahawk-1.1.3
   
  I'm using the <t:div> tag and has a <jsp:include /> in side it.
  Her's a snapshot of JSP.
   
  <!-- tomahawk component -->
  <t:panelGrid width="100%" columns="1" styleClass="allborders" >
  
  <t:div id="generalTab" style="display: block;" forceId="true" >
  <jsp:include page="general.jsp" /> 
  </t:div>
  
  <t:div id="designTab" style="display: none;" forceId="true" >
  <jsp:include page ="design.jsp" /> 
  </t:div>
  
  <t:div id="requirementTab" style="display: none;" forceId="true">
  <jsp:include page ="requirement.jsp" /> 
  </t:div>
  
  </t:panelGrid> 
   
  This works fine with old jars but with new tomahawk1.1.3 jars , i'm 
getting the following error...see the stack trace below:
   
  java.lang.IllegalStateException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: 
 <http://myfaces.apache.org/tomahawk/extensionsFilter.html>
http://myfaces.apache.org/tomahawk/extensionsFilter.html

org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFil
terMissing(AddResourceFactory.java:371)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(A
ddResourceFactory.java:333)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddRes
ourceFactory.java:288)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRe
nderer.java:611)

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRendere
r.java:152)

javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
  I googled for this also did the required changes.
here are the links i visited.
1)  <http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3>
http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3
  
2)  <http://www.mail-archive.com/users@myfaces.apache.org/msg23110.html>
http://www.mail-archive.com/users@myfaces.apache.org/msg23110.html
  
3)  <http://www.mail-archive.com/users@myfaces.apache.org/msg23094.html>
http://www.mail-archive.com/users@myfaces.apache.org/msg23094.html
   
   
  Here's my web.xml
  <?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns=" <http://java.sun.com/xml/ns/j2ee>
http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi=" <http://www.w3.org/2001/XMLSchema-instance>
http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation=" <http://java.sun.com/xml/ns/j2ee>
http://java.sun.com/xml/ns/j2ee 
 <http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd>
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>client</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
  <param-value>true</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
  <param-value>false</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
  <param-value>true</param-value>
</context-param>
   <context-param>
  <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
  <param-value>true</param-value>
   </context-param>
   <context-param>
  <param-name>javax.faces.CONFIG_FILES</param-name>
  <param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
   <!--  The following listener is needed when using the Apache MyFaces
  JSF implementation -->
   <listener>
  
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</lis
tener-class>
</listener>
   <!-- Extensions Filter -->
<filter>
  <filter-name>MyFacesExtensionsFilter</filter-name>
    
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-clas
s>
  <init-param>
   <param-name>maxFileSize</param-name>
   <param-value>20m</param-value>
  </init-param>
</filter>
   <!-- extension mapping for adding <script/>, <link/>, and other 
resource
  tags to JSF-pages  -->
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <!-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry -->
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>
   <!-- extension mapping for serving page-independent resources 
(javascript,
  stylesheets, images, etc.)  -->
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<!-- Extensions Filter -->

<servlet>
  <servlet-name>Faces Servlet</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
   <servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
   
  
Please help me out in fixing this exception.....im sure lot of people 
must have encountered this exception.
   
   
  Thanks
  Ved

  

  _____  

Do you Yahoo!?
Get on board. You're
<http://us.rd.yahoo.com/evt=40791/*http:/advision.webevents.yahoo.com/handra
isers>  invited to try the new Yahoo! Mail Beta.