Hi Zdeněk,

I tried also to modify the bridge to run it with tomahawk 1.1.5
the changes are not major
i just changed getBufferedResponseStream
to :
 log.debug("Entering
BufferedResponseStreamFactory.getBufferedResponseStream()");
        FacesContext context = FacesContext.getCurrentInstance();
        if (context == null) {
            throw new IllegalStateException("FacesContext is null.");
        }
BufferedResponseStream stream = (BufferedResponseStream)
context.getExternalContext()
                   
.getSessionMap().get(FacesResponseConstants.BUFFERED_RESPONSE_STREAM);
        
        if(stream == null)
            stream = (BufferedResponseStream) context.getExternalContext()
                   
.getRequestMap().get(FacesResponseConstants.BUFFERED_RESPONSE_STREAM);

return stream;
 
Now I don't get any Errors.
But I think Tomahawk is not running correctly...
When I try to use t:panelTabbedPane or t:inputCalendar - they get loaded but
I have the impression
that the JavaScripts doesn't work really...(so for example the Button in
inoutCalender doesn't produce any popups)

I don't know if it is possible, but can you tell me what you have changed in
the bridge?

and i also get these in my error, any suggestions?

2007-04-26 16:49:09,609 ERROR [org.apache.myfaces.config.FacesConfigurator]
- You are using the MyFaces-package : tomahawk in different versions; first
(and probably used) version is : 1.1.5, currently encountered version is :
bridge-0.9.1. This will cause undesired behaviour. Please clean out your
class-path. The first encountered version is loaded from :
file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp2676MileStoneBeta-exp.war/WEB-INF/lib/tomahawk-1.1.5.jar.
The currently encountered version is loaded from :
jar:file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp2676MileStoneBeta-exp.war/WEB-INF/lib/tomahawk-bridge-0.9.1.jar!/META-INF/MANIFEST.MF
2007-04-26 16:49:09,609 INFO [org.apache.myfaces.config.FacesConfigurator] -
Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path :
file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp2676MileStoneBeta-exp.war/WEB-INF/lib/myfaces-api-1.1.5.jar
2007-04-26 16:49:09,609 INFO [org.apache.myfaces.config.FacesConfigurator] -
Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path :
file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp2676MileStoneBeta-exp.war/WEB-INF/lib/myfaces-impl-1.1.5.jar
2007-04-26 16:49:09,609 INFO [org.apache.myfaces.config.FacesConfigurator] -
MyFaces-package : tomahawk-sandbox not found.
2007-04-26 16:49:09,609 INFO [org.apache.myfaces.config.FacesConfigurator] -
Starting up MyFaces-package : tomahawk in version : 1.1.5 from path :
file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp2676MileStoneBeta-exp.war/WEB-INF/lib/tomahawk-1.1.5.jar

regards Omid

Zdeněk Sochor wrote:
> 
> Hi,
>   i see several errors.
> 
> 1. you're mapping jsp, NOT jsf (replace to *.jsf or add new mapping) in:
> 
> <filter-mapping>
>       <filter-name>MyFacesExtensionsFilter</filter-name>
>       <url-pattern>*.jsp</url-pattern>
> </filter-mapping>
> 
> 2. using Tomahawk in portlets is not so easy due to massive use of 
> JavaScript and whole ExtensionFilter stuff.
> To make Tomahawk work in portlets you need bridge. We're using modified
> one:
> 
> http://palab.blogspot.com/2007/01/tomahawk-bridge-091-released.html
> 
> (modification makes it work with Tomahawk 1.1.5)
> 
> Regards,
>   Zdenek
> 
> omidh napsal(a):
> 
>>Hi all,
>>I have a problem with Tomahawk 1.1.5-SNAPSHOT and MyFaces 1.1.5.
>>When I try to use a t:panelTabbedPane I get the following Error:
>>
>>2007-04-13 17:03:41,750 INFO
>>[org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] - Starting up
>>Tomahawk on the MyFaces-JSF-Implementation
>>2007-04-13 17:03:41,765 ERROR
>>[org.jboss.portal.server.servlet.CommandFilter] - Exception in command
>>invocation
>>org.apache.jasper.JasperException: ExtensionsFilter not correctly
>>configured. JSF mapping missing. JSF pages not covered. Please see:
>>http://myfaces.apache.org/tomahawk/extensionsFilter.html
>>      at
>>org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
>>      at
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
>>      at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>>      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>      at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>      at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>      at
>>org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:85)
>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>      at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>      at java.lang.reflect.Method.invoke(Method.java:597)
>>      at
>>org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:66)
>>      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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>>      at
>>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>>      at
>>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>>      at
>>org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:106)
>>      at
>>org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:167)
>>      at
>>org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:175)
>>...
>>
>>here is my web.xml configuration:
>>
>><?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>MilestonePortletBeta</display-name>
>>
>>      <context-param>
>>              <param-name>log4jConfigLocation</param-name>
>>              <param-value>/WEB-INF/log4j.properties</param-value>
>>      </context-param>
>>      
>>      <context-param>
>>              <param-name>contextConfigLocation</param-name>
>>              <param-value>
>>                      /WEB-INF/context/applicationContext.xml
>>              </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>
>> -->
>>      <context-param>
>>              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>>              <param-value>client</param-value>
>>      </context-param>
>>
>>      <listener>
>>              <listener-class>
>>                      org.springframework.web.util.Log4jConfigListener
>>              </listener-class>
>>      </listener>
>>      
>>      <listener>
>>              <listener-class>
>>                      org.springframework.web.context.ContextLoaderListener
>>              </listener-class>
>>      </listener>
>>
>>      <listener>
>>              <listener-class>
>>                      org.apache.myfaces.webapp.StartupServletContextListener
>>              </listener-class>
>>      </listener>
>>      
>>      <!-- SPRING WEITERLEITUNG -->
>>      <filter>
>>              <filter-name>RequestContextFilter</filter-name>
>>              <filter-class>
>>                      org.springframework.web.filter.RequestContextFilter
>>              </filter-class>
>>      </filter>
>>      
>>      <filter-mapping>
>>              <filter-name>RequestContextFilter</filter-name>
>>              <servlet-name>Faces Servlet</servlet-name>
>>      </filter-mapping>
>>      
>>      <!-- ACEGI -->
>>      <filter>
>>              <filter-name>AcegiSecurityFilter</filter-name>
>>              <filter-class>
>>                      org.acegisecurity.util.FilterToBeanProxy
>>              </filter-class>
>>              <init-param>
>>                      <param-name>targetBean</param-name>
>>                      <param-value>acegiFilterChainProxy</param-value>
>>              </init-param>
>>      </filter>
>>
>>      <filter-mapping>
>>              <filter-name>AcegiSecurityFilter</filter-name>
>>              <url-pattern>/*</url-pattern>
>>              <dispatcher>FORWARD</dispatcher>
>>              <dispatcher>REQUEST</dispatcher>
>>      </filter-mapping>
>>      
>>      <!-- END ACEGI -->
>>
>>      <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>
>>      
>>      <!-- MyFaces Tomahowk 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>
>>              <description>Set the size limit for uploaded files.
>>              Format: 10 - 10 bytes
>>                          10k - 10 KB
>>                      10m - 10 MB
>>                      1g - 1 GB
>>              </description>
>>      </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 -->
>>      <servlet-name>Faces Servlet</servlet-name>
>>      </filter-mapping>
>>
>>      <!-- extension mapping for serving page-independent resources
(javascript,
>>stylesheets, images, etc.)  -->
>>      <filter-mapping>
>>      <filter-name>MyFacesExtensionsFilter</filter-name>
>>      <url-pattern>/WEB-INF/jsp/*</url-pattern>
>>      </filter-mapping>
>>      
>>      <!-- extension mapping for adding <script/>, <link/>, and other resource
>>tags to JSF-pages  -->
>>      <filter-mapping>
>>      <filter-name>MyFacesExtensionsFilter</filter-name>
>>      <url-pattern>*.jsp</url-pattern>
>>      </filter-mapping>
>>      
>>      <filter-mapping>
>>        <filter-name>MyFacesExtensionsFilter</filter-name>
>>      <url-pattern>*.faces</url-pattern>
>>    </filter-mapping>
>>    
>>    <filter-mapping>
>>      <filter-name>MyFacesExtensionsFilter</filter-name>
>>        <url-pattern>/faces/*</url-pattern>
>>    </filter-mapping>
>>    
>>      
>>      
>>      <servlet>
>>              <servlet-name>FCK Faces Servlet</servlet-name>
>>              <servlet-class>org.fckfaces.util.Servlet</servlet-class>
>>              <load-on-startup>1</load-on-startup>
>>      </servlet>
>>      
>>      <servlet-mapping>
>>              <servlet-name>FCK Faces Servlet</servlet-name>
>>              <url-pattern>/fckfaces/*</url-pattern>
>>      </servlet-mapping>
>>      
>>
>>      <welcome-file-list>
>>              <welcome-file>index.html</welcome-file>
>>      </welcome-file-list>
>>      
>></web-app>
>>
>>any suggestions?
>>
>>thanks in advance,
>>OmidH
>>  
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ExtensionsFilter-not-correctly-configured-tf3571200.html#a10198712
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to