On Tue, 26 Jun 2001, Alex Fernández wrote:
> tomcat -config server.xml
> passing a new server.xml file. Can I do something similar in Tomcat 3.3?
> I cannot find a similar option in the docs; I believe it's ignoring it.
Of course. Everything that works in 3.2 should also work ( better ) in 3.3
:-) ( or we have a bug to fix )
I'll check that. ( the syntax of server.xml should also be compatible - in
the sense that 3.3 still accepts the 3.2 syntax, even if it defaults to a
simpler one - the one used by ant )
> If this is not possible, perhaps I should add a new .xml file to the
> /conf directory and make it run with it? Can Tomcat 3.3 use webapps that
> are not inside /webapp?
Sure. Just create a new conf/apps-myApp.xml ( using the apps-example.xml
as template ), pointing to the dir.
It can also autoload all the apps from a different directory - in
server.xml you can add a new <AutoWebApp dir="/mywebapp" host="DEFAULT" />
You can specify a different virtual host, of course, or set it to
use the first level of subdirs as virtual host that will be added
automatically and the second for cotnext names in that host.
You'll also need to add an <AutoDeploy> if you want .war files expanded
( the current config defaults to the previous behavior, .war files
expanded in the same dir - but you can keep them separated ).
Speaking of that, you can also try the auto-reload feature when changing
the .war file ( which should be re-deployed and the app reloaded ).
Costin