I´m trying to send a simple e-mail, based on the
example provided on JBoss` online help (at
http://www.jboss.org/online-manual/HTML/ch11s98.html).
But I always get the error:
javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type text/plain

My mail-service.xml contains:

<classpath codebase="lib"            
archives="mail.jar, activation.jar, mail-plugin.jar"/>

<mbean code="org.jboss.mail.MailService"
       name="jboss:service=Mail">
  <attribute name="JNDIName">java:/Mail</attribute>
  <attribute name="User">myUser</attribute>
  <attribute name="Password">myPassword</attribute>
  <attribute name="Configuration">
     <configuration>
        <property name="mail.transport.protocol"
value="smtp"/>
        <property name="mail.user" value="nobody"/>
        <property name="mail.smtp.host"
value="mySMTPHost"/>
        <property name="mail.from" value="myAddress"/>
        <property name="mail.debug" value="false"/>
     </configuration>
   </attribute>
</mbean>

And the stack trace is:
2003-02-13 14:03:32,547 ERROR [STDERR]
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        class javax.mail.MessagingException:
IOException while sending message;
  nested exception is:
        javax.activation.UnsupportedDataTypeException:
no object DCH for MIME type text/plain
2003-02-13 14:03:32,549 ERROR [STDERR]  at
javax.mail.Transport.send0(Transport.java:218)
2003-02-13 14:03:32,549 ERROR [STDERR]  at
javax.mail.Transport.send(Transport.java:80)
2003-02-13 14:03:32,550 ERROR [STDERR]  at
ejb.MailTestBean.sendMail(MailTestBean.java:37)
2003-02-13 14:03:32,550 ERROR [STDERR]  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
2003-02-13 14:03:32,559 ERROR [STDERR]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2003-02-13 14:03:32,560 ERROR [STDERR]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2003-02-13 14:03:32,560 ERROR [STDERR]  at
java.lang.reflect.Method.invoke(Method.java:324)
2003-02-13 14:03:32,560 ERROR [STDERR]  at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
2003-02-13 14:03:32,561 ERROR [STDERR]  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
2003-02-13 14:03:32,561 ERROR [STDERR]  at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
2003-02-13 14:03:32,561 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
2003-02-13 14:03:32,562 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:228)
2003-02-13 14:03:32,562 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92)
2003-02-13 14:03:32,562 ERROR [STDERR]  at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
2003-02-13 14:03:32,563 ERROR [STDERR]  at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
2003-02-13 14:03:32,563 ERROR [STDERR]  at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
2003-02-13 14:03:32,563 ERROR [STDERR]  at
org.jboss.ejb.Container.invoke(Container.java:712)
2003-02-13 14:03:32,564 ERROR [STDERR]  at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
2003-02-13 14:03:32,564 ERROR [STDERR]  at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
2003-02-13 14:03:32,564 ERROR [STDERR]  at
sun.reflect.GeneratedMethodAccessor22.invoke(Unknown
Source)
2003-02-13 14:03:32,565 ERROR [STDERR]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2003-02-13 14:03:32,565 ERROR [STDERR]  at
java.lang.reflect.Method.invoke(Method.java:324)
2003-02-13 14:03:32,565 ERROR [STDERR]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
2003-02-13 14:03:32,566 ERROR [STDERR]  at
sun.rmi.transport.Transport$1.run(Transport.java:148)
2003-02-13 14:03:32,566 ERROR [STDERR]  at
java.security.AccessController.doPrivileged(Native
Method)
2003-02-13 14:03:32,566 ERROR [STDERR]  at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
2003-02-13 14:03:32,567 ERROR [STDERR]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
2003-02-13 14:03:32,567 ERROR [STDERR]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
2003-02-13 14:03:32,567 ERROR [STDERR]  at
java.lang.Thread.run(Thread.java:536)

Does anyone know what can be the problem?
Thanks for any help.

Dediana


_______________________________________________________________________
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to