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:
<beans xmlns="http://www.springframework.org/schema/beans" 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"> <bean id="com.mycompany.block2.service" class="org.apache.cocoon.sitemap.SitemapServlet"> <servlet:context mount-path="/block2" context-path="blockcontext:/block2/"/> </bean> <bean id="com.mycompany.block2.wicketapp" class="org.apache.wicket.protocol.http.WicketServlet"> <servlet:init-params> <entry key="applicationClassName"> <value>com.mycompany.WicketApplication</value> </entry> </servlet:init-params> <servlet:context mount-path="/block2-wicket" context-path="blockcontext:/block2-wicket/"/> </bean> </beans> 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] Offending resource: URL [jar:file:/C:/Users/ggruber/.m2/repository/com/mycompany/block2/1.0-SNAPSHOT/block2-1.0-SNAPSHOT.jar!/META-INF/cocoon/spring/servlet-service.xml] at org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementPar ser.parse(AbstractSettingsElementParser.java:148) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N amespaceHandlerSupport.java:68) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa rseCustomElement(BeanDefinitionParserDelegate.java:1078) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa rseCustomElement(BeanDefinitionParserDelegate.java:1068) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe rBeanDefinitions(XmlBeanDefinitionReader.java:495) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:390) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:340) What is wrong here? Any suggestions? thanx gabriel ______________________ Mag. Gabriel Gruber Senior Consultant +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Workflow EDV GmbH, Dannebergplatz 6/23, A-1030 Wien mailto:[EMAIL PROTECTED] http://www.workflow.at
