dcsimg
Web applications
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   elango_maragtham
Posted On:   Tuesday, April 23, 2002 07:40 PM

Hi, I am using iPlanet web server 6.0. In that i host my application as a web application by giving a virtual name say A.I am running the another similar application but with different name say B. when i open the browser http://localhost/A/index.jsp the application runs fine.When i open http://localhost/B/index.jsp in the same browser window it gives internal server error .. The error is classcast exception ... Actually i use Sessions in the index.jsp to get and put some values.The object got/put are userdefined objects. Both the applications have different package structures for the userdefined object but use same class name. The key i used to put the session object is also the same in both a   More>>

Hi,
I am using iPlanet web server 6.0. In that i host my application as a web application by giving a virtual name say A.I am running the another similar application but with different name say B.

when i open the browser http://localhost/A/index.jsp the application runs fine.When i open http://localhost/B/index.jsp in the same browser window it gives internal server error ..

The error is classcast exception ...

Actually i use Sessions in the index.jsp to get and put some values.The object got/put are userdefined objects.

Both the applications have different package structures for the userdefined object but use same class name.

The key i used to put the session object is also the same in both applications.

I dont understand what may be wrong ;)

when i open the applications in seperate browser windows at the same time it works fine.

The only problem is i cant use the same browser window to run both of my applications ;)

Can anyone help on this

Thanks
Elango

   <<Less

Re: Web applications

Posted By:   Anonymous  
Posted On:   Tuesday, April 23, 2002 10:04 PM



Hi,

Before setting the session from both A & B applications at the first time, make
sure that you are invalidating the current Session variables.

Before setting the session do response.getSession(true) for the first time to create a new
session for the request.

If you had put response.getSession(false) at the first time, this will return the old session
which was set by application A which would cause you a Class cast exception.

Joseph
crimsonlogic

About | Sitemap | Contact