2011/10/21 Konstantin Kolinko <knst.koli...@gmail.com>: > 2011/10/21 Olivier Lamy <ol...@apache.org>: > >> 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: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > > -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org