1 Reply Latest reply on Apr 29, 2013 4:16 PM by Shai Bentin

    Weird httpSession problem in frameset and jboss 5.1.0

    Shai Bentin Newbie

      I'm trying to migrate an EJB 2.1 + struts 1.1 application from a clustered jboss 4.2.3 to a clustered jboss 5.1.0. I've managed to set things up so that the application loads without error. After login, the application forwards to a frameset.jsp which renders a framset. That frameset calls other jsps. The weird problem is that the other jsps don't have the same httpSession as the frameset and login action had so all my login info is lost and the application doesn't work.

       

      This application worked fine in jboss 4.2.3 I don't understand what could be the problem. It happens in all browsers.

       

      I'll appreciate any idea as to what may cause this. Is there something in tomcat? servlet api?

       

      thanks

        • 1. Re: Weird httpSession problem in frameset and jboss 5.1.0
          Shai Bentin Newbie

          OK. Found the problem. In my war file I had a context.xml file which, I guess, didn't fit the new servlet engine api. It caused that when a jsp was directly called from the client the session cookie wasn't sent (or wasn't read by the container) and thus a new session was created. When I removed this file everything worked. I now need to recap my steps to understand why I used the context.xml in Jboss 4.2.3 and if I need to use some of the configuration there.