Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 20889 invoked from network); 25 Jun 2008 14:01:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 14:01:46 -0000 Received: (qmail 70627 invoked by uid 500); 25 Jun 2008 14:01:45 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 70555 invoked by uid 500); 25 Jun 2008 14:01:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 70544 invoked by uid 99); 25 Jun 2008 14:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 07:01:45 -0700 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of barbara.slupik@ntlworld.com designates 81.103.221.49 as permitted sender) Received: from [81.103.221.49] (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 14:00:53 +0000 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20080625140642.KVDJ16629.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Wed, 25 Jun 2008 15:06:42 +0100 Received: from [172.16.1.7] (really [81.99.46.167]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20080625141043.YCUU8797.aamtaout03-winn.ispmail.ntl.com@[172.16.1.7]> for ; Wed, 25 Jun 2008 15:10:43 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <48624B94.20401@memocomp.de> References: <48624B94.20401@memocomp.de> Content-Type: multipart/alternative; boundary=Apple-Mail-7--127951621 Message-Id: <950EBC57-4F61-4038-9313-267069E7293C@ntlworld.com> From: Barbara Slupik Subject: Re: Form base authentication in tomcat Date: Wed, 25 Jun 2008 15:00:49 +0100 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-7--127951621 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I had the same problem. I fixed it by adding: springRequestContextFilter org.springframework.web.filter.RequestContextFilter springRequestContextFilter /* FORWARD REQUEST to my application web.xml file. Barbara On 25 Jun, 2008, at 2:43 pm, Johannes Hoechstaedter wrote: > Hi everybody, > > how can I etablixh a form based authentication in coconn running in > tomcat? > > My web.xml login-config looks as follows: > > > FORM > Example Form-Based Authentication Area > > /myBlock1/login > /myBlock1/login > > > > I have a match pattern in my sitemap for this: > > > > > src="resource/internal/transform2LoginForm.xsl" /> > > > > > Running this pattern in jetty works fine, and my login form is > shown. But when I load my webapp into Tomcat and when I run it, > Tomcat doesn't complain, too. I get no Error message as I am > expecting. The thing is, that I get only an empty screen. Do > anybody know something? > > cheers > Johannes > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > --Apple-Mail-7--127951621 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
I had the = same problem. I fixed it by adding:
<filter>
= <filter-name>springRequestContextFilter</filter-name> = =C2=A0=C2=A0
= <filter-class>org.springframework.web.filter.RequestContextFilter</filter-clas= s>
</filter>

= <filter-mapping>
= <filter-name>springRequestContextFilter</filter-name><= /div>
= <url-pattern>/*</url-pattern>
= <dispatcher>FORWARD</dispatcher>
= <dispatcher>REQUEST</dispatcher>
= </filter-mapping>

to my application web.xml = file.

Barbara

On 25 Jun, = 2008, at 2:43 pm, Johannes Hoechstaedter wrote:

Hi everybody,

how can I etablixh a form based = authentication in coconn running in tomcat?

My web.xml login-config looks as = follows:

<login-config>
=C2=A0=C2=A0 =C2=A0 = <auth-method>FORM</auth-method>
=C2=A0=C2=A0 = =C2=A0 <realm-name>Example Form-Based Authentication = Area</realm-name>
=C2=A0=C2=A0 =C2=A0 = <form-login-config>
=C2=A0=C2=A0 =C2=A0 =C2=A0 = <form-login-page>/myBlock1/login</form-login-page>
=C2=A0=C2=A0 = =C2=A0 =C2=A0 = <form-error-page>/myBlock1/login</form-error-page>
=C2=A0=C2=A0 = =C2=A0 </form-login-config>
=C2=A0=C2=A0 = </login-config>

I have a match pattern in my = sitemap for this:

<map:match pattern=3D"login">
=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 <!-- init -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 <map:generate = src=3D"resource/internal/pageTemplate.xml" />
=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 <map:transform type=3D"xslt" = src=3D"resource/internal/transform2LoginForm.xsl" />
=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- html ouptut -->
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = <map:serialize type=3D"xhtml"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = </map:match>
Running this pattern in jetty = works fine, and my login form is shown. But when I load my webapp into = Tomcat and when I run it, Tomcat doesn't complain, too. I get no Error = message as I am expecting. The thing is, that I=C2=A0 get only an empty screen. = Do anybody know something?

cheers
Johannes

For additional commands, e-mail: = users-help@cocoon.apache.org<= /a>

=

= --Apple-Mail-7--127951621--