« Return to Thread: Duplicate entries when merging wars

Re: Duplicate entries when merging wars

by S. Ali Tokmen :: Rate this Message:

| View in Thread

Hi Markus

You can open a ticket, and even post the patch if you like for the first
issue.

The xmlns is added when there is no TDT nor XML NS defined in any of the
web.xml files; if you add an XML NS to the source XML file it should not
add.

Cheers

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com


On 2012/03/08 11:55, mäce wrote:

> Hi Ali,
>
> one more thing.
> When i have a filter with a init-param definition, in the resulting web.xml,
> this init-param appears twice, which leads to a deployment error on weblogic
> 10.3.
>
> E.g.
>
>     <filter>
>         <filter-name>DZLoginFilter</filter-name>
>         <filter-class> de.dzbw.commons.web.security.ExceptionHandlerFilter
>         </filter-class>
>         <init-param>
>             <description>Url der Startseite des Verfahrens, default ist
>                 /dz-commons/login/willkommen.jsf</description>
>             <param-name> de.dzbw.commons.web.security.LoginFilter.LOGIN_URI
>             </param-name>
>             <param-value>/index.jsf</param-value>
>         </init-param>
>     </filter>
> in each web.xml merges to
>
>     <filter>
>         <filter-name>DZLoginFilter</filter-name>
>         <filter-class> de.dzbw.commons.web.security.ExceptionHandlerFilter
>         </filter-class>
>         <init-param>
>             <description>Url der Startseite des Verfahrens, default ist
>                 /dz-commons/login/willkommen.jsf</description>
>             <param-name> de.dzbw.commons.web.security.LoginFilter.LOGIN_URI
>             </param-name>
>             <param-value>/index.jsf</param-value>
>         </init-param>
>         <init-param>
>             <description>Url der Startseite des Verfahrens, default ist
>                 /dz-commons/login/willkommen.jsf</description>
>             <param-name> de.dzbw.commons.web.security.LoginFilter.LOGIN_URI
>             </param-name>
>             <param-value>/index.jsf</param-value>
>         </init-param>
>     </filter>
>
> Should I file a bug for that? I could solve the problem by checking if this
> init-param name exists in WebXXmlMerger.mergeFilters(WebXml).
>
>
> Another Problem is the addition of xmlns="" /
> xmlns="http://java.sun.com/xml/ns/javaee"> for some elements, because
> weblogic servers complains about that.
>
> Is there a way to prevent this?
>
>
> Markus

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Duplicate entries when merging wars