RE: How to reload jsp using ant in Tomcat 5.5

2005-12-14 Thread Wade Chandler
--- Guillermo Sobrino [EMAIL PROTECTED] wrote:

 
 I am using no context.xml so I do not set any
 parameter, including antiResourceLocking.
 
 Thanks anyway.
 
Guillermo
 
 
 
  -Mensaje original-
  De: Jan Behrens [mailto:[EMAIL PROTECTED] 
  Enviado el: lunes, 12 de diciembre de 2005 18:29
  Para: Tomcat Users List
  Asunto: RE: How to reload jsp using ant in Tomcat
 5.5
  
  
  Just a gues, but maybe you have
 antiResourceLocking turned 
  on? see -- 
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=37668
  
  Jan
  
  Guillermo Sobrino [EMAIL PROTECTED] schrieb
 am 
  12.12.2005 18:09:28:
  
   
   Hello again,
   
   trying to find a solution to my problem I have
 discovered that in
   past Tomcat versions
   I had just to copy my new jsp pages in the
 installation directory to
   get them updated
   in Tomcat. There was no need to use target
 reload.
   
   So maybe I am forgetting any configuration
 parameter in Tomcat 5.5
   wich set that
   automatic jsp-reloading.
   
   Anyone could help, please?
   
   
  Guillermo
   
   
   
-Mensaje original-
De: Guillermo Sobrino
 [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 01 de diciembre de 2005
 17:11
Para: users@tomcat.apache.org
Asunto: How to reload jsp using ant in Tomcat
 5.5



Hello,

I'm using Tomcat 5.5 on wich I deploy a web
 application with
ant using:



target name=install depends=compile
 description=Install
web application

deploy url=${manager.url}
 username=${manager.username}
password=${manager.password}

path=${app.path}
   

localwar=file://${install.home}/${component.name}-${component
.version}/

/target



where
 install.home/component.name-component.version is a
local directory wich 

contains a typical structure with JSP's and a
 WEB-INF

directory wich includes lib and classes
 directories.

I get to deploy the application right, but
 when I update 
  any jsp in

my
 install.home/component.name-component.version local
 directory

I can not get Tomcat to update that file.

I've tried to use the ant reload target as
 follows:



target name=reload depends=compile
 description=Reload
web application 

reload path=${app.path}
 url=${manager.url}
username=${manager.username}
 password=${manager.password}/

/target



but it doesn't work for jsp pages.

Anyone could help me, please?

Thanks in advantage.



   Guillermo





   
   
   
   
 

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


You probably don't have the JSP's recompiling.  See
the documentation at:
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html

See the configuration section.  Note the defaults and
attributes/parameters affecting compilation.  If you
are on a hosted web server you should be able to make
your own web.xml jasper configuration on a per web-app
basis since it's done in the global web.xml, a TC
developer can help more here.

Wade

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



RE: How to reload jsp using ant in Tomcat 5.5 - SOLVED

2005-12-14 Thread Guillermo Sobrino

After a lot of tries and searching in the web inspired by your comentaries I 
found a solution.

I use this to deploy the webapp:
  deploy url=${manager.url} username=${manager.username} 
password=${manager.password}
path=${app.path} 
localwar=file://${install.home}/${component.name}-${component.version}/

and I have included in ${install.home}/META-INF a context.xml like this:
?xml version='1.0' encoding='utf-8'?
Context docBase=install.home/

Now I get that update jsp files in install.home get updated in Tomcat 
automatically.

I have tried to avoid that Tomcat make a copy of the whole webapp in 
$CATALINA_HOME/Tomcat 5.5/webapps
but I have not been able to. This copy is useless because changes are not 
updated there. ¿Anyone know why Tomcat does it?

   Guillermo



 -Mensaje original-
 De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
 Enviado el: miércoles, 14 de diciembre de 2005 17:00
 Para: 'Tomcat Users List'
 Asunto: RE: How to reload jsp using ant in Tomcat 5.5
 
 
 
 I am using no context.xml so I do not set any parameter, 
 including antiResourceLocking.
 
 Thanks anyway.
 
Guillermo
 
 
 
  -Mensaje original-
  De: Jan Behrens [mailto:[EMAIL PROTECTED]
  Enviado el: lunes, 12 de diciembre de 2005 18:29
  Para: Tomcat Users List
  Asunto: RE: How to reload jsp using ant in Tomcat 5.5
  
  
  Just a gues, but maybe you have antiResourceLocking turned
  on? see -- 
  http://issues.apache.org/bugzilla/show_bug.cgi?id=37668
  
  Jan
  
  Guillermo Sobrino [EMAIL PROTECTED] schrieb am
  12.12.2005 18:09:28:
  
   
   Hello again,
   
   trying to find a solution to my problem I have discovered that in 
   past Tomcat versions I had just to copy my new jsp pages in the 
   installation directory to get them updated
   in Tomcat. There was no need to use target reload.
   
   So maybe I am forgetting any configuration parameter in 
 Tomcat 5.5 
   wich set that automatic jsp-reloading.
   
   Anyone could help, please?
   
   
  Guillermo
   
   
   
-Mensaje original-
De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] Enviado el: 
jueves, 01 de diciembre de 2005 17:11
Para: users@tomcat.apache.org
Asunto: How to reload jsp using ant in Tomcat 5.5



Hello,

I'm using Tomcat 5.5 on wich I deploy a web application 
 with ant 
using:



target name=install depends=compile 
 description=Install web 
application

deploy url=${manager.url} username=${manager.username} 
password=${manager.password}

path=${app.path} 
localwar=file://${install.home}/${component.name}-${component
.version}/

/target



where install.home/component.name-component.version is a local 
directory wich

contains a typical structure with JSP's and a WEB-INF

directory wich includes lib and classes directories.

I get to deploy the application right, but when I update
  any jsp in

my install.home/component.name-component.version local directory

I can not get Tomcat to update that file.

I've tried to use the ant reload target as follows:



target name=reload depends=compile description=Reload web 
application 

reload path=${app.path} url=${manager.url} 
username=${manager.username} password=${manager.password}/

/target



but it doesn't work for jsp pages.

Anyone could help me, please?

Thanks in advantage.



   Guillermo





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



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



RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Subir Sengupta
Look in your web.xml, and tweak the JspServlet parameters. These 3
params control jsp reloading - modificationTestInterval, checkInterval
and development.

Hth,
Subir


-Original Message-
From: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: RE: How to reload jsp using ant in Tomcat 5.5


Hello again,

trying to find a solution to my problem I have discovered that in past
Tomcat versions
I had just to copy my new jsp pages in the installation directory to get
them updated
in Tomcat. There was no need to use target reload.

So maybe I am forgetting any configuration parameter in Tomcat 5.5 wich
set that
automatic jsp-reloading.

Anyone could help, please?


   Guillermo



 -Mensaje original-
 De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
 Enviado el: jueves, 01 de diciembre de 2005 17:11
 Para: users@tomcat.apache.org
 Asunto: How to reload jsp using ant in Tomcat 5.5
  
 
  
 Hello,
 
 I'm using Tomcat 5.5 on wich I deploy a web application with 
 ant using:
 
  
 
 target name=install depends=compile description=Install 
 web application
 
 deploy url=${manager.url} username=${manager.username} 
 password=${manager.password}
 
 path=${app.path} 
 localwar=file://${install.home}/${component.name}-${component
 .version}/
 
 /target 
 
  
 
 where install.home/component.name-component.version is a 
 local directory wich 
 
 contains a typical structure with JSP's and a WEB-INF
 
 directory wich includes lib and classes directories.
 
 I get to deploy the application right, but when I update any jsp in 
 
 my install.home/component.name-component.version local directory 
 
 I can not get Tomcat to update that file. 
 
 I've tried to use the ant reload target as follows:
 
  
 
 target name=reload depends=compile description=Reload 
 web application 
 
 reload path=${app.path} url=${manager.url} 
 username=${manager.username} password=${manager.password}/
 
 /target
 
  
 
 but it doesn't work for jsp pages.
 
 Anyone could help me, please?
 
 Thanks in advantage.
 
  
 
Guillermo
 
  
 
  
 



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