Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 14719 invoked from network); 19 Oct 2006 19:48:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 19:48:39 -0000 Received: (qmail 29399 invoked by uid 500); 19 Oct 2006 19:48:34 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 29359 invoked by uid 500); 19 Oct 2006 19:48:34 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 29348 invoked by uid 99); 19 Oct 2006 19:48:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 12:48:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [155.7.40.139] (HELO viruswall4) (155.7.40.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 12:48:30 -0700 Received: from concord.afis.pa.mil ([155.7.1.152]) by viruswall4 with InterScan Messaging Security Suite; Thu, 19 Oct 2006 15:48:49 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6F3B7.73EEFE60" Subject: RE: Conversation Component Servlet Filter Issue X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 19 Oct 2006 15:47:47 -0400 Message-ID: <35A4BD19CDF72C4692530CDE233676F81BBA71@concord.afis.pa.mil> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Conversation Component Servlet Filter Issue Thread-Index: AcbztWSmzthw1/NKQrCxesTBKm5OFwAAfreQ From: "Neuman, Ben J., A&M IRM" To: "MyFaces Discussion" X-imss-version: 2.043 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C6F3B7.73EEFE60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Also, you'll need this one as well in your taglib.xml =20 endConversation = org.apache.myfaces.EndConversation = =20 =20 -----Original Message----- From: Tom Innes [mailto:Tom.Innes@allTiers.com] Sent: Thursday, October 19, 2006 3:04 PM To: 'MyFaces Discussion' Subject: Conversation Component Servlet Filter Issue =20 I am trying out the new sandbox component Conversation. I have taken one = of the saveState Examples and converted it to Facelets. I am not sure = what I am doing wrong but I am getting the following exception. Any = help would be appreciated. SEVERE: Error Rendering View[/pages/saveState.xhtml] java.lang.IllegalStateException: ConversationServletFilter not called. = Please configure the filter = org.apache.myfaces.custom.conversation.ConversationServletFilter in your = web.xml to cover your faces requests. at = org.apache.myfaces.custom.conversation.ConversationManager.getInstance(Co= nversationManager.java:124) at = org.apache.myfaces.custom.conversation.ConversationManager.getInstance = (ConversationManager.java:111) I have added the following to my web.xml conversationFilter = org.apache.myfaces.custom.conversation.ConversationServletF= ilter requestParameterProvider = org.apache.myfaces.custom.requestParameterProvider.RequestP= arameterServletFilter =20 requestParameterProvider *.jsf requestParameterProvider /faces/* =20 conversationFilter *.jsf conversationFilter=20 /faces/* =20 I have also created a Facelets Taglib for the Conversation Components I = am starting out with this has been configured in web.xml as well "> http://myfaces.apache.org/sandbox conversation = org.apache.myfaces.Conversation =20 startConversation = org.apache.myfaces.StartConversation=20 I am using 1.15 Snapshot as of today Oct 19, 2006. I am sure it is just a configuration issue. Does anyone have any = suggestions. =20 Tom ------_=_NextPart_001_01C6F3B7.73EEFE60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Also,=20 you'll need this one as well in your taglib.xml
 
<tag>
       =20 <tag-name>endConversation</tag-name>
   &nb= sp;   =20 <component>
        &nbs= p;  =20 <component-type>org.apache.myfaces.EndConversation</component-ty= pe>       =20
       =20 </component>
    = </tag>
 
-----Original Message-----
From: Tom Innes=20 [mailto:Tom.Innes@allTiers.com]
Sent: Thursday, October 19, = 2006=20 3:04 PM
To: 'MyFaces Discussion'
Subject: = Conversation=20 Component Servlet Filter Issue

 

I am trying out the new = sandbox component=20 Conversation. I have taken one of the saveState Examples and = converted it=20 to Facelets.  I am not sure what I am doing wrong but I am = getting the=20 following exception.  Any help=20 would be appreciated.


SEVERE: Error Rendering = View[/pages/saveState.xhtml]

java.lang.IllegalStateException:=20 ConversationServletFilter not called. Please configure the filter=20 org.apache.myfaces.custom.conversation.ConversationServletFilter in = your=20 web.xml to cover your faces requests.

at=20 = org.apache.myfaces.custom.conversation.ConversationManager.getInstance(Co= nversationManager.java:124)

at=20 org.apache.myfaces.custom.conversation.ConversationManager.getInstance = (ConversationManager.java:111)


I have added the following = to my=20 web.xml

<!-- Filter for = Conversation Scope=20 Begin -->
 <filter>
  =20 = <filter-name>conversationFilter</filter-name>
  = =20 = <filter-class>org.apache.myfaces.custom.conversation.ConversationSe= rvletFilter=20 = </filter-class>
 </filter>
 <filter>  =20 = <filter-name>requestParameterProvider</filter-name>
 =  =20 = <filter-class>org.apache.myfaces.custom.requestParameterProvider.Re= questParameterServletFilter=20 </filter-class>
 </filter>
 <!-- Filter = for=20 Conversation Scope End --> 

<!-- Filter Mappings for = Conversation=20 Scope Begin -->
<filter-mapping>
 =20 = <filter-name>requestParameterProvider</filter-name>
 = =20 = <url-pattern>*.jsf</url-pattern>
</filter-mapping><filter-mapping>
 =20 = <filter-name>requestParameterProvider</filter-name>
 = =20 <url-pattern>/faces/*</url-pattern>
 =20 </filter-mapping>
<filter-mapping>=20 =
<filter-name>conversationFilter</filter-name>
 =20 <url-pattern>*.jsf</url-pattern>
 =20 </filter-mapping>
<filter-mapping>
 =20 <filter-name>conversationFilter</filter-name>
 =20 = <url-pattern>/faces/*</url-pattern>
</filter-mapping>= ;
<!--=20 Filter Mappings for Conversation Scope
End = -->=20

I have also = created a=20 Facelets Taglib for the Conversation Components I am starting out with = this has been configured in = web.xml as=20 well

<?xml = version=3D"1.0"?>
<!DOCTYPE=20 facelet-taglib PUBLIC
  "-//Sun Microsystems, Inc.//DTD = Facelet Taglib=20 1.0//EN"
  "http://java.sun.c= om/dtd/facelet-taglib_1_0.dtd=20 ">

<facelet-taglib>
    = <namespace>http://myfaces.apache.org/sand= box</namespace>

   =20 <tag>
       =20 = <tag-name>conversation</tag-name>
    =    =20 = <component>
        &nbs= p;  =20 = <component-type>org.apache.myfaces.Conversation</component-type&= gt;
       =20 </component>
    = </tag>
   =20 <tag>
       =20 = <tag-name>startConversation</tag-name>
   &= nbsp;   =20 = <component>
        &nbs= p;  =20 = <component-type>org.apache.myfaces.StartConversation</component-= type>=20
       =20 </component>
   =20 </tag>
</facelet-taglib>

 I am=20 using 1.15 Snapshot as of today Oct 19, = 2006.

I am sure it is just a configuration = issue.  Does=20 anyone have any suggestions.

 

Tom

------_=_NextPart_001_01C6F3B7.73EEFE60--