Hello Tomcat users,

I'm in a trouble. I share some object(StatesBean) between servlets. And when I
recompile _servlet_, I got ClassCastException about shared object.


_statesBean=
    (StatesBean)getServletContext().getAttribute(StatesBean.STATES_BEAN_NAME);

    
Classfile for this object is placed in the same directory, where
servlets do - web-inf/classes. Where I need to place classfile for
this object to prevent Tomcat exceptions?

Of course, if I reload Tomcat everything is OK.

Thank you in advance!

-- 
Best regards,
 Andrey                            mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to