Avoiding Persistent Tomcat Sessions

by Michela Frigerio
4,130 views Published on Oct 24, 2011
Applies to: All versions
Table of contents

Sometimes when you are generating a Web Project on a working instance of Tomcat, you see the "UnknownProperty fldXYZ" error at runtime when an Form Component is changed in the Web Model with new fields. Using the Generate Selection command has no benefit. The problem is due to the persistent Tomcat sessions (SESSION.ser). To avoid this behavior, WebRatio includes a customized Tomcat installation in which persistent sessions are disabled.

You can configure the same behavior in any Tomcat installation by following these steps:

  • Open the context.xml file in the $CATALINA_HOME/conf directory.
  • Uncomment the following code fragment:
       <Manager pathname="" />
  • Restart Tomcat.