You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Melvin Dave Vivas <me...@gmail.com> on 2006/12/06 10:57:41 UTC

sending email in geronimo

Hi,

I have a problem with sending email using javamail 1.4 in Geronimo.
Here is the error I am getting.

java.lang.UnsupportedOperationException: Method not yet implemented
        at javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)

I suspect that there is a classloading problem with my jars. Any ideas
on what workaround I can implement?

By the way, can we force the application to load classes first from
the web application's WEB-INF/lib directory? This is where I place my
javamail libraries.

Thanks!

Melvin

Re: sending email in geronimo

Posted by Rick McGuire <ri...@gmail.com>.
You must be using Geronimo 1.0.  The newer 1.1 version has a more fully 
implemented version of javamail 1.3.1 level.  Upgrading to 1.1 should 
fix your problem unless you are dependent upon new features in the 1.4 
version. 

Unfortunately, because the javamail api code is used by other server 
services such as axis, the Geronimo resident version gets picked up 
first in the classloading sequence over your WEB_INF/lib directory.  I 
believe there might be some means to override that, but I've never done 
this myself, so I'm not sure how it would be done.  One simple way to 
override this is to drop the Sun javamail 1.4 jars into the ext directory.

Rick

Melvin Dave Vivas wrote:
> Hi,
>
> I have a problem with sending email using javamail 1.4 in Geronimo.
> Here is the error I am getting.
>
> java.lang.UnsupportedOperationException: Method not yet implemented
>        at 
> javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
>
> I suspect that there is a classloading problem with my jars. Any ideas
> on what workaround I can implement?
>
> By the way, can we force the application to load classes first from
> the web application's WEB-INF/lib directory? This is where I place my
> javamail libraries.
>
> Thanks!
>
> Melvin
>


Re: sending email in geronimo

Posted by Kaeto23 <ka...@yahoo.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hello, Melvin

I remember that someone here on the list had a similar problem. By
including a dependency on javamail (I forgot the details) he was able to
use javamail finally.

Therefore, you may search the archive of this list for javamail. I hope
you will find the answer ^^

Oh, I forgot: he/she was implementing a GBean afaik ...

Best regards

Dirk

Melvin Dave Vivas schrieb:
> I'm still confused on how Geronimo handles sending of mail using
> javamail. I also haven't found any documentation explaining how to
> send mail using Geronimo.
> 
> In my code, I just use the javamail basic stuff but it does not work for
> me.
> 
> Any ideas?
> 
> Thanks.
> 
> On 12/6/06, Melvin Dave Vivas <me...@gmail.com> wrote:
>> Hi,
>>
>> I have a problem with sending email using javamail 1.4 in Geronimo.
>> Here is the error I am getting.
>>
>> java.lang.UnsupportedOperationException: Method not yet implemented
>>         at
>> javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
>>
>> I suspect that there is a classloading problem with my jars. Any ideas
>> on what workaround I can implement?
>>
>> By the way, can we force the application to load classes first from
>> the web application's WEB-INF/lib directory? This is where I place my
>> javamail libraries.
>>
>> Thanks!
>>
>> Melvin
>>
> 
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://kaeto23@jabber.ds2/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFd9cDbiSTaBU+G6oRA9tgAJ49GBypTob44xriIUSiW2qnbw/+cgCdHpv3
kRE0ErOI/Z/dz9cc+pDWAko=
=/mT/
-----END PGP SIGNATURE-----



	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

Re: sending email in geronimo

Posted by "Christopher M. Cardona" <ch...@gmail.com>.
Hi Melvin,

Which version of Geronimo are you using? FYI, Geronimo trunk now 
includes its own implementations of JavaMail 1.4 and Activation 1.1 so 
you won’t need any javamail related jar files in your webapp not unless 
you intend to use a specific javamail implementation. If you’re 
interested here's the link on building trunk: 
http://cwiki.apache.org/GMOxDEV/building-apache-geronimo-with-maven-2.html

Best wishes,
chris


Melvin Dave Vivas wrote:
> I'm still confused on how Geronimo handles sending of mail using
> javamail. I also haven't found any documentation explaining how to
> send mail using Geronimo.
>
> In my code, I just use the javamail basic stuff but it does not work 
> for me.
>
> Any ideas?
>
> Thanks.
>
> On 12/6/06, Melvin Dave Vivas <me...@gmail.com> wrote:
>> Hi,
>>
>> I have a problem with sending email using javamail 1.4 in Geronimo.
>> Here is the error I am getting.
>>
>> java.lang.UnsupportedOperationException: Method not yet implemented
>> at javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
>>
>> I suspect that there is a classloading problem with my jars. Any ideas
>> on what workaround I can implement?
>>
>> By the way, can we force the application to load classes first from
>> the web application's WEB-INF/lib directory? This is where I place my
>> javamail libraries.
>>
>> Thanks!
>>
>> Melvin
>>
>
>


Re: sending email in geronimo

Posted by Melvin Dave Vivas <me...@gmail.com>.
I'm still confused on how Geronimo handles sending of mail using
javamail. I also haven't found any documentation explaining how to
send mail using Geronimo.

In my code, I just use the javamail basic stuff but it does not work for me.

Any ideas?

Thanks.

On 12/6/06, Melvin Dave Vivas <me...@gmail.com> wrote:
> Hi,
>
> I have a problem with sending email using javamail 1.4 in Geronimo.
> Here is the error I am getting.
>
> java.lang.UnsupportedOperationException: Method not yet implemented
>         at javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
>
> I suspect that there is a classloading problem with my jars. Any ideas
> on what workaround I can implement?
>
> By the way, can we force the application to load classes first from
> the web application's WEB-INF/lib directory? This is where I place my
> javamail libraries.
>
> Thanks!
>
> Melvin
>


-- 
The only true wisdom is in knowing you know nothing - Socrates

Melvin Dave Photography
http://www.melvindave.com

An online community of Filipinos working and living abroad. Sali na!
http://www.xpatpinoy.com