[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JavaMail : java.lang.ClassCastException: javax.mail.Sess

jaikiran do-not-reply at jboss.com
Fri May 16 02:14:36 EDT 2008

"knarenderreddy" wrote : 
  | This code is part of web application i mentioned clearly Using Jboss4.2.2


You don't have to post your comments in "bold". Your first post did not mention whether the lookup code was part of a standalone client or a web application and that was the reason why i asked you that question.

Are you packaging mail.jar as part of your web application, which might be resulting into classloader conflicts? See this http://wiki.jboss.org/wiki/ClassCastExceptions for possible ways to debug the exception. Specifically have a look at the jmx-console method mentioned over there. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151253#4151253

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151253

More information about the jboss-user mailing list