----- Original Message ----- Da : Reinhard Pötz <[EMAIL PROTECTED]> A : [email protected] Oggetto : Re: [2.2] XPatch web.xml Data : Tue, 17 Jun 2008 08:32:03 +0200
> [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? Sorry, i missed to reply. The XPatch works very weel. The problem was another. Thank you very match for the great work on cocoon 2.2, I almost finished with the porting of my cocoon webapps. Bye, Alessandro > > -- > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
