Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 46572 invoked from network); 31 Dec 2006 12:28:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Dec 2006 12:28:14 -0000 Received: (qmail 88746 invoked by uid 500); 31 Dec 2006 12:28:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 88668 invoked by uid 500); 31 Dec 2006 12:28:19 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 88656 invoked by uid 99); 31 Dec 2006 12:28:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [130.237.222.115] (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Dec 2006 04:28:16 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [85.225.175.124] (c-7cafe155.188-1-64736c14.cust.bredbandsbolaget.se [85.225.175.124]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id kBVCKAer026502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 31 Dec 2006 13:20:18 +0100 (MET) Message-ID: <4597AAF8.8030803@nada.kth.se> Date: Sun, 31 Dec 2006 13:20:08 +0100 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Problem with the Eclipse Jetty launcher Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org While trying to use the Eclipse Jetty launcher for testing cocoon-webapp I got the error: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. Which was discussed in http://marc2.theaimsgroup.com/?l=xml-cocoon-dev&m=116724829330124&w=2 (this happens if the container doesn't support servlet 2.4). I found this strange as the web.xml in cocoon-webapp is configured to use servlet 2.4 and Jetty 5.1 that is used in the Eclipse Jetty Launcher also supports servlet 2.4. After some searching at the web I found out that Jetty 5.1 doesn't support request listener by default. The way to turn on request listener support is to take a copy of the file etc/webdefault.xml in the Jetty 5.1 distribution and uncomment the jsr154 filter definition in the end of the file. After that you need to go to your Jetty launcher run configuration in Eclipse, choose "Use custom webdefaults config file" and point it to your modified webdefault.xml file. After the Jetty launcher works with cocoon-webapp again. /Daniel