You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/03/08 13:20:45 UTC

DO NOT REPLY [Bug 6984] New: - HTTPSessionTimeout in Thread with different ClassLoader

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6984>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6984

HTTPSessionTimeout in Thread with different ClassLoader

           Summary: HTTPSessionTimeout in Thread with different ClassLoader
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Webapps
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mredeker@web.de


I am holding a EJBHandle in a java bean which implements 
HttpSessionBindingListener. This java bean is in a 
When I logoff my application normally I invalidate the HTTPSession and 
the 'valueUnbound' 
method is called. In that method I call getEJBObject on my handle and do some 
method call 
on my EJB and then I call remove on my EJB. So far everything is fine.

If my HTTPSession is invalidated because of a timeout 'valueUnbound' is also 
called 
but I get a ClassCastException when I want to cast my EJBObject to my real 
remote interface.

>From what I can see is that the check if a timeout is reached is running in a 
separate Thread. 

It seems that the separate Thread has a different ClassLoader which causes the 
Exception.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>