add the javamail and activation jars *before* the weblogic stuff in your
classpath.  It's not finding the properties file
(javamail.default.providers) which lists the service providers available
since they weren't packaged with the weblogic distro.  It is in the
javamail.jar though.

Humphrey

-----Original Message-----
From: Jose Antonio Garrote [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2000 11:03
To: [EMAIL PROTECTED]
Subject: How to send a mail from a session bean


        Hello,

        I've tried to send a mail with a stateless session bean.
I use javamail 1.1.3 and jaf 1.0.1 but when I try to send
a mail the response is:

javax.mail.NoSuchProviderException: No provider for Address type: rfc822
        at javax.mail.Session.getTransport(Session.java:475)
        at javax.mail.Transport.send0(Transport.java:154)
        at javax.mail.Transport.send(Transport.java:80)
        at correo.CorreoBean.mandaCorreo(CorreoBean.java, Compiled Code)
        at correo.CorreoBeanEOImpl.mandaCorreo(CorreoBeanEOImpl.java:56)
        at
correo.CorreoBeanEOImpl_WLSkel.invoke(CorreoBeanEOImpl_WLSkel.java:88)
        at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
pter.java,
mpiled Code)
        at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
r.java:69)
        at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
5)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)

        Thanks,

                Jose





--------------------------------------------------
Jose Antonio Garrote Pe�a
[EMAIL PROTECTED]
Cedetel. Parque Tecnologico de Boecillo. Edificio Centro.
E-47151 Boecillo (Valladolid) [SPAIN]
Tel.: +34 983 546502 FAX: +34 983 546696
--------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to