This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaMail UnsupportedDataTypeException in custom ClassLoader    " Watch "JavaMail UnsupportedDataTypeException in custom ClassLoader    " New topic
Author

JavaMail UnsupportedDataTypeException in custom ClassLoader

Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 123
    
    5

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaMail UnsupportedDataTypeException in custom ClassLoader