myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spettini <stefanopett...@planecom.it>
Subject Re: WPS5 and MyFaces
Date Fri, 03 Nov 2006 10:31:03 GMT

Hi pals,
I look at your thread just 10 min ago, no one of the a and b option help me. 
I have the same jar you have and the same web.xml, i don't understand where
it doesn't work. Maybe the class path and the ibm jars!
If i find a solution i'll send you the trick.


pals wrote:
> 
> Hi Spettini,
> 
> I am also facing the problem currently with WPS5.1 and Tomahawk1.1.3.
> you can see the link to my post here:
> http://www.nabble.com/How-to-add-tomahawk-support-to-a-Sun-JSF-RI-application-tf2550561.html
> 
> a)One of the possible suggestions that i got was to set the class loader
> mode to PARENT LAST for your  application.
> b)Use the declaration :
> <filter-name>extensionsFilter</filter-name >
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</
> filter-class> instead of
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
> as this class is deprecated.
> 
> I hope it can help you.
> I shall be watching for any further answers and let you know.
> As we both are sailing in the same boat.
> 
> Best Regards,
> Pallavi
> 
> 
> Spettini wrote:
>> 
>> Jeff
>> now i catch the problem, next i show you the file i have in lib dir
>> 
>> commons-beanutils-1.7.0.jar
>> commons-beanutils.jar
>> commons-codec-1.3.jar
>> commons-collections-3.1.jar
>> commons-collections.jar
>> commons-digester-1.6.jar
>> commons-digester.jar
>> commons-el-1.0.jar
>> commons-lang-2.1.jar
>> jaxen-full.jar
>> jsf-ibm.jar
>> jsf-portlet.jar
>> jsf-wp.jar
>> jstl.jar
>> jstl_el.jar
>> myfaces-api-1.1.4.jar
>> myfaces-impl-1.1.4.jar
>> saxpath.jar
>> standard.jar
>> taglibs-datetime.jar
>> taglibs-mailer.jar
>> taglibs-string.jar
>> tomahawk-1.1.3.jar
>> utility.jar
>> 
>> as you can see i have only one jsf impl an one jsf api 
>> myfaces-api-1.1.4.jar
>> myfaces-impl-1.1.4.jar
>> 
>> in 
>> 
>> jsf-ibm.jar
>> jsf-portlet.jar
>> jsf-wp.jar
>> 
>> i don't have any javax pachage an so no other RI
>> 
>> when i access to the jsf ( wps portlet ) without myfaces jsf tag all run
>> ok, but when i add a myfaces tag i get again the message
>> java.lang.IllegalStateException: ExtensionsFilter not correctly
>> configured. JSF mapping missing. JSF pages not covered. Please see:
>> http://myfaces.apache.org/tomahawk/extensionsFilter.html
>> 
>> Where i fail?
>> 
>> 
>> 
>> Jeff Bischoff wrote:
>>> 
>>> Spettini,
>>> 
>>> The problem here is that you are confused into thinking that you need to 
>>> include the associated JSF implementation (e.g. Myfaces Core) in order 
>>> to use a component libary (e.g. Myfaces Tomahawk). You can use Tomahawk 
>>> with other implementations of JSF, but in that case you must not include 
>>> the Myfaces implementation of JSF (i.e. myfaces-impl.jar &
>>> myfaces-api.jar).
>>> 
>>> Matthias summed this up nicely a few months ago, see [1]. No need to 
>>> make him repeat himself.
>>> 
>>> Basically, you need to pick either:
>>> 
>>> - the RI -
>>> OR
>>> - ibm's jsf impl -
>>> OR
>>> - myfaces core -
>>> 
>>> You can still include the Tomahawk library, and use components like 
>>> t:inputDate. I'm guessing you're stuck with whatever implementation IBM 
>>> requires for Websphere Portals, but the bottom line is don't add Myfaces 
>>> Core to the mix.
>>> 
>>> [1] 
>>> http://www.nabble.com/RE%3A-Trying-to-work-with-Tomahawk-Tabbed-Panes-tf1764054.html#a4802858
>>> 
>>> Regards,
>>> 
>>> Jeff Bischoff
>>> Kenneth L Kurz & Associates, Inc.
>>> 
>>> Spettini wrote:
>>>> I'm a bit confused, can't i use the ibm implementation hx tag and
>>>> myfaces
>>>> implementation t tag together?
>>>> I already developed the application using sun and ibm faces but now i
>>>> need
>>>> something else eg. <t:popup and t:tree2
>>>> How can i resolve this matter?
>>>> 
>>>> 
>>>> 
>>>> Matthias Wessendorf-4 wrote:
>>>>> you have somethings here
>>>>>
>>>>> .jsp as mapping (.jsf you mean, right)
>>>>>
>>>>> you mix three JSF-Impl
>>>>>
>>>>> myfaces
>>>>>
>>>>> sun
>>>>>                        com.sun.faces.config.ConfigureListener
>>>>>
>>>>> ibm
>>>>>                        com.ibm.faces.webapp.JSResourceServlet
>>>>>
>>>>> that should be cleaned up :)
>>>>>
>>>>> On 10/30/06, Spettini <stefanopettini@planecom.it> wrote:
>>>>>> Hi
>>>>>> I'm newbie in wps5 and myfaces, i'm trying to force them (and jsf)
>>>>>> working
>>>>>> together but all i have is this error
>>>>>> when i call <t:popup
>>>>>> java.lang.IllegalStateException: ExtensionsFilter not correctly
>>>>>> configured.
>>>>>> JSF mapping missing. JSF pages not covered. Please see:
>>>>>> http://myfaces.apache.org/tomahawk/extensionsFilter.html
>>>>>>
>>>>>> My web.xml is
>>>>>>
>>>>>> <?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 id="WebApp_ID">
>>>>>>         <display-name>Curricula di test</display-name>
>>>>>>         <context-param>
>>>>>>                
>>>>>> <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name>
>>>>>>                 <param-value>true</param-value>
>>>>>>                 <description>
>>>>>>                         Monitors Faces JSP files for modifications
>>>>>> and
>>>>>> synchronizes
>>>>>>                         a running server with the changes without
>>>>>> restarting the
>>>>>>                         server. If this parameter is set to false
or
>>>>>> removed from
>>>>>>                         the deployment descriptor, any changes made
>>>>>> to
>>>>>> Faces JSP
>>>>>>                         files may not be seen by the server until
it
>>>>>> is
>>>>>> restarted.
>>>>>>                         This parameter is usually set to true while
>>>>>> the
>>>>>> Faces JSP
>>>>>>                         files are being developed and debugged in
>>>>>> order
>>>>>> to improve
>>>>>>                         the performance of the development
>>>>>> environment.
>>>>>>                 </description>
>>>>>>         </context-param>
>>>>>>         <context-param>
>>>>>>                 <param-name>
>>>>>>                         com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP
>>>>>>                 </param-name>
>>>>>>                 <param-value>true</param-value>
>>>>>>                 <description></description>
>>>>>>         </context-param>
>>>>>>         <filter>
>>>>>>
>>>>>>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>>>>>>
>>>>>>                 <filter-class>
>>>>>>                        
>>>>>> org.apache.myfaces.component.html.util.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>
>>>>>>
>>>>>>         <filter-mapping>
>>>>>>
>>>>>>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>>>>>>
>>>>>>                 <url-pattern>*.jsp</url-pattern>
>>>>>>
>>>>>>         </filter-mapping>
>>>>>>
>>>>>>         <filter-mapping>
>>>>>>
>>>>>>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>>>>>>
>>>>>>                 <url-pattern>/wps/*</url-pattern>
>>>>>>
>>>>>>         </filter-mapping>
>>>>>>
>>>>>>         <listener>
>>>>>>
>>>>>>                 <listener-class>
>>>>>>                         com.sun.faces.config.ConfigureListener
>>>>>>                 </listener-class>
>>>>>>
>>>>>>         </listener>
>>>>>>
>>>>>>         <servlet>
>>>>>>
>>>>>>                 <servlet-name>JS Resource Servlet</servlet-name>
>>>>>>
>>>>>>                 <servlet-class>
>>>>>>                         com.ibm.faces.webapp.JSResourceServlet
>>>>>>
>>>>>>                 </servlet-class>
>>>>>>
>>>>>>                 <load-on-startup>-1</load-on-startup>
>>>>>>
>>>>>>         </servlet>
>>>>>>         <servlet id="Servlet_1154680887328">
>>>>>>                
>>>>>> <servlet-name>curriculatest.CurriculaTestPortlet</servlet-name>
>>>>>>                
>>>>>> <display-name>curriculatest.CurriculaTestPortlet</display-name>
>>>>>>                 <servlet-class>
>>>>>>                         com.ibm.faces.webapp.WPFacesGenericPortlet
>>>>>>                 </servlet-class>
>>>>>>         </servlet>
>>>>>>
>>>>>>         <servlet-mapping>
>>>>>>
>>>>>>                 <servlet-name>JS Resource Servlet</servlet-name>
>>>>>>
>>>>>>                 <url-pattern>/.ibmjsfres/*</url-pattern>
>>>>>>
>>>>>>         </servlet-mapping>
>>>>>>
>>>>>>
>>>>>>         <servlet-mapping>
>>>>>>                
>>>>>> <servlet-name>curriculatest.CurriculaTestPortlet</servlet-name>
>>>>>>                
>>>>>> <url-pattern>/curriculatest.CurriculaTestPortlet/*</url-pattern>
>>>>>>         </servlet-mapping>
>>>>>>         <welcome-file-list>
>>>>>>                 <welcome-file>index.html</welcome-file>
>>>>>>                 <welcome-file>index.htm</welcome-file>
>>>>>>                 <welcome-file>index.jsp</welcome-file>
>>>>>>                 <welcome-file>default.html</welcome-file>
>>>>>>                 <welcome-file>default.htm</welcome-file>
>>>>>>                 <welcome-file>default.jsp</welcome-file>
>>>>>>         </welcome-file-list>
>>>>>>         <taglib>
>>>>>>                 <taglib-uri>
>>>>>>                        
>>>>>> http://jakarta.apache.org/taglibs/datetime-1.0
>>>>>>                 </taglib-uri>
>>>>>>                 <taglib-location>
>>>>>>                         /WEB-INF/lib/taglibs-datetime.jar
>>>>>>                 </taglib-location>
>>>>>>         </taglib>
>>>>>>         <taglib>
>>>>>>                 <taglib-uri>
>>>>>>                        
>>>>>> http://jakarta.apache.org/taglibs/string-1.0.1
>>>>>>                 </taglib-uri>
>>>>>>                 <taglib-location>
>>>>>>                         /WEB-INF/lib/taglibs-string.jar
>>>>>>                 </taglib-location>
>>>>>>         </taglib>
>>>>>>         <taglib>
>>>>>>                 <taglib-uri>
>>>>>>                         http://jakarta.apache.org/taglibs/utility
>>>>>>                 </taglib-uri>
>>>>>>                
>>>>>> <taglib-location>/WEB-INF/lib/utility.jar</taglib-location>
>>>>>>         </taglib>
>>>>>>         <taglib>
>>>>>>                 <taglib-uri>
>>>>>>                         http://jakarta.apache.org/taglibs/mailer-1.1
>>>>>>                 </taglib-uri>
>>>>>>                 <taglib-location>
>>>>>>                         /WEB-INF/lib/taglibs-mailer.jar
>>>>>>                 </taglib-location>
>>>>>>         </taglib>
>>>>>> </web-app>
>>>>>>
>>>>>> my page is
>>>>>>
>>>>>> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib
>>>>>> uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI"%> <%@taglib
>>>>>> uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%> <%@taglib
>>>>>> uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib
>>>>>> uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@page
>>>>>> language="java" contentType="text/html; charset=ISO-8859-1"
>>>>>>         pageEncoding="ISO-8859-1" session="false"%> <portletAPI:init
>>>>>> />
>>>>>>
>>>>>> <LINK rel="stylesheet" type="text/css"
>>>>>>         href='<%= response.encodeURL("/theme/stylesheet.css")
%>'
>>>>>> title="Style">
>>>>>> <f:view>
>>>>>>         <%-- jsf:pagecode language="java"
>>>>>> location="/JavaSource/pagecode/CurriculaView.java" --%><%--
>>>>>> /jsf:pagecode
>>>>>> --%>
>>>>>>         <hx:scriptCollector id="scriptCollector1">
>>>>>>
>>>>>>                 <t:popup id="x" styleClass="popup"
>>>>>> closePopupOnExitingElement="true"
>>>>>>                         closePopupOnExitingPopup="true"
>>>>>> displayAtDistanceX="10"
>>>>>>                         displayAtDistanceY="10">
>>>>>>                         <h:outputText id="ox"
>>>>>>                                 value="This is the first textual
text
>>>>>> situation." />
>>>>>>                         <f:facet name="popup">
>>>>>>                                 <h:panelGroup>
>>>>>>                                         <h:panelGrid columns="1">
>>>>>>                                                 <h:outputText
>>>>>> value="Popup Text 1" />
>>>>>>                                         </h:panelGrid>
>>>>>>                                 </h:panelGroup>
>>>>>>                         </f:facet>
>>>>>>                 </t:popup>
>>>>>>
>>>>>>
>>>>>>         </hx:scriptCollector>
>>>>>> </f:view>
>>>>>>
>>>>>> The portlet is created with the wizard of RAD6, a non jsr standard
>>>>>> portlet
>>>>>> Can anyone help me or redirect to a solution?
>>>>>> Thank you very much!
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/WPS5-and-MyFaces-tf2538402.html#a7071939
>>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>
>>>>> -- 
>>>>> Matthias Wessendorf
>>>>> http://tinyurl.com/fmywh
>>>>>
>>>>> further stuff:
>>>>> blog: http://jroller.com/page/mwessendorf
>>>>> mail: mwessendorf-at-gmail-dot-com
>>>>>
>>>>>
>>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/WPS5-and-MyFaces-tf2538402.html#a7155170
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message