Re: [Resin-interest] Blank Welcome Pages

2008-04-22 Thread Scott Ferguson
Just to check, but this occurs only on startup or at least the first  
time the /index.html is accessed, not at a later time?

-- Scott

On Apr 20, 2008, at 8:30 AM, Charles Lyons wrote:

 /caucho-status would show the current mapping in mod_caucho.  That
 would be the place to look.

 At the moment I've got the entry /^/?(index.html)?$ under the url- 
 pattern
 on /caucho-status. My regexp was ^/?(index.html)?$ so I'm not sure  
 why
 the extra / was inserted.

 Resin is the server reporting the 404 (rather than Apache), so  
 mod_caucho
 is doing its job correctly, just Resin is refusing to serve those  
 mappings
 sometimes, with no errors in the logs.

 Since mod_caucho doesn't understand url-regexp, how are you telling
 mod_caucho that your pages should be handled by Resin?

 Using:

 servlet-mapping url-pattern=* servlet-name=plugin_match /

 I also set my default host to have servlet-name=plugin_ignore so  
 only
 explicitly enabled web-apps are served by Resin (otherwise I was  
 getting
 domains being served by Resin rather than Apache and I didn't want to
 enable mod_caucho for each domain in Apache as well as updating Resin
 config).

 Charles.


 ___
 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


Re: [Resin-interest] Blank Welcome Pages

2008-04-22 Thread Charles Lyons
This occurs from startup (first request for the resource) onwards and 
always results in 404 for the entire time the container is up (and, 
frequently, even after restarting too).

Charles.


On Apr 22 2008, Scott Ferguson wrote:

Just to check, but this occurs only on startup or at least the first  
time the /index.html is accessed, not at a later time?




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


Re: [Resin-interest] Blank Welcome Pages

2008-04-21 Thread Scott Ferguson

On Apr 20, 2008, at 8:30 AM, Charles Lyons wrote:

 /caucho-status would show the current mapping in mod_caucho.  That
 would be the place to look.

 At the moment I've got the entry /^/?(index.html)?$ under the url- 
 pattern
 on /caucho-status. My regexp was ^/?(index.html)?$ so I'm not sure  
 why
 the extra / was inserted.

It's related to the fact that mod_caucho doesn't understand regexps.   
So it's interpreting the regexp as a url-pattern.  (Which doesn't  
actually matter in this case because you've got a plugin_match below.)

 Resin is the server reporting the 404 (rather than Apache), so  
 mod_caucho
 is doing its job correctly, just Resin is refusing to serve those  
 mappings
 sometimes, with no errors in the logs.

Thanks.  I've updated the bug report.  It sounds like it's a Resin- 
specific issue, not related to mod_caucho (which is good since it  
should make debugging and testing easier.)

-- Scott


 Since mod_caucho doesn't understand url-regexp, how are you telling
 mod_caucho that your pages should be handled by Resin?

 Using:

 servlet-mapping url-pattern=* servlet-name=plugin_match /

 I also set my default host to have servlet-name=plugin_ignore so  
 only
 explicitly enabled web-apps are served by Resin (otherwise I was  
 getting
 domains being served by Resin rather than Apache and I didn't want to
 enable mod_caucho for each domain in Apache as well as updating Resin
 config).

 Charles.


 ___
 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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Shane Cruz
After looking back through our internal emails regarding this, it
appears it is not only related to welcome files, but from what we have
seen so far it has only been affecting static content (specifically
.html files).  I don't see any exceptions in the logs when this is
happening, but as I mentioned before I don't have full debug logging
turned on because it is a production system.  There doesn't seem to be
any pattern to the files which get affected other than the fact that
they are all HTML files that end in .html and that includes welcome
files when the requested URL doesn't include the file name (the welcome
file would be index.html).

 

When this happens we typically see it not working for a host alias
http://www.mydomain.com/file.html but it works fine if you go to
http://mydomain.com/file.html.  This makes me think it has something to
do with the cache because the host alias with www is probably accessed
much more frequently than without it, so maybe the problem occurs after
the cache fills up.

 

Thanks for your help,

Shane

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: Saturday, April 19, 2008 1:47 PM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Blank Welcome Pages

 

 

On Apr 18, 2008, at 3:23 PM, Shane Cruz wrote:





We are using Resin Pro 3.0.24 and have noticed an intermittent problem
that is rather weird.  After the JVM has been running for a few days, we
some times see the case where HTTP requests for certain files return a
blank HTML page such as:

 

This seems to happen mostly with welcome files (index.html), and we see
behavior such as:

 

Mostly welcome files or always?

 

Is there any kind of exception in the log file?  

 



 When it happens, it seems to affect a lot of pages at once, but
only on the one JVM.  

 

Is there any pattern to the pages affected?  Is this always cacheable
pages or some cacheable and some non-cacheable?

 

-- Scott





Restarting that JVM immediately fixes the problem... at least for a few
days.

 

Our welcome file list (in app-default.xml) looks normal:

 

  welcome-file-list

welcome-fileindex.html/welcome-file

welcome-fileindex.htm/welcome-file

welcome-fileindex.jsp/welcome-file

welcome-fileindex.php/welcome-file

  /welcome-file-list

 

We are caching pages (in resin.conf):

 

resin:if test=${isResinProfessional}

  cache path=cache memory-size=10M/

/resin:if

 

I don't want to turn on full debug logging because this happens in our
production environment but only after the JVM has been running for
several days.  I would prefer not to slow down the server for a long
time with the extra logging.

 

Has anyone else seen anything like this or know what might be causing
it?

 

Thanks,

Shane

 

___
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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Scott Ferguson

On Apr 18, 2008, at 4:30 PM, Charles Lyons wrote:

 Has anyone else seen anything like this or know what might be causing
 it?

 I can't help you but to add weight to this, I have a similar and  
 frequent
 problem in 3.1.5 GPL which is an issue each time I restart the  
 container.

 I have a servlet mapped to the root of the Web server - i.e. it is
 supposed to execute just like a welcome page for:

 http://www.mydomain.ext/

 I can't use the servlet-mapping of / since that's defined in Java  
 EE as
 the default servlet and will execute for *every* request to an  
 otherwise
 unmatched URL, which isn't what I want. I just want the servlet to  
 handle
 requests for the root.

 The obvious thing in Resin is to add a servlet-mapping with a
 url-regexp attribute:

 servlet-mapping url-regexp=^/?$ servlet-name=MyServlet /

 This worked for a while, until a restart. It then gave a 404 even  
 after
 several reloads, restarts and a full stop and start. So I changed it  
 to
 url-regexp=^/index.html$ which again worked, until another restart  
 (weeks
 later) - I also couldn't then revert back to ^/?$ as the pattern  
 as that
 still gave 404. Finally I'm left using ^/index.jsp$ as my pattern  
 since
 that is what's working since the last restart. So definitely something
 weird going on with those index page mappings.

This looks like a different issue.  I've added it as 
http://bugs.caucho.com/view.php?id=2611

 I am using Resin with mod_caucho for an Apache 2 front end. I imagine
 mod_caucho might be causing the issues with patterns still giving  
 404s even
 after a complete restart of Resin? I guess also mod_caucho may be  
 the main
 culprit in all this, though that's a (far from educated) guess.

/caucho-status would show the current mapping in mod_caucho.  That  
would be the place to look.

Since mod_caucho doesn't understand url-regexp, how are you telling  
mod_caucho that your pages should be handled by Resin?

-- Scott



 Charles.


 ___
 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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Scott Ferguson

On Apr 19, 2008, at 3:40 AM, Stargazer wrote:

 Charles Lyons wrote:
 Has anyone else seen anything like this or know what might be  
 causing
 it?


 I can't help you but to add weight to this, I have a similar and  
 frequent
 problem in 3.1.5 GPL which is an issue each time I restart the  
 container.

 I too can confirm random blank pages are seen, across several sites,  
 and
 after several days uptime.
 I'd put this down to heavy use of external RSS content, and somehow  
 the
 external RSS containing dodgy data, but now you've pointed it out it
 does seem
 I am experiencing the same thing as you. This is an Apache +  
 mod_caucho
 setup if thats useful.

Are you seeing this for cached pages or is this a mapping issue like  
Charles is seeing?  Does /caucho-status show anything odd when this  
situation occurs?

-- Scott






 ___
 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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Scott Ferguson


On Apr 20, 2008, at 6:41 AM, Shane Cruz wrote:

After looking back through our internal emails regarding this, it  
appears it is not only related to welcome files, but from what we  
have seen so far it has only been affecting static content  
(specifically .html files).  I don’t see any exceptions in the logs  
when this is happening, but as I mentioned before I don’t have full  
debug logging turned on because it is a production system.


Our exceptions are logged at the warning level, so you'd see them in  
the default setting, i.e. it doesn't look like an exception issue.


There doesn’t seem to be any pattern to the files which get affected  
other than the fact that they are all HTML files that end in .html  
and that includes welcome files when the requested URL doesn’t  
include the file name (the welcome file would be index.html).


When this happens we typically see it not working for a host alias http://www.mydomain.com/file.html 
 but it works fine if you go to http://mydomain.com/file.html.  This  
makes me think it has something to do with the cache because the  
host alias with www is probably accessed much more frequently than  
without it, so maybe the problem occurs after the cache fills up.


That definitely sounds like the cache.  One of the big changes in 3.1  
was a reworking of the underlying cache store (early in 3.1, like  
3.1.1), to solve problems very similar to what you're reporting.  So,  
it's possible you're seeing behavior that's been fixed in 3.1.  I'll  
work through the whole file - cache path to see if there's anything  
still wrong in 3.1.


FYI, with the upcoming 3.1.6 release (2-3 weeks), the 3.1.x branch  
will move to stable and new development will move to a 3.2 branch.


-- Scott





Thanks for your help,
Shane

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Scott Ferguson

Sent: Saturday, April 19, 2008 1:47 PM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Blank Welcome Pages


On Apr 18, 2008, at 3:23 PM, Shane Cruz wrote:


We are using Resin Pro 3.0.24 and have noticed an intermittent  
problem that is rather weird.  After the JVM has been running for a  
few days, we some times see the case where HTTP requests for certain  
files return a blank HTML page such as:


This seems to happen mostly with welcome files (index.html), and we  
see behavior such as:


Mostly welcome files or always?

Is there any kind of exception in the log file?

 When it happens, it seems to affect a lot of pages at once, but  
only on the one JVM.



Is there any pattern to the pages affected?  Is this always  
cacheable pages or some cacheable and some non-cacheable?


-- Scott


Restarting that JVM immediately fixes the problem… at least for a  
few days.


Our welcome file list (in app-default.xml) looks normal:

  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-fileindex.php/welcome-file
  /welcome-file-list

We are caching pages (in resin.conf):

resin:if test=${isResinProfessional}
  cache path=cache memory-size=10M/
/resin:if

I don’t want to turn on full debug logging because this happens in  
our production environment but only after the JVM has been running  
for several days.  I would prefer not to slow down the server for a  
long time with the extra logging.


Has anyone else seen anything like this or know what might be  
causing it?


Thanks,
Shane

___
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


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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Charles Lyons
/caucho-status would show the current mapping in mod_caucho.  That  
would be the place to look.

At the moment I've got the entry /^/?(index.html)?$ under the url-pattern 
on /caucho-status. My regexp was ^/?(index.html)?$ so I'm not sure why 
the extra / was inserted.

Resin is the server reporting the 404 (rather than Apache), so mod_caucho 
is doing its job correctly, just Resin is refusing to serve those mappings 
sometimes, with no errors in the logs.

Since mod_caucho doesn't understand url-regexp, how are you telling  
mod_caucho that your pages should be handled by Resin?

Using:

servlet-mapping url-pattern=* servlet-name=plugin_match /

I also set my default host to have servlet-name=plugin_ignore so only 
explicitly enabled web-apps are served by Resin (otherwise I was getting 
domains being served by Resin rather than Apache and I didn't want to 
enable mod_caucho for each domain in Apache as well as updating Resin 
config).

Charles.


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


Re: [Resin-interest] Blank Welcome Pages

2008-04-20 Thread Stargazer
Scott Ferguson wrote:
 On Apr 19, 2008, at 3:40 AM, Stargazer wrote:

   
 Charles Lyons wrote:
 
 Has anyone else seen anything like this or know what might be  
 causing
 it?

 
 I can't help you but to add weight to this, I have a similar and  
 frequent
 problem in 3.1.5 GPL which is an issue each time I restart the  
 container.

   
 I too can confirm random blank pages are seen, across several sites,  
 and
 after several days uptime.
 I'd put this down to heavy use of external RSS content, and somehow  
 the
 external RSS containing dodgy data, but now you've pointed it out it
 does seem
 I am experiencing the same thing as you. This is an Apache +  
 mod_caucho
 setup if thats useful.
 

 Are you seeing this for cached pages or is this a mapping issue like  
 Charles is seeing?  Does /caucho-status show anything odd when this  
 situation occurs?

 -- Scott

   
As I hinted, I didn't suspect this could be a resin bug until now so 
I'll report back with those details should it happen again.



 ___
 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



   




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


Re: [Resin-interest] Blank Welcome Pages

2008-04-19 Thread Scott Ferguson


On Apr 18, 2008, at 3:23 PM, Shane Cruz wrote:

We are using Resin Pro 3.0.24 and have noticed an intermittent  
problem that is rather weird.  After the JVM has been running for a  
few days, we some times see the case where HTTP requests for certain  
files return a blank HTML page such as:


This seems to happen mostly with welcome files (index.html), and we  
see behavior such as:


Mostly welcome files or always?

Is there any kind of exception in the log file?

 When it happens, it seems to affect a lot of pages at once, but  
only on the one JVM.


Is there any pattern to the pages affected?  Is this always cacheable  
pages or some cacheable and some non-cacheable?


-- Scott

Restarting that JVM immediately fixes the problem… at least for a  
few days.


Our welcome file list (in app-default.xml) looks normal:

  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-fileindex.php/welcome-file
  /welcome-file-list

We are caching pages (in resin.conf):

resin:if test=${isResinProfessional}
  cache path=cache memory-size=10M/
/resin:if

I don’t want to turn on full debug logging because this happens in  
our production environment but only after the JVM has been running  
for several days.  I would prefer not to slow down the server for a  
long time with the extra logging.


Has anyone else seen anything like this or know what might be  
causing it?


Thanks,
Shane

___
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


Re: [Resin-interest] Blank Welcome Pages

2008-04-18 Thread Charles Lyons
Has anyone else seen anything like this or know what might be causing
it?

I can't help you but to add weight to this, I have a similar and frequent 
problem in 3.1.5 GPL which is an issue each time I restart the container.

I have a servlet mapped to the root of the Web server - i.e. it is 
supposed to execute just like a welcome page for:

http://www.mydomain.ext/

I can't use the servlet-mapping of / since that's defined in Java EE as 
the default servlet and will execute for *every* request to an otherwise 
unmatched URL, which isn't what I want. I just want the servlet to handle 
requests for the root.

The obvious thing in Resin is to add a servlet-mapping with a 
url-regexp attribute:

servlet-mapping url-regexp=^/?$ servlet-name=MyServlet /

This worked for a while, until a restart. It then gave a 404 even after 
several reloads, restarts and a full stop and start. So I changed it to 
url-regexp=^/index.html$ which again worked, until another restart (weeks 
later) - I also couldn't then revert back to ^/?$ as the pattern as that 
still gave 404. Finally I'm left using ^/index.jsp$ as my pattern since 
that is what's working since the last restart. So definitely something 
weird going on with those index page mappings.

I am using Resin with mod_caucho for an Apache 2 front end. I imagine 
mod_caucho might be causing the issues with patterns still giving 404s even 
after a complete restart of Resin? I guess also mod_caucho may be the main 
culprit in all this, though that's a (far from educated) guess.

Charles.


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