<img
src="http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif" />
I'm aware of the context container reference doc and the following wiki
page:
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application.3F
I raised this request because whatever approach I choose I've find a hint
in the documentation which doesn't recommend to do so.
First, I don't like to rename my web application into ROOT.war or copy the
content into the ROOT directory. I very much like the approach to define
context information in META-INF/context.xml or conf/Catalina/localhost.
It's not best practise to define context information in server.xml which I
fully support also.
Method 2.1 and 2.2 are kind of hacky.
I'd very much like to be able to deploy my war in webapps and configure
either the path in META-INF/context.xml to "/" or define docBase in
conf/Catalina/localhost/ROOT.xml.
Wouldn't that make sense?
Thanks
Oliver
Konstantin
Kolinko
<knst.kolinko@gma An
il.com> Tomcat Users List
<[email protected]>
08/26/2011 01:02 Kopie
PM
Thema
Re: Configured root path in
Bitte antworten META-INF/context.xml ignored
an
"Tomcat Users
List"
<[email protected]
che.org>
2011/8/26 Oliver Wulff <[email protected]>:
>
> I've tried to add a context.xml in META-INF/context.xml which is part of
> myweb.war:
> <Context docBase="myweb" path="/" reloadable="false"/>
docBase and path attributes are invalid here
> Have I missed anything?
1) FAQ
2) search mailing list archives
3) See docs for Context element in Configuration reference.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
******************* BITTE BEACHTEN *******************
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]