Up to ValidatorFAQ
4. November 2002
I am getting a really strange behaviour when using the struts validator. Infact I am beginning to wonder whether it´s just me going nuts! It´s an error that makes no sense to me at all!
Here´s the scenario:
1. Start tomcat 2. open browser 3. go to form in html page 4. send
Now the strange thing is that every second time (after closing the 2 of course) I carry out the steps described above I get a
"java.lang.NoClassDefFoundError: org.apache.struts.validator.ValidatorForm"
error! Why not every time or even never?! It just doesn´t make sense t o me that this error comes in exactly the interval as described above. Has anybody else experienced a similar problem which might be worth sharing?
I know it sounds silly but that is exactly what is happening!
Answer
It seems that this is a session issue and the solution was to change the context in the tomcat server.xml:
I.e. I added:
<Manager className="org.apache.catalina.session.PersistentManager"
debug="4" saveOnRestart="false" <------- maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1"> <Store className="org.apache.catalina.session.FileStore"/>
</Manager>
to my Context.
Michael Delamere
Up to ValidatorFAQ