2011/10/21 Konstantin Kolinko <[email protected]>:
> 2011/10/21 Olivier Lamy <[email protected]>:
>
>> During dev on tomcat7 integration, I have just noticed that using the
>> embeded Tomcat class and adding a webapp as it:
>> tomcat.addWebapp( contextPath, path to a war file );
>> If the war file contains a context file ( META-INF/context.xml ) it's
>> not use automatically when adding the context/webapp.
>> So I have to manually add it with: setConfigFile ( new URL(
>> "jar:file:" + warPath + "!/META-INF/context.xml" ) ) (if exists in the
>> war).
>>
>> Do you consider that as an issue ?
>>
>
> Do you run unpacked war?

nope a packed war.
just using tomcat.addWebapp( contextPath, path to a war file );

>
> What if there is <appname>.xml in conf/Catalina/localhost?  Currently
> it would take priority over the one inside the war file. Should it be
> ignored in your use case?
>
> (HostConfig#deployWAR(...)).
>
>
> I think that we use Tomcat class mostly for testing, but there is no
> test that covers this use case, so no wonder that there is no such
> code there.  I think you can file an enhancement request.
k
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to