Using : jboss-3.2.0_tomcat-4.1.24
I have one Session bean from which I'm tring to send a simple mail.
msg.setFrom( new InternetAddress( "firstname.lastname@example.org" ) );
msg.setRecipients( javax.mail.Message.RecipientType.TO, InternetAddress.parse( "damencho@otherHost.com", false ) );
msg.setSubject( "This is a test" );
msg.setText( "<h2>Hi there!</h2>");
msg.setHeader( "X-Mailer", "JavaMailer" );
msg.setSentDate( new Date() );
Transport.send( msg );
but when this is called an exception is thrown :
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
I have a simillar problem with an Standalone apple=ication but the problem was the sequence of the mail.jar and the actiovation.jar.
But in JBoss the classpath seemed to be ok. Here is the config which is in the deploy directory(mail-service.xml)
The jars in the classpath seem to be ok. I can't find a solution for this problem can anybody help me please.