Is possible to subdir webapps directory?

Alessandro A. Garbagnati

Additional info:
I'd like to organize my webapps in subdirectories of the tomcat/webapps/ directory. I have right now a setup like:
/tomcat/webapps/<client>/application
The problem that I have is that those applications are not started automatically upon tomcat startup. I do have the <load-on-startup> tags in my individual web.xml files but it doesn't seem to do anything.

Unfortunately, this structure can't really work.
Tomcat, in fact, consider all the subdirectories under the webapps directory as default contexts. In this case it considers all the <client> directories as contexts and looks for the WEB-INF/web.xml for each of them.

So, in your design, Tomcat considers the client's directories (and not their subdirectories) as web applications.

You can organize all your applications using that structure, but do not use the webapps directory (use any other location) and you have to define all the context manually in the server.xml, or just put all the applications in the webapps directory.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact