session variables in tomcat


XML & Web services: session variables in tomcat

  1. session variables in tomcat (4 messages)

    I have installed Redhat fedora and tomcat 4.1. The following code in my jsp does NOT work.


    The same program works fine in windows xp.what could be the problem ?

    Thanks in advance

    Threaded Messages (4)

  2. session variables in tomcat[ Go to top ]

    Well, there could be many reasons.

    My first step would be to check what permissions Tomcat has in "work" directory (or tmp, etc.) since session entries could be serialized to your disk.

    Do you get any errors in your Tomcat log?
  3. session variables in tomcat[ Go to top ]

    I have checked the permissions.It seems ok. but in the log i see a error message, SESSIONS.ser(No such file or directory). I am using tomcat as standalone, I did not installed apache and configured JK2 connector.If i install apache and JK2,will this issue be solved?

    Thanks in advance.
  4. session variables in tomcat[ Go to top ]

    SESSIONS.ser contains your serialized session parameters. If it is not found, it probably means it could be created on your machine. One reason is that maybe the current user running Tomcat does not have rights to create files in the work directory. Check the ownership.

    Apache/JK2 aren't relevant to this problem. Your Tomcat, it seems, has a problem saving its session state to the disk.
  5. session variables in tomcat[ Go to top ]

    Thanks for your feedback. I am running tomcat as a root user and root has full access to the work directory.

    Thanks in advance