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