This content has been marked as final.
Show 4 replies
-
1. Re: JavaMail : java.lang.ClassCastException: javax.mail.Sess
jaikiran May 15, 2008 9:49 AM (in response to knarenderreddy)Is this code, part of a servlet/web application or is it a standalone java application?
-
2. Re: JavaMail : java.lang.ClassCastException: javax.mail.Sess
knarenderreddy May 15, 2008 11:19 PM (in response to knarenderreddy)"jaikiran" wrote:
Is this code, part of a servlet/web application or is it a standalone java application?
This code is part of web application i mentioned clearly Using Jboss4.2.2 -
3. Re: JavaMail : java.lang.ClassCastException: javax.mail.Sess
jaikiran May 16, 2008 2:14 AM (in response to knarenderreddy)"knarenderreddy" wrote:
This code is part of web application i mentioned clearly Using Jboss4.2.2
knarenderreddy,
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. -
4. Re: JavaMail : java.lang.ClassCastException: javax.mail.Sess
knarenderreddy May 16, 2008 2:24 AM (in response to knarenderreddy)"jaikiran" wrote:
"knarenderreddy" wrote:
This code is part of web application i mentioned clearly Using Jboss4.2.2
knarenderreddy,
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.
Hi Thats why i am send another Post
In that post i mention all the configuration files
see that post and if you have solution please help