[EMAIL PROTECTED] wrote:
In order to patch web.xml I see the maven-plugins docs
http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1360_1_1.html
then I created patch file (.xweb):
META-INF\cocoon\xpatch\hibernatefilter.xweb
that contains:
<xweb xpath="/web-app" insert-after="filter[last()]">
<!-- Hibernate filter -->
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>
org.deals.framework.hb.HibernateFilterSession
</filter-class>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.cflow</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/deals-3/continue</url-pattern>
</filter-mapping>
</xweb>
after the cocoon:prepare
the web.xml is completely broken
for example the hibernate filter become:
<!-- Hibernate filter -->
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter</filter-class>
<init-param>
<param-name>filter-class</param-name>
<param-value>org.deals.framework.hb.HibernateFilterSession</param-value>
</init-param>
</filter>
any suggestion?
From a quick glance I'd say that this is the expected result. The
XPatch file is rewritten to make the reloading classloader work.
Can you provide us with a stacktrace that gives us more hints about what
goes wrong?
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member [EMAIL PROTECTED]
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]