[Resin-interest] Re sin compiling again precompiled JSPs

2008-05-16 Thread rafael.munoz

Hi

I was trying to precompile my JSPs before the deploy phase and, thanks to
the help of people of this mail list, I got it. My problem now is that Resin
is not taking account of the compiled JSPs and it's compiling again the JSPs
in the first access. The smap, java and class file per JSPs are inside my
war and they seems OK. It's just that Resin seems decide that they're not
longer valid and have to compile them again.

Anybody knows why? What is the algorithm that Resin uses to know that have
to compile again the JSP? Is it base in the file timestamp or anything?  Is
it a Resin configuration issue?

I'm a little lost so any help will be appreciate.

thanks in advance,
rafa
-- 
View this message in context: 
http://www.nabble.com/Resin-compiling-again-precompiled-JSPs-tp17268449p17268449.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Ant and JSPCompiler

2008-05-06 Thread rafael.munoz

Thank you a lot. This work like a charm :)


Mattias Jiderhamn-4 wrote:
 
 Try
 
 target name=precompile-jsp description=precompile jsp
echo message=precompiling JSPs: app-dir=${home.war}/
java classname=com.caucho.jsp.JspCompiler fork=true 
   classpath refid=resin.classpath /
   arg line=-app-dir ${home.war} ${home.war} /
/java
 /target
 
 
 Note the extra ${home.war} in the arg line which means compile this dir 
 (and subdirs).
 
  /Mattias Jiderhamn
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 

-- 
View this message in context: 
http://www.nabble.com/Ant-and-JSPCompiler-tp17061443p17082599.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Ant and JSPCompiler

2008-05-05 Thread rafael.munoz

Hi

I'm trying to precompile my JSPs before the deploy phase, integrating this
precompilation in my ANT build script.

I'm using Resin 3.0.19 so I can't use the new resin-ant.jar but I think that
this ANT target should work:

target name=precompile-jsp description=precompile jsp
   echo message=precompiling JSPs: app-dir=${home.war}/
   java classname=com.caucho.jsp.JspCompiler fork=true 
  classpath refid=resin.classpath /
  arg line=-app-dir ${home.war} /
   /java
/target

But unfortunately it doesn't work: this generate the work and tmp directory
but they're empty.

I have try passing a JSP and the JSP is precompiled without problem:
target name=precompile-jsp description=precompile jsp
   echo message=precompiling JSPs: app-dir=${home.war}/
   java classname=com.caucho.jsp.JspCompiler fork=true 
  classpath refid=resin.classpath /
  arg line=-app-dir ${home.war} /
  arg line=${home.war}/index.jsp /
   /java
/target

So my question is: have I to pass ALL my JSPs to JSPCompiler? Can't I just
point to the root of my web app and just have all my JSP precompiled?
-- 
View this message in context: 
http://www.nabble.com/Ant-and-JSPCompiler-tp17061443p17061443.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Removing Etags

2007-08-07 Thread rafael.munoz

Any new ideas about this? Nobody?


Scott Ferguson wrote:
 
 
 On Aug 2, 2007, at 12:27 AM, rafael.munoz wrote:
 

 Hi all

 Is there any way to configure resin not to set the 'Etag' header?
 
 Not unless you write your own FileServlet.  Why would you want to  
 remove the ETag?
 
 -- Scott
 

 Thanks in advance,
 Rafa
 -- 
 View this message in context: http://www.nabble.com/Removing-Etags- 
 tf4204567.html#a11959693
 Sent from the Resin mailing list archive at Nabble.com.



 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 

-- 
View this message in context: 
http://www.nabble.com/Removing-Etags-tf4204567.html#a12033803
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Removing Etags

2007-08-07 Thread rafael.munoz

Thank you. I'm using 3.0.21 and i can't switch to a newer resin version but i
guess i can use the fileservlet from 3.1.3, adapt it and use it with my
3.0.21 server. Problem solved :).

regards and thank you again,


Scott Ferguson wrote:
 
 
 On Aug 7, 2007, at 6:23 AM, rafael.munoz wrote:
 

 Sorry, I was talking about the whole problem with etags and a  
 server farm,
 not only about activate/deactivate the etag header. For instance,  
 I'm not
 sure if the etag value is calculated in Resin taking account the  
 server or
 only the resource (url, file size, etc). In the later case two  
 identical
 resources in two servers will have the same etag so there will be  
 no problem
 at all.
 
 The ETag calculation has been changed (for 3.1.3) to a digest of the  
 file contents, not timestamp-based.  So each backend server will  
 return the same etag.
 
 -- Scott
 

 Anyway i'm right now looking to the FileServlet implementation in  
 Resin and
 i guess i'll have some of the answers i'm looking for reviewing the  
 code :).

 Thanks for your answer,


 ssozonoff wrote:

 Hello Rafael,

 I thought the answer was pretty clear?

 Serge

 rafael.munoz wrote:
 Any new ideas about this? Nobody?


 Scott Ferguson wrote:

 On Aug 2, 2007, at 12:27 AM, rafael.munoz wrote:


 Hi all

 Is there any way to configure resin not to set the 'Etag' header?

 Not unless you write your own FileServlet.  Why would you want to
 remove the ETag?

 -- Scott




 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



 -- 
 View this message in context: http://www.nabble.com/Removing-Etags- 
 tf4204567.html#a12034138
 Sent from the Resin mailing list archive at Nabble.com.



 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 

-- 
View this message in context: 
http://www.nabble.com/Removing-Etags-tf4204567.html#a12037371
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Removing Etags

2007-08-02 Thread rafael.munoz

Hi all
 
Is there any way to configure resin not to set the 'Etag' header?
 
Thanks in advance,
Rafa
-- 
View this message in context: 
http://www.nabble.com/Removing-Etags-tf4204567.html#a11959693
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest