cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Vincelli" ...@alessandro.vincelli.name>
Subject Re: [2.2] XPatch web.xml
Date Tue, 17 Jun 2008 07:41:08 GMT

----- Original Message -----
Da : Reinhard Pötz <reinhard@apache.org>
A : users@cocoon.apache.org
Oggetto : Re: [2.2]  XPatch web.xml
Data : Tue, 17 Jun 2008 08:32:03 +0200

> av@alessandro.vincelli.name 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                 
> reinhard@apache.org
> __________________________________________________________
> ______________
> 
> ----------------------------------------------------------
> ----------- To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org For additional
> commands, e-mail: users-help@cocoon.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message