To setup a webapp outside the tomcat webapp dir, you can drop in a context.xml file in the:
/path/to/tomcat/conf/Catalina/localhost/ directory


so, in that dir, if I have a servlet whose path is /myproject

a minimal file (named myproject.xml) looks like this:

<Context
        path="myproject" reloadable="true"
        docBase="/path/to/your/weapp/context"
</Context>

maybe you'll have a workdDir in their if you need one.

Again, just drop that xml file in that folder /../../conf/Catlina/localhost.

Tomcat will see it when it loads up (I think you'll have to restart tomcat) .. and that's it.

You'll see it listed in the manager app.

b) I need to edit the server.xml for this application and add some DBCP stuff, where does this live now?

/path/to/tomcat/conf/server.xml


-steve


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to