From justin28@example.net Wed Jun 1 19:23:57 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 10FDB6CAF for <justin28@example.net>; Wed, 1 Jun 2011 19:23:57 +0000 (UTC) Received: (qmail 41441 invoked by uid 500); 1 Jun 2011 19:23:56 -0000 Delivered-To: justin28@example.net Received: (qmail 41374 invoked by uid 500); 1 Jun 2011 19:23:55 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 41367 invoked by uid 99); 1 Jun 2011 19:23:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:23:55 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO qmta02.westchester.pa.mail.comcast.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:23:47 +0000 Received: from omta10.westchester.pa.mail.comcast.net ([83.161.120.155]) by qmta02.westchester.pa.mail.comcast.net with comcast id qjDN1g0040cZkys52jPS86; Wed, 01 Jun 2011 19:23:26 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by omta10.westchester.pa.mail.comcast.net with comcast id qjPC1g00m38FjT13WjPJ0c; Wed, 01 Jun 2011 19:23:24 +0000 Message-ID: <justin28@example.net> Date: Wed, 01 Jun 2011 15:23:10 -0400 From: Christopher Schultz <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: tomcat memory issue References: <justin28@example.net> <justin28@example.net> In-Reply-To: <justin28@example.net> X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 André, On 5/25/2011 11:14 AM, DAVIGNON Andre (Responsable du PANDOC) - SG/SPSSI/CPII/DONP/PANDOC wrote: > As far as I know, it is the same Tomcat engine that you run either on a > 32 or 64 bits JVM. Only the JVM matters. If your JVM runs in 64 bits, > Tomcat can use as much as memory allowed by the JVM. +1 There is no "32-bit Tomcat", nor is there a "32-bit Cocoon": it all depends upon the JVM. AFAIK, both work just fine under a 64-bit JVM. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3mkZ4ACgkQ9CaO5/Lv0PDCOwCfYr4FPTSx8CfU/oQ1s8gxL43a Cz0AoMCKLvU96SinD4Ed4dUKfEkopczm =vt7l -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Wed Jun 8 14:39:46 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id EA4434528 for <justin28@example.net>; Wed, 8 Jun 2011 14:39:46 +0000 (UTC) Received: (qmail 33960 invoked by uid 500); 8 Jun 2011 14:39:46 -0000 Delivered-To: justin28@example.net Received: (qmail 33904 invoked by uid 500); 8 Jun 2011 14:39:45 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 33897 invoked by uid 99); 8 Jun 2011 14:39:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:39:44 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO lo.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:39:36 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from <justin28@example.net>) id 1QUJub-0008TB-DW for justin28@example.net; Wed, 08 Jun 2011 16:39:13 +0200 Received: from 157.Red-80-37-78.staticIP.rima-tde.net ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <justin28@example.net>; Wed, 08 Jun 2011 16:39:13 +0200 Received: from des by 157.Red-80-37-78.staticIP.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <justin28@example.net>; Wed, 08 Jun 2011 16:39:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: justin28@example.net From: Des Magner <justin28@example.net> Subject: How to configure Velocity Tools Date: Wed, 8 Jun 2011 14:38:59 +0000 (UTC) Lines: 7 Message-ID: <justin28@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: justin28@example.net X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 83.161.120.155 (Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi Can anyone tell me how to configure my cocoon application in order that I can use Velocity Tools in my velocity templates? Thanks in Advance Des --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Wed Jun 8 19:48:13 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 9E9084AA7 for <justin28@example.net>; Wed, 8 Jun 2011 19:48:13 +0000 (UTC) Received: (qmail 59032 invoked by uid 500); 8 Jun 2011 19:48:13 -0000 Delivered-To: justin28@example.net Received: (qmail 58962 invoked by uid 500); 8 Jun 2011 19:48:13 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 58950 invoked by uid 99); 8 Jun 2011 19:48:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 19:48:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qw0-f51.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 19:48:03 +0000 Received: by qwf7 with SMTP id 7so512010qwf.24 for <justin28@example.net>; Wed, 08 Jun 2011 12:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type; bh=dkfygodLJPSTeQT2yn4yF56kPBN9kwLl16rE4zBfTps=; b=FqkO+HEuwbowFOMhvtFzcj701EBK93x1oVLWg4krzR70M+2e68CE7c6p5Jb+7AbDCJ XSI3ZxvvFUNTOw266oaGsagdDi1C/xhoWFBY483BRA4vto8V2w4qtCIZzGSYxuWLhtUQ NJ30uF8Pf2qBVNoXA9P9NZKewvabmyIsBwMe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=b2zaqTIyOgQ13Cl8M71rF6EestcvoFvbm+l54nDoHBnP4ZCfnYPPa1G9k3n6Y45xkl CgUYbxNJdJKplGf8plXyN0/ahIKa6et1vP3eYGXxuHbtxyQcjBq3N8FDch/zTt3l5AmP CKSYy2PDfVwz6KCVlB8GV3rHsrKqw56TiOM3E= Received: by 83.161.120.155 with SMTP id cc10mr4400491qab.315.1307562461645; Wed, 08 Jun 2011 12:47:41 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id j18sm650992qck.39.283.161.120.155.47.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 12:47:40 -0700 (PDT) Message-ID: <justin28@example.net> Date: Wed, 08 Jun 2011 15:47:38 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: SPNEGO working in JSP, but how to bring it into Cocoon app? Content-Type: multipart/alternative; boundary="------------050909060406010306030307" X-Virus-Checked: Checked by ClamAV on apache.org --------------050909060406010306030307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi there, By following this (http://spnego.sourceforge.net/spnego_tomcat.html) I was able to make a JSP page in my ROOT folder correctly display that my Single Sign On against Active Directory (Microsoft) was working. Now my question is: great, but how do I get my cocoon application, served by the same Tomcat instance, to use this capability? Can I use the servlet somehow or do I have to use my flowscript to instantiate the classes involved? The servelet requires the spnego.jar file in the library--so far so good. But then in web.xml in the Tomcat conf, it has a number of settings for a "filter". And then the JSP page itself has this single call that appears to be doing the magic: request.getRemoteUser(); Any pointers appreciated--I list the settings for the filter in the conf file web.xml below. Bottom line question: how do I get the jsp call request.getRemoteUser() described above, reproduced in my cocoon application, which uses Flowscript and Java. Paul ------------- |<filter> <filter-name>SpnegoHttpFilter</filter-name> <filter-class>net.sourceforge.spnego.SpnegoHttpFilter</filter-class> <init-param> <param-name>spnego.allow.basic</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>spnego.allow.localhost</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>spnego.allow.unsecure.basic</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>spnego.login.client.module</param-name> <param-value>spnego-client</param-value> </init-param> <init-param> <param-name>spnego.krb5.conf</param-name> <param-value>krb5.conf</param-value> </init-param> <init-param> <param-name>spnego.login.conf</param-name> <param-value>login.conf</param-value> </init-param> <init-param> <param-name>spnego.preauth.username</param-name> <param-value>Zeus</param-value> </init-param> <init-param> <param-name>spnego.preauth.password</param-name> <param-value>Z3usP@55</param-value> </init-param> <init-param> <param-name>spnego.login.server.module</param-name> <param-value>spnego-server</param-value> </init-param> <init-param> <param-name>spnego.prompt.ntlm</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>spnego.logger.level</param-name> <param-value>1</param-value> </init-param> </filter> <filter-mapping> <filter-name>SpnegoHttpFilter</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping>| --------------050909060406010306030307 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#ffffff" text="#000000"> Hi there,<br> <br> By following this (<a class="moz-txt-link-freetext" href="http://spnego.sourceforge.net/spnego_tomcat.html">http://spnego.sourceforge.net/spnego_tomcat.html</a>) I was able to make a JSP page in my ROOT folder correctly display that my Single Sign On against Active Directory (Microsoft) was working.<br> <br> Now my question is:&nbsp; great, but how do I get my cocoon application, served by the same Tomcat instance, to use this capability?<br> <br> Can I use the servlet somehow or do I have to use my flowscript to instantiate the classes involved?<br> <br> The servelet requires the spnego.jar file in the library--so far so good.<br> <br> But then in web.xml in the Tomcat conf, it has a number of settings for a "filter".<br> <br> And then the JSP page itself has this single call that appears to be doing the magic: request.getRemoteUser();<br> <br> Any pointers appreciated--I list the settings for the filter in the conf file web.xml below.<br> <br> Bottom line question: how do I get the jsp call request.getRemoteUser() described above, reproduced in my cocoon application, which uses Flowscript and Java.<br> <br> Paul<br> <br> -------------<br> <pre><code>&lt;filter&gt; &lt;filter-name&gt;SpnegoHttpFilter&lt;/filter-name&gt; &lt;filter-class&gt;net.sourceforge.spnego.SpnegoHttpFilter&lt;/filter-class&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.allow.basic&lt;/param-name&gt; &lt;param-value&gt;true&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.allow.localhost&lt;/param-name&gt; &lt;param-value&gt;true&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.allow.unsecure.basic&lt;/param-name&gt; &lt;param-value&gt;true&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.login.client.module&lt;/param-name&gt; &lt;param-value&gt;spnego-client&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.krb5.conf&lt;/param-name&gt; &lt;param-value&gt;krb5.conf&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.login.conf&lt;/param-name&gt; &lt;param-value&gt;login.conf&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.preauth.username&lt;/param-name&gt; &lt;param-value&gt;Zeus&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.preauth.password&lt;/param-name&gt; &lt;param-value&gt;Z3usP@55&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.login.server.module&lt;/param-name&gt; &lt;param-value&gt;spnego-server&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.prompt.ntlm&lt;/param-name&gt; &lt;param-value&gt;true&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;spnego.logger.level&lt;/param-name&gt; &lt;param-value&gt;1&lt;/param-value&gt; &lt;/init-param&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;SpnegoHttpFilter&lt;/filter-name&gt; &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt; &lt;/filter-mapping&gt;</code></pre> <br> </body> </html> --------------050909060406010306030307-- From justin28@example.net Sun Jun 12 17:02:16 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 3F3564F3D for <justin28@example.net>; Sun, 12 Jun 2011 17:02:16 +0000 (UTC) Received: (qmail 70484 invoked by uid 500); 12 Jun 2011 17:02:15 -0000 Delivered-To: justin28@example.net Received: (qmail 70412 invoked by uid 500); 12 Jun 2011 17:02:15 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 70402 invoked by uid 99); 12 Jun 2011 17:02:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jun 2011 17:02:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-vx0-f179.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jun 2011 17:02:06 +0000 Received: by vxi40 with SMTP id 40so4243565vxi.24 for <justin28@example.net>; Sun, 12 Jun 2011 10:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=8TOPNAv7IETJSgID79rcYaWao8tLUqM65KRtAKe2lrU=; b=WvCRayvIBUKYg6dVJNRp9neC7XzppM0YD2b0ju1pHng5UezGHUrviPohXCeg4VPGeE LzEAu+uc6F3v0KZ1QiX2JU7t6xv4Bgows/irXPaKx2+ikcnyuxcpVksHoVmeNm85yIH+ EL8PXFqlFkOuqb2HMPWwWsd2o5XG/VW1wKNyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=OEnPWEr9q0PaPn9v3us7l/NfAQdCdJx8SoLPABMag7xXq+VRLnCA8c/Mrbj8kEAaQM KA9szb88oZYIhT7RsSEEH1yj2wdAJIaZVhUWW30gGPyFODnd285QdXcMueaJS/FOfvGy SLMlu53WscbOXNAXETVJTNr85RVI3x5udxUOM= Received: by 83.161.120.155 with SMTP id ef7mr6091603vdb.88.1307898105142; Sun, 12 Jun 2011 10:01:45 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id bk7sm3267191vbb.1.283.161.120.155.01.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2011 10:01:44 -0700 (PDT) Message-ID: <justin28@example.net> Date: Sun, 12 Jun 2011 13:01:39 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: HttpServletRequest from Flowscript Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi there, Does anyone know how one can pass the Cocoon request to a java function that needs to use HttpServletRequest? I passed in the cocoon.request to the Java function using but inside the Java code I am not able to cast the cocoon request to the HttpServletRequest. Any guidance would be appreciated. Paul --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 13 04:00:58 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id E34C9605C for <justin28@example.net>; Mon, 13 Jun 2011 04:00:58 +0000 (UTC) Received: (qmail 12985 invoked by uid 500); 13 Jun 2011 04:00:57 -0000 Delivered-To: justin28@example.net Received: (qmail 12868 invoked by uid 500); 13 Jun 2011 04:00:55 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 12857 invoked by uid 99); 13 Jun 2011 04:00:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 04:00:54 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO brigitte.telenet-ops.be) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 04:00:45 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by brigitte.telenet-ops.be with bizsmtp id vG0P1g00B4uGR7Y0GG0Pmn; Mon, 13 Jun 2011 06:00:23 +0200 Message-ID: <justin28@example.net> Date: Mon, 13 Jun 2011 06:00:23 +0200 From: Jos Snellings <justin28@example.net> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:83.161.120.155) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript References: <justin28@example.net> In-Reply-To: <justin28@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Paul, C3 or C2.2? In cocoon-3 you may want to use: import org.apache.cocoon.servlet.util.HttpContextHelper; HttpServletRequest request; public void setup(Map<String, Object> parameters) { request = HttpContextHelper.getRequest(parameters); } from within a cocoon generator. Cheers, Jos On 06/12/2011 07:01 PM, Paul Joseph wrote: > Hi there, > > Does anyone know how one can pass the Cocoon request to a java > function that needs to use HttpServletRequest? > > I passed in the cocoon.request to the Java function using but inside > the Java code I am not able to cast the cocoon request to the > HttpServletRequest. > > Any guidance would be appreciated. > > Paul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 13 10:13:08 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 234756AEA for <justin28@example.net>; Mon, 13 Jun 2011 10:13:08 +0000 (UTC) Received: (qmail 57807 invoked by uid 500); 13 Jun 2011 10:13:07 -0000 Delivered-To: justin28@example.net Received: (qmail 57720 invoked by uid 500); 13 Jun 2011 10:13:06 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 57708 invoked by uid 99); 13 Jun 2011 10:13:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 10:13:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-vx0-f179.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 10:12:59 +0000 Received: by vxi40 with SMTP id 40so4656605vxi.24 for <justin28@example.net>; Mon, 13 Jun 2011 03:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hESE/oRzgnaULkB6cWyTHR9DKzBODMfio0G57DNdjnM=; b=LpYzZinjoOITcUqo+Axsch4710NauO6tZlbG++wtzM3J4ery0jUJ0/hGT2dv7b6uD8 tDgiVoQlrgt2TRRMn5LjaHEXipL8Al7JN6RNZApNRGRSEYNmfFV92gVr7ZgePKhJ3eJI nNa+pQ+ztXsilWjWE8BTbA9Gvj3pup+t+aU1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=hmT82+mhdwDEyGMnH2m2KpPyPjYNMxdSWvOtwqGnGDJVPfmMx5MrqPj+pA34JN9Jfz vdvtS8BoaQB4KFaYZKek/OGg/z7mR1dzTad+VdSnjmXbaX5vAFP3+zSQKqGvvg9hy4YK Mp6AfGUyzxuG010vS1OkAwEAaMiRltBrfzO98= Received: by 83.161.120.155 with SMTP id bq8mr2068875vcb.74.1307959958092; Mon, 13 Jun 2011 03:12:38 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id dt10sm788115vcb.0.283.161.120.155.12.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 03:12:36 -0700 (PDT) Message-ID: <justin28@example.net> Date: Mon, 13 Jun 2011 06:12:30 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript References: <justin28@example.net> <justin28@example.net> In-Reply-To: <justin28@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Jos, Thank your for your reply--I am using that old workhourse, Cocoon 2.1 (.11) I find that there it appears to be not that justin28@example.net. I use flowscript and Java and am trying to implement Windows Single SIgn On with SPNEGO. The issue is that it needs HttpServletRequest while all I have in the flowscript is cocoon.request which is not the same. I found the following method on the web. a) get the application context (avalon) public void contextualize(Context context) throws ContextException { objectModel = ContextHelper.getObjectModel(context); } b) then with the objectModel, we can do: final HttpServletRequest httpRequest = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); Good...but my problem is simple and after many hours I still don't know how to do this: How does one access the Avalon context in Javascript and then pass it to the Java layer? Now after much reading I find that I should probably write an Action and use the sitemap to fire the action. I gather the sitemap will automatically make the objectmodel available to my action code and then I can proceed as in step b above. My only problem is I have never written or used an action and so am a bit wary. rgds Paul On 6/13/2011 12:00 AM, Jos Snellings wrote: > Hi Paul, > > C3 or C2.2? > In cocoon-3 you may want to use: > > import org.apache.cocoon.servlet.util.HttpContextHelper; > > HttpServletRequest request; > > public void setup(Map<String, Object> parameters) { > > request = HttpContextHelper.getRequest(parameters); > } > from within a cocoon generator. > > Cheers, > Jos > > On 06/12/2011 07:01 PM, Paul Joseph wrote: >> Hi there, >> >> Does anyone know how one can pass the Cocoon request to a java >> function that needs to use HttpServletRequest? >> >> I passed in the cocoon.request to the Java function using but inside >> the Java code I am not able to cast the cocoon request to the >> HttpServletRequest. >> >> Any guidance would be appreciated. >> >> Paul >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: justin28@example.net >> For additional commands, e-mail: justin28@example.net >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Tue Jun 14 05:32:07 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 5AE086E05 for <justin28@example.net>; Tue, 14 Jun 2011 05:32:07 +0000 (UTC) Received: (qmail 94458 invoked by uid 500); 14 Jun 2011 05:32:07 -0000 Delivered-To: justin28@example.net Received: (qmail 94204 invoked by uid 500); 14 Jun 2011 05:32:06 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 94195 invoked by uid 99); 14 Jun 2011 05:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 05:32:05 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO gerard.telenet-ops.be) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 05:31:56 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by gerard.telenet-ops.be with bizsmtp id vhXb1g00J4rqLl50HhXb6S; Tue, 14 Jun 2011 07:31:36 +0200 Message-ID: <justin28@example.net> Date: Tue, 14 Jun 2011 07:31:35 +0200 From: Jos Snellings <justin28@example.net> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:83.161.120.155) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript References: <justin28@example.net> <justin28@example.net> <justin28@example.net> In-Reply-To: <justin28@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Well, that seems indeed like a rather complex way to achieve a simple thing. How about this: - 2.1 still has a horse called "xsp", which is a scripting language ensuring nicely balanced tags. Like an "xml-ized" jsp. an xsp page has direct access to request data, and you have access to pages. I can send you an example. - in 3 there is no xsp anymore (it got accused of witchcraft or so ;-) ). Cheers, Jos On 06/13/2011 12:12 PM, Paul Joseph wrote: > Hi Jos, > > Thank your for your reply--I am using that old workhourse, Cocoon 2.1 > (.11) > > I find that there it appears to be not that justin28@example.net. I use > flowscript and Java and am trying to implement Windows Single SIgn On > with SPNEGO. > > The issue is that it needs HttpServletRequest while all I have in the > flowscript is cocoon.request which is not the same. > > I found the following method on the web. > > a) get the application context (avalon) > > public void contextualize(Context context) throws ContextException { > objectModel = ContextHelper.getObjectModel(context); > } > > > b) then with the objectModel, we can do: > final HttpServletRequest httpRequest = (HttpServletRequest) > objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); > > > Good...but my problem is simple and after many hours I still don't > know how to do this: > > How does one access the Avalon context in Javascript and then pass it > to the Java layer? > > Now after much reading I find that I should probably write an Action > and use the sitemap to fire the action. I gather the sitemap will > automatically make the objectmodel available to my action code and > then I can proceed as in step b above. My only problem is I have > never written or used an action and so am a bit wary. > > rgds > Paul > > On 6/13/2011 12:00 AM, Jos Snellings wrote: >> Hi Paul, >> >> C3 or C2.2? >> In cocoon-3 you may want to use: >> >> import org.apache.cocoon.servlet.util.HttpContextHelper; >> >> HttpServletRequest request; >> >> public void setup(Map<String, Object> parameters) { >> >> request = HttpContextHelper.getRequest(parameters); >> } >> from within a cocoon generator. >> >> Cheers, >> Jos >> >> On 06/12/2011 07:01 PM, Paul Joseph wrote: >>> Hi there, >>> >>> Does anyone know how one can pass the Cocoon request to a java >>> function that needs to use HttpServletRequest? >>> >>> I passed in the cocoon.request to the Java function using but >>> inside the Java code I am not able to cast the cocoon request to the >>> HttpServletRequest. >>> >>> Any guidance would be appreciated. >>> >>> Paul >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: justin28@example.net >>> For additional commands, e-mail: justin28@example.net >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: justin28@example.net >> For additional commands, e-mail: justin28@example.net >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Tue Jun 14 10:59:56 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id F3EE76AAA for <justin28@example.net>; Tue, 14 Jun 2011 10:59:55 +0000 (UTC) Received: (qmail 83042 invoked by uid 500); 14 Jun 2011 10:59:55 -0000 Delivered-To: justin28@example.net Received: (qmail 82987 invoked by uid 500); 14 Jun 2011 10:59:54 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 82980 invoked by uid 99); 14 Jun 2011 10:59:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 10:59:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qy0-f179.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 10:59:45 +0000 Received: by qyk7 with SMTP id 7so3106065qyk.3 for <justin28@example.net>; Tue, 14 Jun 2011 03:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=RNxLLAdCqeNj+mkrsiCAKbFqYXfGBtGUhfgEOTfuP8U=; b=r2NSUsjPdoP0TM6vNXiTVaJ38XFqiPaytwR6O6jxVIGeJhNjMof5WGQjS4H8l/P7bT 7DXSfBKfyR/HB37d2jFJYScvbCT+GS6az4Rf74oYP95m9T4jxtYG3UzzFlCaUzXLGOtr OXBMnYfEHDtFfxPFlPbw0myghnbX8qkJglwkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=gu0OZFBe2IZ4K1JkX/Uo2vGkfyhx7AU2qezGa0s7WeA+uRuAY5Ao5Zxf1R1pwUrbS+ PKLH0MSXDEOB8NL3TLeYrslUUhc8FjFZ3bSmYze/ZEXtJFFLoBHX641D5HDKf6bV0yG2 BASu01fJ3EqjLC5VaRS2IyNEjqzUD6JISPy7A= Received: by 83.161.120.155 with SMTP id ek3mr4994950qab.154.1308049164471; Tue, 14 Jun 2011 03:59:24 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id p10sm5241608qcu.37.283.161.120.155.59.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2011 03:59:22 -0700 (PDT) Message-ID: <justin28@example.net> Date: Tue, 14 Jun 2011 06:59:15 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript References: <justin28@example.net> <justin28@example.net> <justin28@example.net> <justin28@example.net> In-Reply-To: <justin28@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Jos, I pulled out my old Cocoon book by Mathew Langham and Carsten Ziegeler and found that there is a racehorse in the stable called Action. On pp. 250 of this book they have a simple example on how to implement an "action" and I did that and lo and behold all works now. I was trying to implement Single Sign On in the Cocoon app against Microsoft Active directory and to save others that trouble I shall writeup post how I did it. Thanks again for all your help. Paul On 6/14/2011 1:31 AM, Jos Snellings wrote: > Well, that seems indeed like a rather complex way to achieve a simple > thing. > > How about this: > - 2.1 still has a horse called "xsp", which is a scripting language > ensuring nicely balanced tags. Like an "xml-ized" jsp. > an xsp page has direct access to request data, and you have access > to pages. I can send you an example. > - in 3 there is no xsp anymore (it got accused of witchcraft or so ;-) ). > > Cheers, > Jos > > On 06/13/2011 12:12 PM, Paul Joseph wrote: >> Hi Jos, >> >> Thank your for your reply--I am using that old workhourse, Cocoon >> 2.1 (.11) >> >> I find that there it appears to be not that justin28@example.net. I use >> flowscript and Java and am trying to implement Windows Single SIgn On >> with SPNEGO. >> >> The issue is that it needs HttpServletRequest while all I have in the >> flowscript is cocoon.request which is not the same. >> >> I found the following method on the web. >> >> a) get the application context (avalon) >> >> public void contextualize(Context context) throws ContextException { >> objectModel = ContextHelper.getObjectModel(context); >> } >> >> >> b) then with the objectModel, we can do: >> final HttpServletRequest httpRequest = (HttpServletRequest) >> objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); >> >> >> Good...but my problem is simple and after many hours I still don't >> know how to do this: >> >> How does one access the Avalon context in Javascript and then pass it >> to the Java layer? >> >> Now after much reading I find that I should probably write an Action >> and use the sitemap to fire the action. I gather the sitemap will >> automatically make the objectmodel available to my action code and >> then I can proceed as in step b above. My only problem is I have >> never written or used an action and so am a bit wary. >> >> rgds >> Paul >> >> On 6/13/2011 12:00 AM, Jos Snellings wrote: >>> Hi Paul, >>> >>> C3 or C2.2? >>> In cocoon-3 you may want to use: >>> >>> import org.apache.cocoon.servlet.util.HttpContextHelper; >>> >>> HttpServletRequest request; >>> >>> public void setup(Map<String, Object> parameters) { >>> >>> request = HttpContextHelper.getRequest(parameters); >>> } >>> from within a cocoon generator. >>> >>> Cheers, >>> Jos >>> >>> On 06/12/2011 07:01 PM, Paul Joseph wrote: >>>> Hi there, >>>> >>>> Does anyone know how one can pass the Cocoon request to a java >>>> function that needs to use HttpServletRequest? >>>> >>>> I passed in the cocoon.request to the Java function using but >>>> inside the Java code I am not able to cast the cocoon request to >>>> the HttpServletRequest. >>>> >>>> Any guidance would be appreciated. >>>> >>>> Paul >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: justin28@example.net >>>> For additional commands, e-mail: justin28@example.net >>>> >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: justin28@example.net >>> For additional commands, e-mail: justin28@example.net >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: justin28@example.net >> For additional commands, e-mail: justin28@example.net >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Tue Jun 14 11:36:08 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 0CFA061FD for <justin28@example.net>; Tue, 14 Jun 2011 11:36:08 +0000 (UTC) Received: (qmail 54140 invoked by uid 500); 14 Jun 2011 11:36:05 -0000 Delivered-To: justin28@example.net Received: (qmail 54084 invoked by uid 500); 14 Jun 2011 11:36:05 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 54055 invoked by uid 99); 14 Jun 2011 11:36:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 11:36:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qw0-f51.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 11:35:55 +0000 Received: by qwf7 with SMTP id 7so3382325qwf.24 for <justin28@example.net>; Tue, 14 Jun 2011 04:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=4p3K5FA0sPeh0um22uCtkjNEkETEiiLdnQtvtaKLYzo=; b=i45jE+HYxGWNeZ1txLKXTowagi75EH0V3Y/x9DJXzP4ungwyUwMgjsXcyS3Sx2lPRM 4lhgYe39fcl45Z2aKeRLGF4hmTJWgm6PLOWSOsEMF5oAUpjjemTmWHSYEZu8lMIoApjL rJQ7mLrRbG23UTxdXRCLW8Nl+kiqbyJI8QOiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=oKLBSfQxmbdLtbYy4w3RS32xd8wo6NnjZ1GxI/s/uLN9Q2q2wlqdXY3qwn3r30vFfK XjvnrI9z6ZqOz9ROCgS4rmWE8IiR+/6baa4xxc4ahQgcm4pWbsR0Qdm+w3eM3J3wC/AE 19Y1776Rl7mRtNBV6GFxZhLEzXYIGpVSakHws= Received: by 83.161.120.155 with SMTP id z4mr4716375qcj.277.1308051334934; Tue, 14 Jun 2011 04:35:34 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id e28sm5263246qck.18.283.161.120.155.35.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2011 04:35:33 -0700 (PDT) Message-ID: <justin28@example.net> Date: Tue, 14 Jun 2011 07:35:26 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: How to implement Single Sign On in a Cocoon application (Note: Cocoon 2.1.x) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi there, I post this to save others needless hours of gazing into the "void." The customer requested that Single Sign On (SSO) be implemented. (Note: for newbies like me, I had to do some research and found that what this means. Say like me, you have a cocoon application that is password protected and is on some server on the network. With SSO, once a user is logged into their machine, they do not need to retype their username/password when they access this application.) There are many implementations and a large number of acronyms and it was all very confusing. But I found in the end, it was quite simple. Let us say my Cocoon app is on a server called Cocoon_Server. Now if the enterprise has SSO, then they have a "Domain Server" that we query to find out if the user has the proper credentials. Lets say that the user is on a third machine called User_Computer. There is a extremely useful resource http://spnego.sourceforge.net/ that provides everything you need with all the gobbledegook completely invisible to us. Ideally, you would first implement the simple stand alone example that they provide to make sure that your SSO infrastructure and your development machine are setup correctly. (http://spnego.sourceforge.net/pre_flight.html). The one "GOTCHA" was that the is case sensitive and the documents at this link don't say that. You must follow the exact case that they show in their example. Once you have your SSO development infrastructure setup correctly, its time to integrate it into Cocoon. I use flow script and Java, but there is a gotcha as at least in 2.1, cocoon.request returns a strange object that isn't quite compatible with HttpServletRequest and which is what you need for the spnego.jar file. To be able to do this, you need the ObjectModel passed to you and the easiest way I found was to do that using an "Action". The first step is to put the spnego jar file from the site above into your lib directory. I put it in cocoon/lib/local though probably putting it in the lib directory for my app would have been the more correct choice. Then write a Cocoon "Action" as follows: 1) Put an entry for your action in your "root" sitemap: <map:actions> <map:action name="ssologin" src="org.apache.cocoon.myapplication.bean.SpnegoCocoonAuthenticator"/> </map:actions> 2) in your Login page's sitemap, add the following: <map:match pattern="ssologin"> <map:act type ="ssologin"> <map:call function="{ssologin}"/> </map:act> </map:match> 3) Write your action as follows, modifying it if you need anything different: package org.apache.cocoon.myapplication.bean; import java.io.FileNotFoundException; import java.io.IOException; import java.net.URISyntaxException; import java.security.Principal; import java.security.PrivilegedActionException; import java.util.HashMap; import java.util.Map; import javax.security.auth.login.LoginException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import net.sourceforge.spnego.SpnegoAuthenticator; import net.sourceforge.spnego.SpnegoHttpFilter.Constants; import net.sourceforge.spnego.SpnegoHttpServletResponse; import net.sourceforge.spnego.SpnegoPrincipal; import org.apache.catalina.LifecycleException; import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; import org.ietf.jgss.GSSException; import org.apache.cocoon.environment.http.HttpEnvironment; import org.apache.avalon.framework.activity.Initializable; import org.apache.avalon.framework.thread.ThreadSafe; import org.apache.avalon.framework.parameters.Parameters; import org.apache.cocoon.acting.Action; import org.apache.cocoon.environment.Redirector; import org.apache.cocoon.environment.SourceResolver; public class SpnegoCocoonAuthenticator implements Action, Initializable, ThreadSafe { private HttpSession session = null; protected SpnegoAuthenticator authenticator = null; public final void initialize() throws LifecycleException { final Map<String, String> map = new HashMap<String, String>(); map.put(Constants.ALLOW_BASIC, "true"); map.put("spnego.allow.localhost", "true"); map.put("spnego.allow.unsecure.basic", "true"); map.put("spnego.login.client.module", "spnego-client"); map.put("spnego.krb5.conf", "krb5.conf"); map.put("spnego.login.conf", "login.conf"); map.put("spnego.preauth.username", "Charlie_a_user_who_has_permissions_on_DOMAIN_SERVER"); map.put("spnego.preauth.password", "StrongPassword"); map.put("spnego.login.server.module", "spnego-server"); map.put("spnego.prompt.ntlm", "true"); map.put("spnego.allow.delegation", "true"); map.put("spnego.logger.level", "1"); try { authenticator = new SpnegoAuthenticator(map); } catch (LoginException e) { throw new LifecycleException(e); } catch (FileNotFoundException e) { throw new LifecycleException(e); } catch (GSSException e) { throw new LifecycleException(e); } catch (PrivilegedActionException e) { throw new LifecycleException(e); } catch (URISyntaxException e) { throw new LifecycleException(e); } } public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters parameters) throws Exception { final HttpServletRequest httpRequest = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); final SpnegoHttpServletResponse spnegoResponse = new SpnegoHttpServletResponse( (HttpServletResponse) (HttpServletResponse) objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT)); final SpnegoPrincipal principal; try { principal = this.authenticator.authenticate(httpRequest, spnegoResponse); } catch (GSSException e) { throw new IOException(e); } //you now have the basic info.--if there is a valid name, the user is legit. //you can do more stuff if you need to like get her roles etc. but I didn't need any more. String userName = principal.getName(); Map map = new HashMap(1); if(userName != null || !userName.equals("")) map.put("ssologin", "LoggedInScriptName"); else map.put("ssologin", "InvalidUserScriptName"); return map; } } 4) Write a flowscript to handle "LoggedInScriptName" that puts the user right into the app as though she had typed the username/password. Also, to handle an invalid user, write the InvalidUserScriptName to handle the case of an invalid user. That's it. Seems to work! I need to remove the username/pwd and other hardcoding and streamline it a bit, but the above is more or less all one needs. Best. Paul --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Fri Jun 17 11:18:55 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 06F5842A5 for <justin28@example.net>; Fri, 17 Jun 2011 11:18:55 +0000 (UTC) Received: (qmail 83032 invoked by uid 500); 17 Jun 2011 11:18:54 -0000 Delivered-To: justin28@example.net Received: (qmail 82974 invoked by uid 500); 17 Jun 2011 11:18:53 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 82944 invoked by uid 99); 17 Jun 2011 11:18:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 11:18:53 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RFC_ABUSE_POST,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx4.ciber-europe.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 11:18:48 +0000 Received: from eusex01.sweden.ecsoft ([83.161.120.155]) by mx4.ciber-europe.com with Microsoft SMTPSVC734-865-3582); Fri, 17 Jun 2011 13:18:07 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: problem with serialization Cocoon2.2 Date: Fri, 17 Jun 2011 13:18:06 +0200 Message-ID: <justin28@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with serialization Cocoon2.2 Thread-Index: Acws4DtbE254s0p+RSaHKbsp4+c3pQ== From: "Robby Pelssers" <justin28@example.net> To: <justin28@example.net>, <justin28@example.net> Cc: <justin28@example.net>, <justin28@example.net> X-OriginalArrivalTime: 17 Jun 2011 11:18:07.0323 (UTC) FILETIME=[3BB9CAB0:01CC2CE0] Hi all, I have a strange situation I don't really understand. In my sitemap I have following patterns: <!--=20 {1}: basictype-id {2}: state {3}: topic-id --> <map:match pattern=3D"basictype/*/*/*"> <map:generate src=3D"xquery/getTopic.xquery" = type=3D"queryStringXquery"> <map:parameter name=3D"basictypeId" value=3D"{1}"/> = =20 <map:parameter name=3D"state" value=3D"{2}"/> <map:parameter name=3D"topicId" value=3D"{3}"/> = =20 </map:generate> <map:transform src=3D"xslt/postprocessXqueryResults.xslt" = type=3D"saxon"/> <map:transform src=3D"xslt/urlTransformer.xslt" = type=3D"saxon"> <map:parameter name=3D"contextpath" = value=3D"{request:contextPath}"/> <map:parameter name=3D"drawingExtension" = value=3D"{request-param:drawingExtension}"/> =20 </map:transform> =20 <map:serialize type=3D"p-topic"/> =20 </map:match> =20 <map:match pattern=3D"topic2xhtml/**"> <map:generate src=3D"cocoon:/{1}"/> <map:transform src=3D"xslt/dita/xslhtml/dita2xhtml.xsl" = type=3D"saxon"/> <map:serialize type=3D"xhtml"/> </map:match> =20 <map:match pattern=3D"test"> <map:generate src=3D"data/pinning_information.xml"/> <map:serialize type=3D"xml"/> </map:match> And configured following serializer: <map:serializer name=3D"p-topic" = logger=3D"sitemap.serializer.xml" =20 mime-type=3D"text/xml;charset=3Dutf-8" = src=3D"org.apache.cocoon.serialization.XMLSerializer"> <encoding>UTF-8</encoding> <doctype-public>-//NXP//DTD P-Topic//EN</doctype-public> <doctype-system>${p-topic-dtd}</doctype-system> </map:serializer> The pattern "basictype/*/*/*" generates a DITA topic by transforming the = result of an Xquery. When I invoke = http://localhost:8888/topics/basictype/PH3330L/released/pinning_informati= on?drawingExtension=3Dgif in the browser and save the result [1] to = filesystem I see that the doctype has been added correctly: <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> <!DOCTYPE p-topic PUBLIC "-//NXP//DTD P-Topic//EN" = "http://nww.qa.spider.nxp.com:8311/xmetal/schemas/p-topic.dtd"> <p-topic id=3D"pinning_information"> ... </p-topic> When I invoke = http://localhost:8888/topics/topic2xhtml/basictype/PH3330L/released/pinni= ng_information I would expect the topic to get transformed correctly = into XHTML. This does not work however. Just for testing purpose I = added [1] in my app into /data/pinning_information.xml and created a new = match pattern which reads [1] from disc But when i now try to invoke = http://localhost:8888/topics/topic2xhtml/test the DITA topic does get = transformed correctly. Is there a difference between=20 a) calling a pipeline that generates a DITA topic on the fly and = serializes it using my custom serializer which is used as input for the=20 topic2xhtml/** pattern b) reading the DITA topic from filesystem which is used as input for = the topic2xhtml/** pattern It looks like the class attributes which should be added by the DTD are = not added in use-case (a) which is why the transform fails. Any insight is appreciated. Kind regards, Robby Pelssers --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 20 12:23:48 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 0311A64F0 for <justin28@example.net>; Mon, 20 Jun 2011 12:23:48 +0000 (UTC) Received: (qmail 86387 invoked by uid 500); 20 Jun 2011 12:23:47 -0000 Delivered-To: justin28@example.net Received: (qmail 86334 invoked by uid 500); 20 Jun 2011 12:23:46 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Delivered-To: moderator for justin28@example.net Received: (qmail 12048 invoked by uid 99); 20 Jun 2011 10:37:49 -0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: HttpServletRequest from Flowscript Date: Mon, 20 Jun 2011 12:37:15 +0200 Message-ID: <justin28@example.net> In-Reply-To: <justin28@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: HttpServletRequest from Flowscript Thread-Index: Acwpsn+QJKWjHLHSQcy90O/IF0+XEwFgxUxw References: <justin28@example.net> <justin28@example.net> <justin28@example.net> From: "Laurent Medioni" <justin28@example.net> To: <justin28@example.net> X-OriginalArrivalTime: 20 Jun 2011 10:37:16.0669 (UTC) FILETIME=[0642EAD0:01CC2F36] Hi, Maybe you should use SPNEGO before entering Cocoon, as they propose on their site, using the Servlet Filter they provide. Laurent The information in this e-mail and any attachments is confidential and ma= y be legally privileged. = It is intended solely for the addressee or addressees. Any use or disclos= ure of the contents = of this e-mail/attachments by a not intended recipient is unauthorized an= d may be unlawful. = If you have received this e-mail in error please notify the sender. = Please note that any views or opinions presented in this e-mail are solel= y those of the author and = do not necessarily represent those of TEMENOS. = We recommend that you check this e-mail and any attachments against virus= es. = TEMENOS accepts no liability for any damage caused by any malicious code = or virus transmitted by this e-mail. =0D --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 20 13:24:58 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 0FBCB6BC0 for <justin28@example.net>; Mon, 20 Jun 2011 13:24:58 +0000 (UTC) Received: (qmail 11430 invoked by uid 500); 20 Jun 2011 13:24:57 -0000 Delivered-To: justin28@example.net Received: (qmail 11373 invoked by uid 500); 20 Jun 2011 13:24:57 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 11361 invoked by uid 99); 20 Jun 2011 13:24:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:24:57 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RFC_ABUSE_POST,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mx4.ciber-europe.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:24:49 +0000 Received: from eusex01.sweden.ecsoft ([83.161.120.155]) by mx4.ciber-europe.com with Microsoft SMTPSVC734-865-3582); Mon, 20 Jun 2011 15:24:27 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Does ValidatingTransformer support DTD validation Date: Mon, 20 Jun 2011 15:24:27 +0200 Message-ID: <justin28@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Does ValidatingTransformer support DTD validation Thread-Index: AcwvTWC5y6SmdPodQYeLnZBCp/0Twg== From: "Robby Pelssers" <justin28@example.net> To: <justin28@example.net>, <justin28@example.net> Cc: <justin28@example.net>, <justin28@example.net> X-OriginalArrivalTime: 20 Jun 2011 13:24:27.0615 (UTC) FILETIME=[612BCEF0:01CC2F4D] X-Virus-Checked: Checked by ClamAV on apache.org Hi all, i am trying to use the validating transformer with a DTD but can't get = it to work. I already took a look at the source and found this block of code in = http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-validation/coc= oon-validation-impl/src/main/java/org/apache/cocoon/components/validation= /jaxp/JaxpSchemaParser.java I tried=20 <map:transform src=3D"data/p-topic.dtd" type=3D"validate"> <map:parameter name=3D"grammar" = value=3D"http://www.w3.org/TR/REC-xml"/> </map:transform> =20 which does not work. -------------------------------------------------------------------------= /* Detect languages or use the supplied ones */ Configuration languages[] =3D = conf.getChild("grammars").getChildren("grammar"); Set grammars =3D new HashSet(); if (languages.length > 0) { /* If the configuration specified (formally) a list of = grammars use it */ for (int x =3D 0; x < languages.length; x++) { String language =3D languages[x].getValue(); if (fact.isSchemaLanguageSupported(language)) { grammars.add(language); continue; } /* If the configured language is not supported throw an = exception */ String message =3D "JAXP SchemaFactory \"" + = this.className + "\" " + "does not support configured grammar " = + language; throw new ConfigurationException(message, languages[x]); } } else { /* Attempt to detect the languages directly using the JAXP = factory */ if = (fact.isSchemaLanguageSupported(Validator.GRAMMAR_XML_SCHEMA)) { grammars.add(Validator.GRAMMAR_XML_SCHEMA); } if = (fact.isSchemaLanguageSupported(Validator.GRAMMAR_RELAX_NG)) { grammars.add(Validator.GRAMMAR_RELAX_NG); } if = (fact.isSchemaLanguageSupported(Validator.GRAMMAR_XML_DTD)) { grammars.add(Validator.GRAMMAR_XML_DTD); //this equals = "http://www.w3.org/TR/REC-xml" } } Is there a way to configure support for DTD validation as well? XML = schema validation seems to work out-of-the-box. Kind regards, Robby --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 20 13:33:29 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 59F2D6CCF for <justin28@example.net>; Mon, 20 Jun 2011 13:33:29 +0000 (UTC) Received: (qmail 30062 invoked by uid 500); 20 Jun 2011 13:33:28 -0000 Delivered-To: justin28@example.net Received: (qmail 30019 invoked by uid 500); 20 Jun 2011 13:33:28 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 30012 invoked by uid 99); 20 Jun 2011 13:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:33:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justin28@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qy0-f172.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:33:21 +0000 Received: by qyk9 with SMTP id 9so1203436qyk.3 for <justin28@example.net>; Mon, 20 Jun 2011 06:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=N/sDbvUKtQTImEEc2+6ifyyD6QOKQ/EGkQFI6XMChl8=; b=Xa9Lh1XVK/O6rrWjfPsNV+nTsBd30Uyj+XgzEF8+T3sa8yD3Y6L875VPzMXzkmVmMn egM6Ru2mi/z8Y/oxOLSrb0vw5lmxHUsXRHEWhzWr7ZAFvVMib03NWN0XOkFpJqpNvrTX 2RKA88ebXNAuFBKsBNVcKuC5NsTxNNd9IzXrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=KPa3JXbeygWhfHiX5owiClDO11VygJpdY8QrphPfKYgYuL9vDIue1MlG1TCF0vEeAN P7VPrUQkWh0wHhtO3SpNTVjygkqNfuVt5zrv+JSGx/lgoqbwpU1A8GIkwgdrktsF9gO6 iCJZnfWJy47U+spkQM//yYQ4InAmIKdgLSfBM= Received: by 83.161.120.155 with SMTP id di9mr3564425qab.374.1308576779668; Mon, 20 Jun 2011 06:32:59 -0700 (PDT) Received: from [83.161.120.155] (pool-98-110-157-206.bstnma.fios.verizon.net [83.161.120.155]) by mx.google.com with ESMTPS id m16sm4116212qck.40.283.161.120.155.32.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2011 06:32:58 -0700 (PDT) Message-ID: <justin28@example.net> Date: Mon, 20 Jun 2011 09:32:50 -0400 From: Paul Joseph <justin28@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:83.161.120.155) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript References: <justin28@example.net> <justin28@example.net> <justin28@example.net> <justin28@example.net> In-Reply-To: <justin28@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Laurent, Can you give some guidance on how to integrate the Servlet Filter into Cocoon? Paul On 6/20/2011 6:37 AM, Laurent Medioni wrote: > Hi, > Maybe you should use SPNEGO before entering Cocoon, as they propose on > their site, using the Servlet Filter they provide. > Laurent > > The information in this e-mail and any attachments is confidential and may be legally privileged. > It is intended solely for the addressee or addressees. Any use or disclosure of the contents > of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. > If you have received this e-mail in error please notify the sender. > Please note that any views or opinions presented in this e-mail are solely those of the author and > do not necessarily represent those of TEMENOS. > We recommend that you check this e-mail and any attachments against viruses. > TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Mon Jun 20 16:06:46 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id 692E9686C for <justin28@example.net>; Mon, 20 Jun 2011 16:06:46 +0000 (UTC) Received: (qmail 38200 invoked by uid 500); 20 Jun 2011 16:06:46 -0000 Delivered-To: justin28@example.net Received: (qmail 38128 invoked by uid 500); 20 Jun 2011 16:06:45 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Delivered-To: moderator for justin28@example.net Received: (qmail 97961 invoked by uid 99); 20 Jun 2011 15:48:31 -0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: HttpServletRequest from Flowscript Date: Mon, 20 Jun 2011 17:46:25 +0200 Message-ID: <justin28@example.net> In-Reply-To: <justin28@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: HttpServletRequest from Flowscript Thread-Index: AcwvTqVMH3QNf1HITDeFsDRaUeMrlgAElDCg References: <justin28@example.net> <justin28@example.net> <justin28@example.net> <justin28@example.net> <justin28@example.net> From: "Laurent Medioni" <justin28@example.net> To: <justin28@example.net> X-OriginalArrivalTime: 20 Jun 2011 15:46:26.0567 (UTC) FILETIME=[36DCB970:01CC2F61] X-Virus-Checked: Checked by ClamAV on apache.org On their online documentation they show how to add their filter to web.xml, nothing to do with Cocoon ;) -----Original Message----- From: Paul Joseph [mailto:justin28@example.net]=20 Sent: lundi 20 juin 2011 15:33 To: justin28@example.net Subject: Re: HttpServletRequest from Flowscript Hi Laurent, Can you give some guidance on how to integrate the Servlet Filter into=20 Cocoon? Paul On 6/20/2011 6:37 AM, Laurent Medioni wrote: > Hi, > Maybe you should use SPNEGO before entering Cocoon, as they propose on > their site, using the Servlet Filter they provide. > Laurent > > The information in this e-mail and any attachments is confidential and may be legally privileged. > It is intended solely for the addressee or addressees. Any use or disclosure of the contents > of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. > If you have received this e-mail in error please notify the sender. > Please note that any views or opinions presented in this e-mail are solely those of the author and > do not necessarily represent those of TEMENOS. > We recommend that you check this e-mail and any attachments against viruses. > TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: justin28@example.net > For additional commands, e-mail: justin28@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net The information in this e-mail and any attachments is confidential and ma= y be legally privileged. = It is intended solely for the addressee or addressees. Any use or disclos= ure of the contents = of this e-mail/attachments by a not intended recipient is unauthorized an= d may be unlawful. = If you have received this e-mail in error please notify the sender. = Please note that any views or opinions presented in this e-mail are solel= y those of the author and = do not necessarily represent those of TEMENOS. = We recommend that you check this e-mail and any attachments against virus= es. = TEMENOS accepts no liability for any damage caused by any malicious code = or virus transmitted by this e-mail. =0D --------------------------------------------------------------------- To unsubscribe, e-mail: justin28@example.net For additional commands, e-mail: justin28@example.net From justin28@example.net Thu Jun 23 11:04:26 2011 Return-Path: <justin28@example.net> X-Original-To: justin28@example.net Delivered-To: justin28@example.net Received: from mail.apache.org (hermes.apache.org [83.161.120.155]) by minotaur.apache.org (Postfix) with SMTP id AF8CA49A3 for <justin28@example.net>; Thu, 23 Jun 2011 11:04:26 +0000 (UTC) Received: (qmail 23358 invoked by uid 500); 23 Jun 2011 11:04:26 -0000 Delivered-To: justin28@example.net Received: (qmail 23304 invoked by uid 500); 23 Jun 2011 11:04:25 -0000 Mailing-List: contact justin28@example.net; run by ezmlm Precedence: bulk list-help: <mailto:justin28@example.net> list-unsubscribe: <mailto:justin28@example.net> List-Post: <mailto:justin28@example.net> Reply-To: justin28@example.net List-Id: <users.cocoon.apache.org> Delivered-To: mailing list justin28@example.net Received: (qmail 23297 invoked by uid 99); 23 Jun 2011 11:04:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 11:04:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtpq3.tb.mail.iss.as9143.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 11:04:16 +0000 Received: from [83.161.120.155] (helo=smtp18.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from <justin28@example.net>) id 1QZhhT-0005G2-S1; Thu, 23 Jun 2011 13:03:55 +0200 Received: from [83.161.120.155] (helo=[83.161.120.155]) by smtp18.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from <justin28@example.net>) id 1QZhhQ-0001U5-MO; Thu, 23 Jun 2011 13:03:52 +0200 Subject: Re: problem with serialization Cocoon2.2 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Huib Verweij <justin28@example.net> In-Reply-To: <justin28@example.net> Date: Thu, 23 Jun 2011 13:03:50 +0200 Cc: Huib Verweij <justin28@example.net> Content-Transfer-Encoding: quoted-printable Message-Id: <justin28@example.net> References: <justin28@example.net> To: justin28@example.net, justin28@example.net X-Mailer: Apple Mail (2.1084) X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1QZhhQ-0001U5-MO X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-0.606, vereist 5, ALL_TRUSTED -1.00, BAYES_00 -1.90, RDNS_NONE 0.79, URI_CB_DOM_ODD 1.50, WEIRD_PORT 0.00) X-ZiggoSMTP-MailScanner-From: justin28@example.net X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Hi Robby, did you fix it already? Seems like a strange situation to me. Maybe Cocoon gets confused by the p-topic serializer, even though it's = really a XML serializer in disguise. You could move the "work" to a = separate pipeline, serialize that to p-topic in "basictype/*/*/*" and = serialize that to HTML in "topic2xhtml/**".=20 Hartelijke groet, Huib Verweij. Op 17 jun 2011, om 13:18 heeft Robby Pelssers het volgende geschreven: >=20 > Hi all, >=20 > I have a strange situation I don't really understand. >=20 > In my sitemap I have following patterns: >=20 > <!--=20 > {1}: basictype-id > {2}: state > {3}: topic-id > --> > <map:match pattern=3D"basictype/*/*/*"> > <map:generate src=3D"xquery/getTopic.xquery" = type=3D"queryStringXquery"> > <map:parameter name=3D"basictypeId" value=3D"{1}"/> = =20 > <map:parameter name=3D"state" value=3D"{2}"/> > <map:parameter name=3D"topicId" value=3D"{3}"/> = =20 > </map:generate> > <map:transform src=3D"xslt/postprocessXqueryResults.xslt" = type=3D"saxon"/> > <map:transform src=3D"xslt/urlTransformer.xslt" = type=3D"saxon"> > <map:parameter name=3D"contextpath" = value=3D"{request:contextPath}"/> > <map:parameter name=3D"drawingExtension" = value=3D"{request-param:drawingExtension}"/> =20 > </map:transform> =20 > <map:serialize type=3D"p-topic"/> =20 > </map:match> >=20 > <map:match pattern=3D"topic2xhtml/**"> > <map:generate src=3D"cocoon:/{1}"/> > <map:transform src=3D"xslt/dita/xslhtml/dita2xhtml.xsl" = type=3D"saxon"/> > <map:serialize type=3D"xhtml"/> > </map:match> >=20 > <map:match pattern=3D"test"> > <map:generate src=3D"data/pinning_information.xml"/> > <map:serialize type=3D"xml"/> > </map:match> >=20 > And configured following serializer: >=20 > <map:serializer name=3D"p-topic" = logger=3D"sitemap.serializer.xml" =20 > mime-type=3D"text/xml;charset=3Dutf-8" = src=3D"org.apache.cocoon.serialization.XMLSerializer"> > <encoding>UTF-8</encoding> > <doctype-public>-//NXP//DTD P-Topic//EN</doctype-public> > <doctype-system>${p-topic-dtd}</doctype-system> > </map:serializer> >=20 > The pattern "basictype/*/*/*" generates a DITA topic by transforming = the result of an Xquery. >=20 > When I invoke = http://localhost:8888/topics/basictype/PH3330L/released/pinning_informatio= n?drawingExtension=3Dgif in the browser and save the result
{'source': 'Apache Software Foundation Public Mail Archives'}