Two solutions:

1. Rename dirname to ROOT (recommended)

2. Move dirname out of webapps.

Essentially the webapp is being deployed once because of the ROOT.xml file and once because of it's presence in webapps with a name other than ROOT.

--David

Velja Radenkovic wrote:

Hello

I set the web application directory to be a ROOT
by creating dirname.xml
in the  CATLINA_HOME/conf/Catalina/localhost
with content '<Context path="" docBase="${catalina.home}/webapps/dirname"
debug="0"/>' ...

My problem is that there are two contexts initialized now and
contextInitialized of my listener is called twice for each context once
(which is perfectly normal) ...
But I'm doing some job in contextInitialized and it gets duplicated.
How I can have some arbitrary directory deployed as ROOT i.e / and not
having two contexts deployed (other under /somedir)?

I guess that reason is that "${catalina.home}/webapps/dirname" overlaps the
webapps folder ... If I put it somwhere else not under webapps tom will
initialize it only once?

Thanks,
Velja Radenkovic



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to