log4j mail config problem

15 views
Skip to first unread message

Michael Abato

unread,
Jan 13, 2010, 9:22:19 AM1/13/10
to ivyroundup
I'm getting an error retrieving log4j w/javamail. I'm using:

<dependency org="org.apache.log4j" name="log4j" rev="+" conf="runtime-
>mail;compile;sources" />

Which leads to:

[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: javax.mail#javamail;[1.4,2.0[: not found
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::

It succeeds with conf="runtime->jms". It looks like the log4j ivy.xml
is specifying javamail 1.4.2+, but roundup only has javamail 1.4.1.
How do I install javamail 1.4.3 (the latest 1.4.x from sun)? Or should
the log4j accept 1.4.1?

Thanks,
Michael Abato

Mark Thomas

unread,
Jan 13, 2010, 10:31:58 AM1/13/10
to ivyro...@googlegroups.com
it should accept 1.4.1; we'll look into it

Regards,

Mark Thomas
spatialguru.net@gmail.com
205.529.9013

"Commit to the Lord whatever you do,
   and your plans will succeed." - Proverbs 16:3


--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To post to this group, send email to ivyro...@googlegroups.com.
To unsubscribe from this group, send email to ivyroundup+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ivyroundup?hl=en.




Archie Cobbs

unread,
Jan 13, 2010, 10:33:03 AM1/13/10
to ivyro...@googlegroups.com
FYI,

I'm adding 1.4.2 and 1.4.3 to the repository right now...

-Archie
--
Archie L. Cobbs

Mark Thomas

unread,
Jan 13, 2010, 10:44:36 AM1/13/10
to ivyro...@googlegroups.com
archie, when doing that will you please test changing log4j to [1.4.0,2.0[ and or 1.+?


Regards,

Mark Thomas
spatialguru.net@gmail.com
205.529.9013

"Commit to the Lord whatever you do,
   and your plans will succeed." - Proverbs 16:3


Archie Cobbs

unread,
Jan 13, 2010, 10:52:54 AM1/13/10
to ivyro...@googlegroups.com
Sure.. will let you know.

-Archie

Archie Cobbs

unread,
Jan 13, 2010, 10:55:35 AM1/13/10
to ivyro...@googlegroups.com
Um, wait a minute... log4j currently has:

    <dependency org="javax.mail" name="javamail" rev="[1.4,2.0[" conf="mail->default"/>

So the problem is not the version range. I think the original problem may be due to the manual download requirement.

Michael, please read this wiki page and make sure you have the javamail archives downloaded into /tmp.

-Archie
--
Archie L. Cobbs

Michael Abato

unread,
Jan 13, 2010, 11:37:33 AM1/13/10
to ivyro...@googlegroups.com
Your're right - the log4j ivy.xml does look correct.

My problem turned out to be in details I left out of the original question. I'm creating a private repository and populating it with ivy imports from roundup and I believe I mis-configured my private repository, so the import worked but the test retrieve failed as described. Fixing the ivyconfig for the target repository corrected the problem.

Misreading the syntax of '[1.4,2.0[' - I saw 1.4.2 - led me to think the problem was upstream in ivyroundup.

Upgrading to 1.4.3 does make sense regardless. That was probably the most confusing thing when I was configuring ivy - should I pull down 1.4.1, 1.4.3, both?

I appreciate the quick responses even though it was on my end.

- mike
Reply all
Reply to author
Forward
0 new messages