tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: How to setup webapp specific parameter for virtual host in Tomcat?
Date Wed, 02 Mar 2011 13:30:23 GMT

docBase
The value of this field must NOT be set when the Context is
        configured using a META-INF/context.xml file=20
as it will be
        inferred by the automatic deployment process.

Martin=20
______________________________________________=20
Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit=
=E9
=20
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng=
er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter=
leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l=
ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin=
dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w=
ir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes=
 pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat=
isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e=
 ou la copie de ceci est interdite. Ce message sert =E0 l'information seule=
ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d=
onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation=
=2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni=
.




> To: users@tomcat.apache.org
> Subject: How to setup webapp specific parameter for virtual host in Tomca=
t?
> Date: Wed=2C 2 Mar 2011 13:50:09 +0100
> From: joe.k@centrum.cz
>=20
>=20
> Hi everybody=2C
> I would like to have this setup in Tomcat:
>=20
> 1. virtual host
> 2. webapp resides directly in ROOT and is autoDeployed
> 3. I need to pass some specific webapp parameter in Tomcat configuration =
(outside war)
>=20
> 1st I have this scenario:
>=20
> <Host name=3D"my.domain.com" appBase=3D"vhosts/my.domain.com" unpackWARs=
=3D"true" autoDeploy=3D"true">
> </Host>
>=20
> and ROOT.war in directory $CATALINA_BASE/vhosts/my.domain.com/
>=20
> -> everything works fine
>=20
> 2nd now I try to add the context parameter
>=20
> <Host name=3D"my.domain.com" appBase=3D"vhosts/my.domain.com" unpackWARs=
=3D"true" autoDeploy=3D"true">
> <Context docBase=3D"/" reloadable=3D"true">
> <Parameter name=3D"serverRole" value=3D"dev" override=3D"true"/>
> </Context>
> </Host>
>=20
> -> app is no more accessible by my.domain.com (404)
>=20
> -> I also tried to move the Context from Host to separate ROOT.xml file r=
esiding in $CATALINA_BASE/conf/Catalina/my.domain.com/ but with no success
>=20
> Actually I don't know what to set for path or docBase=2C but it seems tha=
t I am lost.
>=20
> With kind regards=2C
> JoeK
>=20
> ---------------------------------------------------------------------
> To unsubscribe=2C e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands=2C e-mail: users-help@tomcat.apache.org
>=20
 		 	   		  =

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message