The error when I'm trying to send a mail in my servlet application is...
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
karthik mama wrote:"This class should be part of rt.jar"
I'm using RAD.... so how do i include the activation.jar as part of rt.jar......
If you don't mind could you please explain...
You don't need to add activation.jar as part of rt.jar. They just have to be both part of the class path; rt.jar usually is by default - if not the JVM can't even find java.lang.Object.
I've just checked a Java 5.0 installation, and it is missing this class inside rt.jar. That's because the activation framework wasn't part of the core API until Java 6. It's inside activation.jar though, so it seems you haven't added it properly to the class path.
How did you run your application when you got this exception? From within RAD, or from the command line? Because the latter requires you to set the class path yourself.
This looks like a version conflict to me. But Websphere already includes mail.jar and activation.jar in its system classpath (you can confirm this with the "snoop" servlet) so you don't need to put either in your application. And you shouldn't, either. Providing a different version than the one Websphere provides can lead to version conflicts.