java.lang.ClassNotFoundException - JSP pages

2011-05-21 Thread Tom Wolf

Hi all,
 
I'm running TomCat 6.0.26 on a Win2008 machine.
I'm running three web-apps on a single instance.
 
After a few hours of running, I start getting java.lang.ClassNotFoundException 
when trying to access certain JSP files.
Other JSP files are accessible.
I get this exception for pages on all three web-apps.
 
I checked with jconsole, and their are really no JSP compiled classes in memory 
for the pages I try to access.
 
After restarting TomCat, I manage to access these pages.
 
 
 
Another thing to note is that one of my web-apps is writing a lot of logs to 
catalina - on purpose.
 
Any ideas? is it a memory problem?   I'm thinking of working with separate 
TomCat instances per web-app.
 
Thanks

RE: java.lang.ClassNotFoundException - JSP pages

2011-05-23 Thread Tom Wolf

Hi all,
Here is a quick update of my situation:
 
I made two changes:
 

I set the checkInterval flag for the JspServlet settings (20 seconds)
I reduced my maxObjectInCache parameter (a proprietary application config) 
which basically reduces the amount of memory my app uses
 
So far, I stopped getting the ClassNotFoundException.
 
I'll continue checking during this week, and then try removing the 
checkInterval flag from one of my servers to see if this is the root cause.
 
If anyone has any tips, I'll appreciate it.
 
Thanks
 
> From: tw...@hotmail.com
> To: users@tomcat.apache.org
> Subject: java.lang.ClassNotFoundException - JSP pages
> Date: Sat, 21 May 2011 19:06:53 +
> 
> 
> Hi all,
> 
> I'm running Tomcat 6.0.26 on a Win2008 machine.
> I'm running three web-apps on a single instance.
> 
> After a few hours of running, I start getting 
> java.lang.ClassNotFoundException when trying to access certain JSP files.
> Other JSP files are accessible.
> I get this exception for pages on all three web-apps.
> 
> I checked with jconsole, and their are really no JSP compiled classes in 
> memory for the pages I try to access.
> 
> After restarting Tomcat, I manage to access these pages.
> 
> 
> 
> Another thing to note is that one of my web-apps is writing a lot of logs to 
> catalina - on purpose.
> 
> Any ideas? is it a memory problem? I'm thinking of working with separate 
> Tomcat instances per web-app.
> 
> Thanks 
  

RE: java.lang.ClassNotFoundException - JSP pages

2011-05-24 Thread Tom Wolf

The problem is that one of my web-apps compiles JSP at run-time - so that we 
can update them on-the-fly.
 
BTW, I'm still not getting this error today - so it looks like it is either the 
checkInterval flag, reduction of memory usage or minimizing the catalina/stdout 
logging (we had some unnecessary logging and exceptions).
 
Does that make sense?
 
Thanks!
 
> Date: Mon, 23 May 2011 22:41:23 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: java.lang.ClassNotFoundException - JSP pages
> 
> On 23/05/2011 14:10, Tom Wolf wrote:
> > If anyone has any tips, I'll appreciate it.
> 
> Precompile the JSPs and build a WAR file, deploy that instead.
> 
> 
> p
>