If you are using a WAR file, put your entire Context block into a file called (your-webapp).xml and stick it in META-INF. Whatever is legal in a Context block in server.xml is also legal there. Then you can deploy the WAR file using the manager app froma remote system.


The admin and manager apps themselves do the same thing, check out admin.xml etc in the default distribution.

John

Kevin Passey wrote:

John,

I can easily deploy a basic app using the manager. But when it comes to
deploying something that needs additional "Context" information I come
un-stuck.

I basically have an app that I want to connect to an AS/400 database using
connection pooling.

The only way I can get it to work is to manually insert the entries in the
server XML file and then re-start.

Any other pointer greatly appreciated.

Regards

Kevin


-----Original Message----- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 13:45 To: Tomcat Users List Subject: Re: Which is the best way to install an application with connection p ooling



There are a number of ways.

If autoDeploy = "true" then you can just drop the WAR file in the Host's appBase directory.

You can also use the manager app's various tasks (install, deploy, etc):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

This is easily accomplished with ant.

John

Kevin Passey wrote:


I have normally stopped the server - edited the server XML file, put my

war


file in the webapps folder and re-started tomcat.

Using the manager app - is there a way I can do this 1)from a remote

system


and 2)without manually editing the server XML file.

I've have tried putting the jndi info using the admin console but I keep
getting NULL driver exceptions.

Thanks

Kevin





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

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




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



Reply via email to