ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | August 2005 Index

<--  Date Index  --> <--  Thread Index  -->

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


Hi,
 
You can nest one or more Context elements inside the Host element,
each representing a different ! web application.
...
<Host  appBase="webapps"....>
  <Context path="" docBase="alpinPortal2" debug="0" />
</Host>
...
Regard to this, first instance of application accrued under '/' context.
 
Automatic application deployment will be accrued if parameter 'deployOnStartup' (defined in host tag)
is set to true(by default). Any subdirectory (alpinPortal2) within the application base directory (appBase="webapps")
will receive an automatically generated Context element,even if this directory 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="false"' and leave old name of application 'alpinPortal2'
 
<Host ... appBase="webapps" deployOnStartup="false" ... >
  <Context path="" docBase="alpinPortal2" debug="0" />
</Host>
 
in that case only one instance of application will be deployed under '/' context.
 
Your solution is good to rename the webapp/alpinPortal2  folder to webapp/ROOT and leave tomcat default configuration.
 
Regards,
  Radivoj Milin
Enhydra Development Team

----- Original Message -----
From: "christoph moar" <christoph.moar@xxxxxxxx>
Sent: Wednesday, August 17, 2005 7:30 PM
Subject: RE: [enhydra] help: bug? when using a default context in tomcat/enhydra

> Sorry,
>
> 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,
>
> 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.
>
> still - any hints as to why the other solution (adding
> a default context in server.xml) is not working?
>
> thanks
> christoph
>
> --
> http://www.alpin.it         software, consulting & strategy
>
> 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                 christoph.moar@xxxxxxxx

>
>
>


>
> --
> You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list.
> To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
> For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
 


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.