jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bret Kumler" <bkum...@firstam.com>
Subject RE: catifywar question
Date Wed, 17 Sep 2003 20:16:42 GMT
Thanks

-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Wednesday, September 17, 2003 10:21 AM
To: 'Cactus Users List'
Subject: RE: catifywar question


Yes. Although you only have to provide Cactus redirectors/mappings
definition if they're not the default ones as the <cactifywar> will
otherwise automatically add them.

Thanks
-Vincent

> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: 17 September 2003 17:54
> To: Cactus Users List
> Subject: catifywar question
> 
> <catifywar mergefile>
> Does it merge 2 xml files that already contain data.
> 
> For example, temp-web.xml contains:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
>      <servlet>
>         <servlet-name>ServletRedirector</servlet-name>
> 
>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-
> class
> >
>         <init-param>
>           <param-name>param1</param-name>
>           <param-value>value1 used for testing</param-value>
>         </init-param>
>     </servlet>
>     <servlet>
>         <servlet-name>ServletTestRunner</servlet-name>
> 
>
<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servle
t-
> cl
> ass>
>    </servlet>
>    <servlet-mapping>
>         <servlet-name>ServletRedirector</servlet-name>
>         <url-pattern>/ServletRedirector</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>         <servlet-name>ServletTestRunner</servlet-name>
>         <url-pattern>/ServletTestRunner</url-pattern>
>    </servlet-mapping>
> </web-app>
> 
> I want to merge temp-web.xml with web.xml but web.xml contains the
> following:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
>     <servlet>
>         <servlet-name>Knex</servlet-name>
>         <servlet-class>weblogic.knex.dispatcher.KnexServlet</servlet-
> class>
>         <init-param>
>             <param-name>QueueJNDIName</param-name>
>             <param-value>jws.queue</param-value>
>         </init-param>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.wsdl</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.ctrl</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.java</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.jsx</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.class</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.xmlmap</url-pattern>
>     </servlet-mapping>
>     <mime-mapping>
>         <extension>map</extension>
>         <mime-type>text/xml</mime-type>
>     </mime-mapping>
> </web-app>
> 
> Will the merge produce this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
>     <servlet>
>         <servlet-name>Knex</servlet-name>
>         <servlet-class>weblogic.knex.dispatcher.KnexServlet</servlet-
> class>
>         <init-param>
>             <param-name>QueueJNDIName</param-name>
>             <param-value>jws.queue</param-value>
>         </init-param>
>     </servlet>
> <servlet>
>         <servlet-name>ServletRedirector</servlet-name>
> 
>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-
> class
> >
>         <init-param>
>           <param-name>param1</param-name>
>           <param-value>value1 used for testing</param-value>
>         </init-param>
>     </servlet>
>     <servlet>
>         <servlet-name>ServletTestRunner</servlet-name>
> 
>
<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servle
t-
> cl
> ass>
>    </servlet>
> <servlet-mapping>
>         <servlet-name>ServletRedirector</servlet-name>
>         <url-pattern>/ServletRedirector</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>         <servlet-name>ServletTestRunner</servlet-name>
>         <url-pattern>/ServletTestRunner</url-pattern>
>    </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.wsdl</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.ctrl</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.java</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.jsx</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.class</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>Knex</servlet-name>
>         <url-pattern>*.xmlmap</url-pattern>
>     </servlet-mapping>
>     <mime-mapping>
>         <extension>map</extension>
>         <mime-type>text/xml</mime-type>
>     </mime-mapping>
> </web-app>
> 
> Thanks,
> 
> Bret


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org




Mime
View raw message