Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:48:35
Size: 1379
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 23:12:24
Size: 1379
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Up to ["ValidatorFAQ"] Up to [[ValidatorFAQ]]
Line 53: Line 53:
Up to ["ValidatorFAQ"] Up to [[ValidatorFAQ]]

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

  1. open browser
  2. go to form in html page
  3. 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

ValidatorNoClassDefFound (last edited 2009-09-20 23:12:24 by localhost)