You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ramiro Pereira de Magalhaes <rp...@yahoo.com.br> on 2005/06/15 06:31:23 UTC

[email] FIXED commons-email tests for nightly builds script

Craig,

after having some fight with the commons-email project I discovered the 
problem that breaks it: you're compiling the project with the 
<javamail_path>/lib/mailapi.jar package instead of 
<javamail_path>/mail.jar (check the build.properties file). The first 
one does not have the necessary Providers (in this case the SMTP 
provider) required by Dumbster, the fake mail server used for testing. 
The other one does. Once I fixed this, all tests passed.

My source of information was 
http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html, 
quoted below:
"The |mailapi.jar| file contains the core API classes, while the 
|pop3.jar| and |smtp.jar| files contain the provider implementations for 
the respective mail protocols. (We won't use the |imap.jar| file in this 
article.) Think of the provider implementations as similar to JDBC (Java 
Database Connectivity) drivers, but for messaging systems rather than 
databases. As for the |mail.jar| file, it contains each of the above jar 
files, so you could restrict your classpath to just the |mail.jar| and 
|activation.jar| files."

I hope this helps make things move again...

Ramiro Pereira de Magalhães



Craig McClanahan wrote:

>SVN is the current source repository for all Jakarta Commons projects
>(proper and sandbox).  The CVS repository was frozen at the time that
>migration to SVN took place, and is in read only state as a
>convenience for people that still had references to it.
>
>As for nightly builds, I run them for nearly all the commons packages
>... but cannot for email because the developers haven't provided an
>Ant "build.xml" script where "ant clean dist" succeeds -- it compiles
>ok, but fails in the unit tests, and the script is set up such that
>this fails the build.  The portion of the build output documenting
>this failure:
>
>
>    [junit] Testsuite: org.apache.commons.mail.HtmlEmailTest
>    [junit] Tests run: 6, Failures: 1, Errors: 1, Time elapsed: 3.807 sec
>
>    [junit] Testcase: testGetSetTextMsg took 0.154 sec
>    [junit] Testcase: testGetSetHtmlMsg took 0 sec
>    [junit] Testcase: testGetSetMsg took 0.001 sec
>    [junit] Testcase: testEmbed took 0.678 sec
>    [junit] Testcase: testSend took 2.24 sec
>    [junit] 	FAILED
>    [junit] Unexpected exception thrown
>    [junit] junit.framework.AssertionFailedError: Unexpected exception thrown
>    [junit] 	at
>org.apache.commons.mail.HtmlEmailTest.testSend(HtmlEmailTest.java:302)
>
>    [junit] Testcase: testSend2 took 0.694 sec
>    [junit] 	Caused an ERROR
>    [junit] javax.mail.NoSuchProviderException: smtp
>    [junit] org.apache.commons.mail.EmailException:
>javax.mail.NoSuchProviderException: smtp
>    [junit] 	at org.apache.commons.mail.Email.send(Email.java:822)
>    [junit] 	at
>org.apache.commons.mail.MultiPartEmail.send(MultiPartEmail.java:224)
>    [junit] 	at org.apache.commons.mail.HtmlEmail.send(HtmlEmail.java:227)
>    [junit] 	at
>org.apache.commons.mail.HtmlEmailTest.testSend2(HtmlEmailTest.java:380)
>    [junit] Caused by: javax.mail.NoSuchProviderException: smtp
>    [junit] 	at javax.mail.Session.getService(Session.java:750)
>    [junit] 	at javax.mail.Session.getTransport(Session.java:689)
>    [junit] 	at javax.mail.Session.getTransport(Session.java:632)
>    [junit] 	at javax.mail.Session.getTransport(Session.java:612)
>    [junit] 	at javax.mail.Session.getTransport(Session.java:667)
>    [junit] 	at javax.mail.Transport.send0(Transport.java:148)
>    [junit] 	at javax.mail.Transport.send(Transport.java:80)
>    [junit] 	at org.apache.commons.mail.Email.send(Email.java:818)
>    [junit] 	... 18 more
>
>
>Craig
>
>On 6/14/05, Ramiro Pereira de Magalhaes <rp...@yahoo.com.br> wrote:
>  
>
>>I downloaded the latest source file from the commons-email from that
>>source and ran a "diff" on the existing code from SVN repository. The
>>only 2 differences were a compiled code existing on a "bin/" folder and
>>a "build.properties" file: both did not exist on the SVN repository.
>>
>>So, for development purposes we can assume that the repository to be
>>used is the SVN
>>http://svn.apache.org/repos/asf/jakarta/commons/proper/email/trunk
>>instead of the CVS one?
>>
>>Ramiro Pereira de Magalhães
>>
>>
>>
>>Simon Kitching wrote:
>>
>>    
>>
>>>On Mon, 2005-06-13 at 20:37 +0530, Bindul Bhowmik wrote:
>>>
>>>
>>>      
>>>
>>>>Now, to my original problem: since brutus is out of action, where do I
>>>>get nightly builds for commons-email (if it is getting built at all)?
>>>>
>>>>
>>>>        
>>>>
>>>http://cvs.apache.org/builds/jakarta-commons/nightly/
>>>
>>>Regards,
>>>
>>>Simon
>>>
>>>      
>>>
>>
>>
>>
>>____________________________________________________
>>Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>  
>

	
	
		
____________________________________________________
Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [email] FIXED commons-email tests for nightly builds script

Posted by Craig McClanahan <cr...@gmail.com>.
Actually, Ramiro is pointing in *exactly* the right direction ... I
was indeed pointing my "javamail-1.3.2.url" property at the
"lib/mailapi.jar" file of my JavaMail 1.3.2 distribution.

The only problem (in my case) is that my distro doesn't have a
mail.jar in the "lib" directory -- it only contains imap.jar,
mailapi.jar, pop3.jar, and smtp.jar there.  Of course, there *is* a
mail.jar in the main distro directory :-).

Amazing what happens when you point at the correct JAR file ...
tonight's build and upload of the email package should succeed! 
Thanks Ramiro!!!

Craig




On 6/14/05, Simon Kitching <sk...@apache.org> wrote:
> On Wed, 2005-06-15 at 01:31 -0300, Ramiro Pereira de Magalhaes wrote:
> > Craig,
> >
> > after having some fight with the commons-email project I discovered the
> > problem that breaks it: you're compiling the project with the
> > <javamail_path>/lib/mailapi.jar package instead of
> > <javamail_path>/mail.jar (check the build.properties file). The first
> > one does not have the necessary Providers (in this case the SMTP
> > provider) required by Dumbster, the fake mail server used for testing.
> > The other one does. Once I fixed this, all tests passed.
> >
> > My source of information was
> > http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html,
> > quoted below:
> > "The |mailapi.jar| file contains the core API classes, while the
> > |pop3.jar| and |smtp.jar| files contain the provider implementations for
> > the respective mail protocols. (We won't use the |imap.jar| file in this
> > article.) Think of the provider implementations as similar to JDBC (Java
> > Database Connectivity) drivers, but for messaging systems rather than
> > databases. As for the |mail.jar| file, it contains each of the above jar
> > files, so you could restrict your classpath to just the |mail.jar| and
> > |activation.jar| files."
> >
> > I hope this helps make things move again...
> 
> Sorry, Ramiro, but to use an old expression: I think you're beating a
> dead horse.
> 
> Craig kindly runs the nightly builds for commons projects, but isn't an
> email developer. And while your fix may well be right, no-one should
> make that change without spending some time thinking about what the
> implications are, and why it wasn't done that way before. And no-one
> seems to have the enthusiasm or time to do that.
> 
> In any case, that would just make the nightly builds work again. That
> isn't much use when there are no changes being applied to the project
> source.
> 
> Unless an existing commons committer is willing to volunteer their time
> to work on this for no particular reason, or a committer happens to
> *need* the email project in some of their other work, or some
> non-committer with a good open-source track record comes along (someone
> we could feel comfortable with granting committer access to immediately)
> there just isn't likely to be any progress on commons-email here.
> 
> Regards,
> 
> Simon
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [email] FIXED commons-email tests for nightly builds script

Posted by Simon Kitching <sk...@apache.org>.
On Wed, 2005-06-15 at 15:18 +1000, Dion Gillard wrote:
> I think it's a bit pessimistic to say it's a dead horse.
> 
> I should have some free time for email later this week....

Ah .. sorry, Dion. Good to know you're still interested.


Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [email] FIXED commons-email tests for nightly builds script

Posted by Dion Gillard <di...@gmail.com>.
I think it's a bit pessimistic to say it's a dead horse.

I should have some free time for email later this week....

On 6/15/05, Simon Kitching <sk...@apache.org> wrote:
> On Wed, 2005-06-15 at 01:31 -0300, Ramiro Pereira de Magalhaes wrote:
> > Craig,
> >
> > after having some fight with the commons-email project I discovered the
> > problem that breaks it: you're compiling the project with the
> > <javamail_path>/lib/mailapi.jar package instead of
> > <javamail_path>/mail.jar (check the build.properties file). The first
> > one does not have the necessary Providers (in this case the SMTP
> > provider) required by Dumbster, the fake mail server used for testing.
> > The other one does. Once I fixed this, all tests passed.
> >
> > My source of information was
> > http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html,
> > quoted below:
> > "The |mailapi.jar| file contains the core API classes, while the
> > |pop3.jar| and |smtp.jar| files contain the provider implementations for
> > the respective mail protocols. (We won't use the |imap.jar| file in this
> > article.) Think of the provider implementations as similar to JDBC (Java
> > Database Connectivity) drivers, but for messaging systems rather than
> > databases. As for the |mail.jar| file, it contains each of the above jar
> > files, so you could restrict your classpath to just the |mail.jar| and
> > |activation.jar| files."
> >
> > I hope this helps make things move again...
> 
> Sorry, Ramiro, but to use an old expression: I think you're beating a
> dead horse.
> 
> Craig kindly runs the nightly builds for commons projects, but isn't an
> email developer. And while your fix may well be right, no-one should
> make that change without spending some time thinking about what the
> implications are, and why it wasn't done that way before. And no-one
> seems to have the enthusiasm or time to do that.
> 
> In any case, that would just make the nightly builds work again. That
> isn't much use when there are no changes being applied to the project
> source.
> 
> Unless an existing commons committer is willing to volunteer their time
> to work on this for no particular reason, or a committer happens to
> *need* the email project in some of their other work, or some
> non-committer with a good open-source track record comes along (someone
> we could feel comfortable with granting committer access to immediately)
> there just isn't likely to be any progress on commons-email here.
> 
> Regards,
> 
> Simon
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 


-- 
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [email] FIXED commons-email tests for nightly builds script

Posted by Simon Kitching <sk...@apache.org>.
On Wed, 2005-06-15 at 01:31 -0300, Ramiro Pereira de Magalhaes wrote:
> Craig,
> 
> after having some fight with the commons-email project I discovered the 
> problem that breaks it: you're compiling the project with the 
> <javamail_path>/lib/mailapi.jar package instead of 
> <javamail_path>/mail.jar (check the build.properties file). The first 
> one does not have the necessary Providers (in this case the SMTP 
> provider) required by Dumbster, the fake mail server used for testing. 
> The other one does. Once I fixed this, all tests passed.
> 
> My source of information was 
> http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html, 
> quoted below:
> "The |mailapi.jar| file contains the core API classes, while the 
> |pop3.jar| and |smtp.jar| files contain the provider implementations for 
> the respective mail protocols. (We won't use the |imap.jar| file in this 
> article.) Think of the provider implementations as similar to JDBC (Java 
> Database Connectivity) drivers, but for messaging systems rather than 
> databases. As for the |mail.jar| file, it contains each of the above jar 
> files, so you could restrict your classpath to just the |mail.jar| and 
> |activation.jar| files."
> 
> I hope this helps make things move again...

Sorry, Ramiro, but to use an old expression: I think you're beating a
dead horse. 

Craig kindly runs the nightly builds for commons projects, but isn't an
email developer. And while your fix may well be right, no-one should
make that change without spending some time thinking about what the
implications are, and why it wasn't done that way before. And no-one
seems to have the enthusiasm or time to do that.

In any case, that would just make the nightly builds work again. That
isn't much use when there are no changes being applied to the project
source.

Unless an existing commons committer is willing to volunteer their time
to work on this for no particular reason, or a committer happens to
*need* the email project in some of their other work, or some
non-committer with a good open-source track record comes along (someone
we could feel comfortable with granting committer access to immediately)
there just isn't likely to be any progress on commons-email here.

Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org