tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Tolborg <n...@tolborg.dk>
Subject Re: Tomcat 4.1+ Ant install + JNDI DataSource
Date Wed, 16 Oct 2002 00:12:55 GMT
Jacob Kjome wrote:

>
> You need to use a context configuration file.
>
> Go to:
>
> http://localhost:8080/manager/html/list
>
> Then enter your path in the "Path:" text box and enter file protocol 
> URL in the "Config URL:" text box such as:
>
> Path:              /myapp
> Config URL:  
> file:///D:/myclasses/webapps/webapp-myapp/build/WEB-INF/ccf.xml
>
> in your ccf.xml, you just have a <Context ...> element and anything 
> that is valid within that context element.  Now you have a place to 
> put all your JNDI resource config for you app.
>
> You can also use the catalina ant tasks to do this for you.  See 
> examples in the tomcat docs (appdev).
>
> My install target looks like this:
>
> <target name="install" depends="compile,manager.init"
>             description="Install application to servlet container" >
>         <install
>             url="${manager.url}"
>             username="${manager.username}"
>             password="${manager.password}"
>             config="${app.ccf}"
>             path="${app.path}" />
> </target>
>
Thanks - that worked. Funny... just before your mail popped in I found a 
description of the same thing here:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp5.html

Perhaps a good suggestion for the "App Developer Guide" would be to 
include the config attribute in their sample target.


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message