tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghupathy,Gurumoorthy" <gurumoorthy.raghupa...@uk.fid-intl.com>
Subject RE: ant reload
Date Tue, 01 Nov 2005 16:22:34 GMT
Can you send the build.xml and build.properties ?

-----Original Message-----
From: Tamas Hegedus [mailto:hegedus@med.unc.edu] 
Sent: 01 November 2005 15:35
To: Tomcat Users List
Subject: Re: ant reload


Hmm. Yes, that could be the problem. Now I tried to figure out how the 
developing environment should be created, but I can not be sure if I am 
rigth.

================
I have the CATALINAHOME in a separate dir:
/home/src/apache-tomcat
webapps/myapp/index.html
webapps/myapp/WEB-INF/web.xml
webapps/myapp/WEB-INF/classes/mypackage/*.class
webapps/myapp/WEB-INF/lib
etc.

================
I have a developing area in my HOME dir:
/home/hegedus/javas/myapp

Here I have:
=> build/ index.html, WEB-INF (these should be transfered to 
catalina.home/weabapps/myapp; at least a want to transfer them :-))

=> src/mypackage/*.java
=> web/index.html
    web/WEB-INF/web.xml
=> doc/
=> build.xml
=> build.properties

======================================
I think it works like this:
=> I edit the html, jsp, web.xml files in the web dir
=> I edit the *.java class files in src/mypackage
=> after compilation everything should be combined to the build dir
=> after reload: the build should be transferred to the 
catalina.home/webapps/myapps and tomcat should be reloaded.

Thanks!
Tamas

Raghupathy,Gurumoorthy wrote:
> Can you tell me the directory structure ?
> 
> Like source directory 
> 
> 	Project
> 		...src
> 		...bin
> 		../..myapp
> 			../WEB-INF/
> 				../classes
> 
> Regards
> guru
> 
> -----Original Message-----
> From: Tamas Hegedus [mailto:hegedus@med.unc.edu] 
> Sent: 01 November 2005 14:40
> To: Tomcat Users List
> Subject: Re: ant reload
> 
> 
> Dear Robert,
> 
> Although, I could not find a good doc for context.xml I tried your 
> context path solution.
> 
> 1. It works the same way.
> 2. You wrote: "That should stop the application from being copied." BUT:
> I want to copy the new version of classes and reload tomcat.
> 
> The easiest way at this moment to add an ant task 'myreload' that 
> invokes the remove and install. But this is not an elegant solution.
> 
> Please note: I am not a programmer and I am new to java and tomcat...
> 
> Thanks,
> Tamas
> 
> Robert Parsons wrote:
> 
>>You'll probably find that your web application is being copied into 
>>tomcats folder on install. So when you compile your new classes and 
>>reload, it just reloads the web-app from its own copy (which is still 
>>old). Try creating a context.xml file in META-INF that looks something 
>>like this:
>>
>><Context path="/myapp" docBase="/path/to/your/application">
>>...
>></Context>
>>
>>That should stop the application from being copied.
>>
>>I hope that helps.
>>-Robert.
>>
>>Tamas Hegedus wrote:
>>
>>
>>>Hi,
>>>
>>>After src/*.java modification I do an "ant compile", "ant reload".
>>>Nothing happens. Old class files not overwritten.
>>>If I do "ant remove" followed by "ant install": everything is OK 
>>>(refreshed).
>>>
>>>Do you know what can I miss?
>>>I am using: jdk1.5.0_05, apache-ant-1.6.5, apache-tomcat-5.5.12.
>>>
>>>Thanks for your help,
>>>Tamas
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> 

-- 
Tamas Hegedus, PhD          | phone: (1) 919-966 0329
UNC - Biochem & Biophys     | fax:   (1) 919-966 5178
5007A Thurston-Bowles Bldg  | mailto:hegedus@med.unc.edu
Chapel Hill, NC, 27599-7248 | http://biohegedus.org

---------------------------------------------------------------------
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


Mime
View raw message