• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Virtual host apps reload localhost app

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, this is a weird problem and I cannot figure out why it is doing it. Running Tomcat 5.5.9 on Windows 2003 server. There are 200 sites deployed on the server, each having its own virtual host and one deployer application deployed under localhost.

What I see happening is on Tomcat startup every virtual host accesses web.xml of the localhost application as well as its own. How can it be?

My localhost application defined in server.xml like so:

<Engine defaultHost="localhost" name="Catalina">
<Host autoDeploy="true" appBase="E:\Webspace\" name="localhost">
</Host>

.....

Application has its context defined in ROOT.xml within

Tomcat\conf\Catalina\localhost\

<Context docBase="deployerEngine" path="">
<ResourceLink name="jdbc/conn" global="jdbcConn"/>
</Context>


All websites are described in server.xml:

<Host autoDeploy="false" name="site1.com" appBase="E:\Webspace\">
<Alias>www.site1.com</Alias>
</Host>

Every site has its ROOT.xml defined in Tomcat\conf\Catalina\site1.com\

<Context docBase="site1/ROOT" path="">
<ResourceLink name="jdbc/conn" global="jdbcConn"/>
</Context>


There is nothing in META-INF for any of the application, and every application has its on web.xml file.

I am lost, every time I restart Tomcat every application that has a virtual host seem to load the localhost application as well. However for sites without a virtual host, that doesnt happen. Once Tomcat started all applications work fine, the only downside is that it seem to use triple the memory compared to same 200 sites running on another server without localhost application (deployer). Any ideas? Thank you.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic