RE: [enhydra] help: bug? when using a default context in tomcat/enhydra

"Radivoj Milin" <[email protected]> Thu, 18 Aug 2005 13:12:05 +0200
Newsgroups gmane.comp.java.enhydra.general
Message-ID <007c01c5a3e5$ab26c450$1700a8c0@talicnitom>
This is a multi-part message in MIME format...

------------=_1124363527-23314-86
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0079_01C5A3F6.6E2EF2A0"

This is a multi-part message in MIME format.

------=_NextPart_000_0079_01C5A3F6.6E2EF2A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

You can nest one or more Context elements inside the Host element,
each representing a different ! web application.
...
<Host  appBase=3D"webapps"....>
  <Context path=3D"" docBase=3D"alpinPortal2" debug=3D"0" />
</Host>
...
Regard to this, first instance of application accrued under '/' context.

Automatic application deployment will be accrued if parameter 'deployOnStar=
tup' (defined in host tag)
is set to true(by default). Any subdirectory (alpinPortal2) within the appl=
ication base directory (appBase=3D"webapps")
will receive an automatically generated Context element,even if this direct=
ory is not mentioned in the conf/server.xml file.

Regard to this, second instance of application accrued under '/alpinPortal2=
' context.

You can try to set parameter in host tag 'deployOnStartup=3D"false"' and le=
ave old name of application 'alpinPortal2'

<Host ... appBase=3D"webapps" deployOnStartup=3D"false" ... >
  <Context path=3D"" docBase=3D"alpinPortal2" debug=3D"0" />
</Host>

in that case only one instance of application will be deployed under '/' co=
ntext.

Your solution is good to rename the webapp/alpinPortal2  folder to webapp/R=
OOT and leave tomcat default configuration.

Regards,
  Radivoj Milin
Enhydra Development Team

----- Original Message -----=20
From: "christoph moar" <[email protected]>
To: <[email protected]>
Sent: Wednesday, August 17, 2005 7:30 PM
Subject: RE: [enhydra] help: bug? when using a default context in tomcat/en=
hydra


> Sorry,
>=20
> i just realized that if i rename the webapp/alpinPortal2
> folder to webapp/ROOT, then change the path references
> in log4j.xml and context.xml,
>=20
> well, then all is fine. the application is now available
> under
> http://localhost:8080/Portal.po (without the alpinPortal2
> or ROOT path), and just one single application will be
> started.
>=20
> still - any hints as to why the other solution (adding
> a default context in server.xml) is not working?
>=20
> thanks
> christoph
>=20
> --
> http://www.alpin.it         software, consulting & strategy
>=20
> Christoph Moar                          Dipl. Inform. Univ.
> alpin gmbh srl          management & technology consultants
> tel +39 0471 056007 fax +39 0471 056005 gsm +39 348 3057012
> lanciastr. 8b  via lancia 8b    bozen 39100 bolzano   italy
> http://www.alpin.it                 [email protected]
>=20
>=20
>=20
>=20


---------------------------------------------------------------------------=
-----


>=20
> --
> You receive this message as a subscriber of the [email protected] mai=
ling list.
> To unsubscribe: mailto:[email protected]
> For general help: mailto:[email protected]?subject=3Dhelp
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>

------=_NextPart_000_0079_01C5A3F6.6E2EF2A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You can nest one or more Context elements =
inside=20
the Host element,<BR>each representing a different ! web=20
application.<BR>...<BR>&lt;Host&nbsp; appBase=3D"webapps"....&gt;<BR>&nbsp;=
=20
&lt;Context path=3D"" docBase=3D"alpinPortal2" debug=3D"0"=20
/&gt;<BR>&lt;/Host&gt;<BR>...<BR>Regard to this, first instance of applicat=
ion=20
accrued under '/' context.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Automatic application deployment will be a=
ccrued if=20
parameter 'deployOnStartup' (defined in host tag)<BR>is set to true(by defa=
ult).=20
Any subdirectory (alpinPortal2) within the application base directory=20
(appBase=3D"webapps")<BR>will receive an automatically generated Context=20
element,even if this directory is not mentioned in the conf/server.xml=20
file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regard to this, second instance of applica=
tion=20
accrued under '/alpinPortal2' context.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You can try to set parameter in host tag=
=20
'deployOnStartup=3D"false"' and leave old name of application=20
'alpinPortal2'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;Host ... appBase=3D"webapps"=20
deployOnStartup=3D"false" ... &gt;<BR>&nbsp; &lt;Context path=3D""=20
docBase=3D"alpinPortal2" debug=3D"0" /&gt;<BR>&lt;/Host&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>in that case only one instance of&nbsp;app=
lication=20
will be deployed under '/' context.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Your solution is good to rename <FONT=20
face=3D"Times New Roman" size=3D3>the webapp/alpinPortal2 &nbsp;folder to=
=20
webapp/ROOT and leave tomcat default configuration.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><PRE style=3D"MARGIN: 0em"><FONT size=3D2>Regards,
  Radivoj Milin
Enhydra Development Team</FONT></PRE><BR></FONT></DIV>
<DIV>----- Original Message -----=20
<DIV>From: "christoph moar" &lt;<A=20
href=3D"mailto:[email protected]">[email protected]</A>&gt;</DI=
V>
<DIV>To: &lt;<A=20
href=3D"mailto:[email protected]">[email protected]</A>&gt;</DIV>
<DIV>Sent: Wednesday, August 17, 2005 7:30 PM</DIV>
<DIV>Subject: RE: [enhydra] help: bug? when using a default context in=20
tomcat/enhydra</DIV></DIV>
<DIV><BR></DIV>&gt; Sorry,<BR>&gt; <BR>&gt; i just realized that if i renam=
e the=20
webapp/alpinPortal2<BR>&gt; folder to webapp/ROOT, then change the path=20
references<BR>&gt; in log4j.xml and context.xml,<BR>&gt; <BR>&gt; well, the=
n all=20
is fine. the application is now available<BR>&gt; under<BR>&gt; <A=20
href=3D"http://localhost:8080/Portal.po">http://localhost:8080/Portal.po</A=
>=20
(without the alpinPortal2<BR>&gt; or ROOT path), and just one single applic=
ation=20
will be<BR>&gt; started.<BR>&gt; <BR>&gt; still - any hints as to why the o=
ther=20
solution (adding<BR>&gt; a default context in server.xml) is not=20
working?<BR>&gt; <BR>&gt; thanks<BR>&gt; christoph<BR>&gt; <BR>&gt; --<BR>&=
gt;=20
<A=20
href=3D"http://www.alpin.it">http://www.alpin.it</A>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
software, consulting &amp; strategy<BR>&gt; <BR>&gt; Christoph=20
Moar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
Dipl. Inform. Univ.<BR>&gt; alpin gmbh=20
srl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; management &amp;=
=20
technology consultants<BR>&gt; tel +39 0471 056007 fax +39 0471 056005 gsm =
+39=20
348 3057012<BR>&gt; lanciastr. 8b&nbsp; via lancia 8b&nbsp;&nbsp;&nbsp; boz=
en=20
39100 bolzano&nbsp;&nbsp; italy<BR>&gt; <A=20
href=3D"http://www.alpin.it">http://www.alpin.it</A>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
<A=20
href=3D"mailto:[email protected]">[email protected]</A><BR>&gt;=
&nbsp;<BR>&gt;=20
<BR>&gt; <BR>&gt;=20
<P>
<HR>

<P></P>&gt; <BR>&gt; --<BR>&gt; You receive this message as a subscriber of=
 the=20
<A href=3D"mailto:[email protected]">[email protected]</A> mailing=
=20
list.<BR>&gt; To unsubscribe: <A=20
href=3D"mailto:[email protected]">mailto:enhydra-unsubscrib=
[email protected]</A><BR>&gt;=20
For general help: <A=20
href=3D"mailto:[email protected]?subject=3Dhelp">mailto:[email protected]=
rg?subject=3Dhelp</A><BR>&gt;=20
ObjectWeb mailing lists service home page: <A=20
href=3D"http://www.objectweb.org/wws">http://www.objectweb.org/wws</A><BR>&=
gt;
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0079_01C5A3F6.6E2EF2A0--



------------=_1124363527-23314-86
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1124363527-23314-86--