Asleson, Ryan [EMAIL PROTECTED] writes:
--_=_NextPart_001_01C5B313.D15644AC
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
I just tried using Commons-Email RC5 on WebLogic 8.1. When
using the Email.addTo method, I receive a
Hello,
I just tried using Commons-Email RC5 on WebLogic 8.1. When using the
Email.addTo method, I receive a NoSuchMethodError.
It appears that the Email class is attempting to use
InternetAddress.validate(), which is part of J2EE 1.4, not 1.3. Since I'm
using WebLogic 8.1, which is only
Asleson, Ryan wrote:
Hello,
I just tried using Commons-Email RC5 on WebLogic 8.1. When using the
Email.addTo method, I receive a NoSuchMethodError.
It appears that the Email class is attempting to use
InternetAddress.validate(), which is part of J2EE 1.4, not 1.3. Since I'm
using WebLogic
In JavaMail 1.2 you had no choice over how strict in checking the RFC822
syntax of an email address was - whether you used the static parse() method
or the InternetAddress constructor to create a new InternetAddress object.
In JavaMail 1.3 flavours of the parse() method and InternetAddress
Sorry, I missed a bit, along with the method/contructor with the new strict
flag, they say
To allow applications to check the syntax of addresses the might've been
parsed with the strict flag set to false, we add a validate method
- Original Message -
From: Niall Pemberton [EMAIL
AM
Subject: Re: [email] Commons-Email -- not J2EE 1.3?
Sorry, I missed a bit, along with the method/contructor with the new
strict
flag, they say
To allow applications to check the syntax of addresses the might've been
parsed with the strict flag set to false, we add a validate method
So one work-round might be to download JavaMail 1.3 and use that to
replace the existing JavaMail version?
However, I suppose this might cause other things to break ... unless
you can add it just for Commons Email.
S.
On 06/09/05, Niall Pemberton [EMAIL PROTECTED] wrote:
In JavaMail 1.2 you had
Another alternative is to remove the use of the validate() method. I created
a bugzilla ticket with patch here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36536
... or if email doesn't accept that change - then you could patch the Email
class yourself
Niall
- Original Message -