dependency on jms, jmxtools, jmxri

825 views
Skip to first unread message

Raymond Roestenburg

unread,
Jan 13, 2012, 6:49:15 PM1/13/12
to Akka Developer List
I'm getting an error in building akka, on not finding dependencies
jms, jmxtools, and jmxri. Are these jars really used or are they
dependencies sucked in by zookeeper?
Would it make sense to exclude these dependencies?

I don't know why sbt didn't just download these dependencies from the
typesafe repo, since the jars are there (and as far as I can see, the
resolver is added for typesafe in AkkaBuild). I've now manually copied
the jars from there into my ivy cache and it works, but can someone
tell me what I'm doing wrong here?

Scott Clasen

unread,
Jan 14, 2012, 11:39:13 AM1/14/12
to akka...@googlegroups.com
I think those are dependencies from a newer version of log4j which aren't in central. You can probably exclude if that's the case

Raymond Roestenburg

unread,
Jan 14, 2012, 11:57:00 AM1/14/12
to akka...@googlegroups.com
Thanks, it seems to be a Oracle/Sun licensing issue. 


On Sat, Jan 14, 2012 at 5:39 PM, Scott Clasen <scott....@gmail.com> wrote:
I think those are dependencies from a newer version of log4j which aren't in central. You can probably exclude if that's the case



--
Raymond Roestenburg

Scott Clasen

unread,
Jan 14, 2012, 1:29:11 PM1/14/12
to akka...@googlegroups.com
Yes, thats why they arent in central. If it is coming from the log4j dependency than you can safely exclude them since they dont cause problems if they are missing unless someone is trying to use a jms log4j appender or to do jmx management of log4j. They really are "runtime" dependencies.

Patrik Nordwall

unread,
Jan 14, 2012, 2:00:22 PM1/14/12
to akka...@googlegroups.com
From which dependency does this log4j version come? It cause trouble and it would be better to change to an older log4j, which doesn't have these stupid dependencies.

Raymond Roestenburg

unread,
Jan 14, 2012, 4:39:11 PM1/14/12
to akka...@googlegroups.com, akka...@googlegroups.com
I think it's from 1.2.15


--
Raymond Roestenburg

twtr: @RayRoestenburg

Patrik Nordwall

unread,
Jan 16, 2012, 8:37:19 AM1/16/12
to akka...@googlegroups.com
There were some wrong dependencies in akka-remote. Fixed in master.
--

Patrik Nordwall
Typesafe The software stack for applications that scale
Twitter: @patriknw


√iktor Ҡlang

unread,
Jan 16, 2012, 8:38:17 AM1/16/12
to akka...@googlegroups.com
Great work Patrik
--
Viktor Klang

Akka Tech Lead
Typesafe - The software stack for applications that scale

Twitter: @viktorklang

Jonas Bonér

unread,
Jan 16, 2012, 8:41:36 AM1/16/12
to akka...@googlegroups.com
Thanks Patrik.

2012/1/16 √iktor Ҡlang <viktor...@gmail.com>:

--
Jonas Bonér
CTO


Typesafe - The software stack for applications that scale

Phone: +46 733 777 123
Twitter: @jboner

Raymond Roestenburg

unread,
Jan 16, 2012, 9:56:31 AM1/16/12
to akka...@googlegroups.com
Thanks

On Mon, Jan 16, 2012 at 2:37 PM, Patrik Nordwall <patrik....@gmail.com> wrote:

Piotr Gabryanczyk

unread,
Jan 23, 2012, 6:12:15 AM1/23/12
to akka...@googlegroups.com
I am still getting this on master.
Is it really fixed?

[warn] [NOT FOUND  ] javax.jms#jms;1.1!jms.jar (180ms)
[warn] ==== public: tried
[warn] [NOT FOUND  ] com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar (107ms)
[warn] ==== public: tried
[warn] [NOT FOUND  ] com.sun.jmx#jmxri;1.2.1!jmxri.jar (497ms)
[warn] ==== public: tried
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::              FAILED DOWNLOADS            ::
[warn] :: ^ see resolution messages for details  ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: javax.jms#jms;1.1!jms.jar
[warn] :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
[warn] :: com.sun.jmx#jmxri;1.2.1!jmxri.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/Users/piotrga/Projekty/scala/akka/project/}default-5027d9/*:update: sbt.ResolveException: download failed: javax.jms#jms;1.1!jms.jar
[error] download failed: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
[error] download failed: com.sun.jmx#jmxri;1.2.1!jmxri.jar
Piotr Gabryanczyk
-
Blog: http://blog.scala4java.com
Twitter: @piotrga



Raymond Roestenburg

unread,
Jan 23, 2012, 6:51:05 AM1/23/12
to akka...@googlegroups.com
I haven't checked, I still have my ivy cache (and I'm keeping it that way, too much to do ;-) 

Did you clear your ivy cache, clean build?

√iktor Ҡlang

unread,
Jan 23, 2012, 7:20:52 AM1/23/12
to akka...@googlegroups.com
Yeah, clear ivy cache and possibly even m2 cache.
--
Viktor Klang

Akka Tech Lead
Typesafe - The software stack for applications that scale

Twitter: @viktorklang

Piotr Gabryanczyk

unread,
Jan 24, 2012, 8:39:17 AM1/24/12
to akka...@googlegroups.com
Still it's not working.

I did:
rm -rf ~/.ivy2
rm -rf ~/.m2
rm target
rm project/target
sbt

and I am getting this:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::              FAILED DOWNLOADS            ::
[warn] :: ^ see resolution messages for details  ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
[warn] :: com.sun.jmx#jmxri;1.2.1!jmxri.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/Users/piotrga/Projekty/scala/akka/project/}default-5027d9/*:update: sbt.ResolveException: download failed: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
[error] download failed: com.sun.jmx#jmxri;1.2.1!jmxri.jar

√iktor Ҡlang

unread,
Jan 24, 2012, 8:48:02 AM1/24/12
to akka...@googlegroups.com
Well, it's mirrored here: http://repo.typesafe.com/typesafe/releases/com/sun/jmx/jmxri/1.2.1/

So somewhere you've got something that doesn't seem to work.

Cheers,

Patrik Nordwall

unread,
Jan 24, 2012, 8:52:54 AM1/24/12
to akka...@googlegroups.com
I'll take a look. It shouldn't be downloaded at all.

2012/1/24 √iktor Ҡlang <viktor...@gmail.com>

√iktor Ҡlang

unread,
Jan 24, 2012, 9:04:46 AM1/24/12
to akka...@googlegroups.com

√iktor Ҡlang

unread,
Jan 24, 2012, 9:05:07 AM1/24/12
to akka...@googlegroups.com
Thanks Patrik, even

2012/1/24 √iktor Ҡlang <viktor...@gmail.com>

Patrik Nordwall

unread,
Jan 24, 2012, 10:05:52 AM1/24/12
to akka...@googlegroups.com
The bad log4j 1.2.15 dependency was from a sbt plugin, that we haven't started use yet, so for now I commented it out from the akka build. Grab latest master. Thanks for reporting.

2012/1/24 √iktor Ҡlang <viktor...@gmail.com>

√iktor Ҡlang

unread,
Jan 24, 2012, 10:23:19 AM1/24/12
to akka...@googlegroups.com

√iktor Ҡlang

unread,
Jan 24, 2012, 10:23:50 AM1/24/12
to akka...@googlegroups.com
Great work Patrik.

(Sorry for the empty replies, Safari is a piece of shit)

Piotr Gabryanczyk

unread,
Jan 24, 2012, 12:33:07 PM1/24/12
to akka...@googlegroups.com
On 24 Jan 2012, at 15:05, Patrik Nordwall wrote:

The bad log4j 1.2.15 dependency was from a sbt plugin, that we haven't started use yet, so for now I commented it out from the akka build. Grab latest master. Thanks for reporting.
It works now :)

Thank you Patrik. 

I also merged this change directly to wip-camel.
Reply all
Reply to author
Forward
0 new messages