Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 79193 invoked from network); 11 Oct 2007 16:05:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 16:05:19 -0000 Received: (qmail 69067 invoked by uid 500); 11 Oct 2007 16:05:03 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 68982 invoked by uid 500); 11 Oct 2007 16:05:03 -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 68971 invoked by uid 99); 11 Oct 2007 16:05:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 09:05:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.237.222.182] (HELO smtp.nada.kth.se) (130.237.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 16:05:04 +0000 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [192.168.105.137] (noname.tim.se [80.72.0.178] (may be forged)) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id l9BFv8gH022753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Oct 2007 17:57:12 +0200 (MEST) Message-ID: <470E47CE.8090102@nada.kth.se> Date: Thu, 11 Oct 2007 17:57:02 +0200 From: Daniel Fagerstrom User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Integration of Wicket Servlet within C2.2 Block with servlet service -> Problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Gabriel Gruber skrev: > > Dear C2.2 Dev-Community! > > I just played around with Wicket and wanted to integrate a HelloWorld > Wicket application within a C2.2 Block as a servlet service: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:servlet="http://cocoon.apache.org/schema/servlet" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://cocoon.apache.org/schema/servlet > http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd"> > > class="org.apache.cocoon.sitemap.SitemapServlet"> > context-path="blockcontext:/block2/"/> > > > class="org.apache.wicket.protocol.http.WicketServlet"> > > > com.mycompany.WicketApplication > > > context-path="blockcontext:/block2-wicket/"/> > > > > > While this seems generally ok, there seems to be a problem with the > spring namespacehandler for the servlet service tags. When i start > spring an exception is thrown like this... > Caused by: > org.springframework.beans.factory.BeanDefinitionStoreException: Unable > to read spring configurations from classpath*:META-INF/cocoon/spring; > nested exception is > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > *Configuration problem: Cannot locate BeanDefinitionDecorator for > element [init-params]* ... > What is wrong here? > > Any suggestions? The servlet:context element must be the root element of the elements in the servlet: namespace. The error message basically sys that there is no handler for the servlet:init-params as a root element. Modify the above bean definition to: com.mycompany.WicketApplication And see if it works. /Daniel