tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Surya Mishra <surya.mis...@gmail.com>
Subject ClassCastException while sharing objects accross applications
Date Mon, 03 Oct 2005 23:12:32 GMT
Hi,

I am trying to share an object between 2 applications deployed on the same
tomcat server. I have put the object in the ServletContext in my first
application. I access the object using
ServletContext.getContext("firstApp").getAttribute("object");.
The object comes in fine but it won't let me cast it to the actual Object
Type. I get a ClassCastException. I tried printing the name of the class.
That also came fine (same class name).

Thanks in advance.
-Surya

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message