You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ts...@acesoft.com on 2006/04/14 17:34:22 UTC

stop ``ant install'' copying the app to /webapps

This is a fundamental question, but I can't find an answer to it anywhere. 
 Probably right in from of my nose.

I have set up my development environment exactly as directed in the tomcat 
docs.   When I ``ant install'', the app is copied to the <tomcat>/webapps 
directory, and a subsequent ``ant compile'' after a JSP change updates the 
copy in the build directory, but tomcat doesn't see it unless I do a 
``remove'' and ``install''.  I expected ``install'' to deploy it from the 
build directory.

Is there some setting in server.xml or web.xml that allows this?  I don't 
want to develop in the <tomcat>/webapps directory.

Thanks

Tim S.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
Our company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing.
Any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company.
WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any damage 
caused by any virus transmitted by this email.
11/29/2003 ACE Software, LLC

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: stop ``ant install'' copying the app to /webapps

Posted by Aladin Alaily <to...@aladin.ca>.
LOL!

I read the first line of your response and automatically thought:
oh my god...

Then I laughed when I saw the "just kidding!" part.

You're welcome & thanks for the laugh.

Aladin



tschaeffer@acesoft.com wrote:

> Aladin Alaily <to...@aladin.ca> wrote on 04/14/2006 12:45:52 PM:
> 
>>
>>tschaeffer@acesoft.com wrote:
>>
>>>This is a fundamental question, but I can't find an answer to it 
> 
> anywhere. 
> 
>>> Probably right in from of my nose.
>>>
>>>I have set up my development environment exactly as directed in the 
> 
> tomcat 
> 
>>>docs.   When I ``ant install'', the app is copied to the 
> 
> <tomcat>/webapps 
> 
>>>directory, and a subsequent ``ant compile'' after a JSP change updates 
> 
> the 
> 
>>>copy in the build directory, but tomcat doesn't see it unless I do a 
>>>``remove'' and ``install''.  I expected ``install'' to deploy it from 
> 
> the 
> 
>>>build directory.
>>>
>>>Is there some setting in server.xml or web.xml that allows this?  I 
> 
> don't 
> 
>>>want to develop in the <tomcat>/webapps directory.
>>>
>>>Thanks
>>>
>>>Tim S.
>>>
>>
>>Hi Tim,
>>
>>Assuming your application is called "tim" and you want to map it to 
> 
> "/tim"
> 
>>Place a tim.xml file in: ${TOMCAT_INSTALLATION}/conf/Catalina/localhost/
>>
>>tim.xml contains:
>>=================
>><Context path="/tim" reloadable="true" docBase="LOCATION OF YOUR 
>>COMPILED CODE!" />
>>
>>build.xml:
>>==========
>>Tell ant to compile the code in the location specified in tim.xml
>>
>>Now, your applicaiton will reload everytime you re-build and you won't 
>>have to develop in the <tomcat>/webapps directory.
>>Hope this helps.
>>Aladin
> 
> 
> But my application isn't called "tim".
> 
> Just kidding!  That works great, thanks.  This should be mentioned in the 
> Application Developer's Guide of the Tomcat docs.
> 
> Tim S.
> 
> 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> Our company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information
> provided, unless that information is subsequently confirmed in writing.
> Any views or opinions presented in this email are solely those of the 
> author and do not necessarily represent those of the company.
> WARNING: Computer viruses can be transmitted via email.
> The recipient should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for any damage 
> caused by any virus transmitted by this email.
> 11/29/2003 ACE Software, LLC
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: stop ``ant install'' copying the app to /webapps

Posted by ts...@acesoft.com.
Aladin Alaily <to...@aladin.ca> wrote on 04/14/2006 12:45:52 PM:
> 
> 
> tschaeffer@acesoft.com wrote:
> > This is a fundamental question, but I can't find an answer to it 
anywhere. 
> >  Probably right in from of my nose.
> > 
> > I have set up my development environment exactly as directed in the 
tomcat 
> > docs.   When I ``ant install'', the app is copied to the 
<tomcat>/webapps 
> > directory, and a subsequent ``ant compile'' after a JSP change updates 
the 
> > copy in the build directory, but tomcat doesn't see it unless I do a 
> > ``remove'' and ``install''.  I expected ``install'' to deploy it from 
the 
> > build directory.
> > 
> > Is there some setting in server.xml or web.xml that allows this?  I 
don't 
> > want to develop in the <tomcat>/webapps directory.
> > 
> > Thanks
> > 
> > Tim S.
> > 
> Hi Tim,
> 
> Assuming your application is called "tim" and you want to map it to 
"/tim"
> 
> Place a tim.xml file in: ${TOMCAT_INSTALLATION}/conf/Catalina/localhost/
> 
> tim.xml contains:
> =================
> <Context path="/tim" reloadable="true" docBase="LOCATION OF YOUR 
> COMPILED CODE!" />
> 
> build.xml:
> ==========
> Tell ant to compile the code in the location specified in tim.xml
> 
> Now, your applicaiton will reload everytime you re-build and you won't 
> have to develop in the <tomcat>/webapps directory.
> Hope this helps.
> Aladin

But my application isn't called "tim".

Just kidding!  That works great, thanks.  This should be mentioned in the 
Application Developer's Guide of the Tomcat docs.

Tim S.




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
Our company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing.
Any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company.
WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any damage 
caused by any virus transmitted by this email.
11/29/2003 ACE Software, LLC

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: stop ``ant install'' copying the app to /webapps

Posted by Aladin Alaily <to...@aladin.ca>.
Hi Tim,

Assuming your application is called "tim" and you want to map it to "/tim"

Place a tim.xml file in: ${TOMCAT_INSTALLATION}/conf/Catalina/localhost/

tim.xml contains:
=================
<Context path="/tim" reloadable="true" docBase="LOCATION OF YOUR 
COMPILED CODE!" />

build.xml:
==========
Tell ant to compile the code in the location specified in tim.xml


Now, your applicaiton will reload everytime you re-build and you won't 
have to develop in the <tomcat>/webapps directory.

Hope this helps.
Aladin




tschaeffer@acesoft.com wrote:
> This is a fundamental question, but I can't find an answer to it anywhere. 
>  Probably right in from of my nose.
> 
> I have set up my development environment exactly as directed in the tomcat 
> docs.   When I ``ant install'', the app is copied to the <tomcat>/webapps 
> directory, and a subsequent ``ant compile'' after a JSP change updates the 
> copy in the build directory, but tomcat doesn't see it unless I do a 
> ``remove'' and ``install''.  I expected ``install'' to deploy it from the 
> build directory.
> 
> Is there some setting in server.xml or web.xml that allows this?  I don't 
> want to develop in the <tomcat>/webapps directory.
> 
> Thanks
> 
> Tim S.
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> Our company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information
> provided, unless that information is subsequently confirmed in writing.
> Any views or opinions presented in this email are solely those of the 
> author and do not necessarily represent those of the company.
> WARNING: Computer viruses can be transmitted via email.
> The recipient should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for any damage 
> caused by any virus transmitted by this email.
> 11/29/2003 ACE Software, LLC
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org