Avoiding Persistent Tomcat Sessions

From Wiki

Jump to: navigation, search


Generating a Web Project different times on a working Tomcat often cause the "UnknownProperty fldXYZ" error at run-time when an Entry unit 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 behaviour, WebRatio includes a customized Tomcat installation in which persistent sessions are disabled.

You can configure the same behaviour in any Tomcat installation just following these steps:

  • Open the context.xml file in the $CATALINA_HOME/conf directory.
  • Uncomment the following code fragment.
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->

in order to get something like the following

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->

    <Manager pathname="" />
  • Restart Tomcat.


Related articles:
Category Difficulty Refers
Avoiding Persistent Tomcat Sessions Deployment Beginner Web Application
How can I increase memory in my application server? Deployment Beginner Web Application
How can I manage non ISO-8859-1 characters passing on the URL? Deployment Intermediate Web Application
How can I set the log level in my application? Deployment Beginner Web Application
How can I use JNDI in my application server? Deployment Intermediate WebRatio












Personal tools