Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 63
Product ServletExec
Category Session Tracking
Question Why do some of my servlets throw a ClassCastException when retrieving session data?
Answer When running your servlets outside the context of a web application, classes that are shared by multiple servlets (such as session data classes) must be placed in the Main ServletExec classpath instead of the Servlets directory. If they are placed in the Servlets directory then ClassCastExceptions will occur. This problem can likely be avoided by running your servlets inside the context of a web application (since each web application uses a single, custom classloader for loading all classes).



   
company media information terms of use privacy policy contact us