Ah, okay. So if I understand correctly, I get the error of the unknown tag that happens more intermittently is the compile error where it's been X seconds since last compile and it tries to recompile on the refresh. Then the rest of the time is when the timer is under the X seconds and returns with a missing class. I'll try those parameters out to see if that fixes the problem. Thanks!
On Wed, Sep 17, 2014 at 11:21 AM, Mark Thomas <[email protected]> wrote: > On 17/09/2014 19:15, Josh Stratton wrote: > > I'm new to Tomcat and running a stock installation on Ubuntu. One thing > > that has me really confused when debugging errors is something when I hit > > refresh it will display an error like a class exception or parse error, > but > > if I refresh again it will show me the page before I made my breaking > > edits. I can actually mash down on my refresh button repeatedly and get > > some random mix of successes and failures back. > > > > Right now I have it jumping between two failure errors > > 'java.lang.ClassNotFoundException' and 'No tag "wrapper" defined in tag > > library'. Coming from python I'm not really sure what's going on. I only > > see one instance of Tomcat running, but am wondering if there is some > weird > > caching happening at the server side. I have caching disabled in my > browser. > > > > Here's my test site where it's still happening: > > http://anthonyholdenart.com/jsp/. Just jump to that page and refresh a > few > > times to see the differences. > > > > Is there something I need to change to get consistent results back from > my > > JSP pages? I can work through the errors but it's strange to get random > > pages back. > > What you are seeing is the effect of Tomcat only attempting to recompile > every n seconds (4 I think by default). The first error is the failed > compilation. The second is the result of the class that didn't compile > not being present. > > To get the behaviour you want, make sure you have the following > configured for the JSP servlet in CATALINA_BASE/conf/web.xml > > development=true > recompileOnFail=true > > Once you have fixed the compilations problems you may want to reduce > modificationTestInterval to less than 4 seconds. > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
