The log error message is: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)
I don't understand what's going on. If I use out.println(session.getAttribute("account")); that's fine.
I have the same error message if I try to use String s = request.getAttibute("abc");
I'm wondering what's in your included jsp, top.jsp.
I'm not sure what's going on with your stack trace (my best wild guess without seeing all of your code and your configuration is that the compile failed and it's trying to log it but fails to do that, too), but the following line in your jsp shouldn't compile, it needs a cast. I get an "incompatible types" error when I try to compile it (not with tomcat 5).