This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes JavaMail UnsupportedDataTypeException in custom ClassLoader    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaMail UnsupportedDataTypeException in custom ClassLoader    " Watch "JavaMail UnsupportedDataTypeException in custom ClassLoader    " New topic

JavaMail UnsupportedDataTypeException in custom ClassLoader

Michael Remijan
Ranch Hand

Joined: May 29, 2002
Posts: 120

I have an application which is giving a UnsupportedDataTypeException: no object DCH for MIME type text/plain error. Now, what's important to know is that the application runs fine if I execute it from the command line like a regular Java application. So I know the code works fine with all the JAR files I have. However, I normally do not run the application like this. What I usually do is start the application withing an already running JVM, however I create a new ClassLoader and start the application within that new ClassLoader (similar to how each Tomcat webapp application has it's own separate ClassLoader). I'm getting the below exception when running inside this new ClassLoader. Anyone have any ideas why? How to fix it?

Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
jQuery in Action, 2nd edition
subject: JavaMail UnsupportedDataTypeException in custom ClassLoader
Similar Threads
Java Mail - UnsupportedDataTypeException
Java mail
UnsupportedDataTypeException in mail sendprogram
Not able to send mail using Servlet and JSP
javaMail question ( the same as previous topic with source code)