You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Brian Eaton <be...@google.com> on 2008/07/20 00:13:03 UTC

shindig missing common-io?

A clean shindig build is failing when attempting to render a gadget,
with this exception:

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
	at org.apache.shindig.common.util.ResourceLoader.getContent(ResourceLoader.java:74)
	at org.apache.shindig.gadgets.JsFeatureLoader.loadFeatures(JsFeatureLoader.java:83)
	at org.apache.shindig.gadgets.GadgetFeatureRegistry.<init>(GadgetFeatureRegistry.java:71)
	... 38 more

A little digging shows that commons-io is no longer appearing in the
war file for the default server, so things go bad.

Anybody else seeing this?  Any ideas about why commons-io has gone missing?

Cheers,
Brian

Re: shindig missing common-io?

Posted by Kevin Brown <et...@google.com>.
On Sat, Jul 19, 2008 at 9:52 PM, Brian Eaton <be...@google.com> wrote:

> On Sat, Jul 19, 2008 at 4:06 PM, Kevin Brown <et...@google.com> wrote:
> > http://svn.apache.org/viewvc?view=rev&revision=677955 is the culprit,
> though
> > it's not obvious why it's causing this. I suspect this is being caused
> > becuase htmlunit depends on an older version of commons-io:
>
> How on earth did you figure out that the htmlunit dep on an older
> version of commons-io was causing this?


I looked at the deltas to see what was being pulled in, and of all the new
dependencies the only one that looked likely to have anything to do with
commons io was htmlunit. Simulating an http user agent would require lots of
I/O, but the other stuff didn't seem like it would.


>
>
> > Does anyone know how to resolve these conflicts with maven? In this case
> > it's just a test dependency, too, so it's not like a real conflict.
>
> You use an <exclusion> tag.  Submitted in r678248.
>
> Cheers,
> Brian
>

Re: shindig missing common-io?

Posted by Ian Boston <ie...@tfd.co.uk>.
For information to anyone wanting to work out a transitive dep  
tree... if find the following helpful:

running

mvn -X install

will tell you the dependency tree for each artifact, and the also  
tell you the resulting packaged jar. If an intermediate pom had an  
exclusion, then it might filter out the dep. Even with that  
information, still needs a lot of thought since that will only give  
you the information, not the answer.

Ian

On 20 Jul 2008, at 05:52, Brian Eaton wrote:

> How on earth did you figure out that the htmlunit dep on an older
> version of commons-io was causing this?


Re: shindig missing common-io?

Posted by Brian Eaton <be...@google.com>.
On Sat, Jul 19, 2008 at 4:06 PM, Kevin Brown <et...@google.com> wrote:
> http://svn.apache.org/viewvc?view=rev&revision=677955 is the culprit, though
> it's not obvious why it's causing this. I suspect this is being caused
> becuase htmlunit depends on an older version of commons-io:

How on earth did you figure out that the htmlunit dep on an older
version of commons-io was causing this?

> Does anyone know how to resolve these conflicts with maven? In this case
> it's just a test dependency, too, so it's not like a real conflict.

You use an <exclusion> tag.  Submitted in r678248.

Cheers,
Brian

Re: shindig missing common-io?

Posted by Kevin Brown <et...@google.com>.
http://svn.apache.org/viewvc?view=rev&revision=677955 is the culprit, though
it's not obvious why it's causing this. I suspect this is being caused
becuase htmlunit depends on an older version of commons-io:

http://repo1.maven.org/maven2/net/sourceforge/htmlunit/htmlunit/1.14/htmlunit-1.14.pom

Does anyone know how to resolve these conflicts with maven? In this case
it's just a test dependency, too, so it's not like a real conflict.

On Sat, Jul 19, 2008 at 3:13 PM, Brian Eaton <be...@google.com> wrote:

> A clean shindig build is failing when attempting to render a gadget,
> with this exception:
>
> Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
>        at
> org.apache.shindig.common.util.ResourceLoader.getContent(ResourceLoader.java:74)
>        at
> org.apache.shindig.gadgets.JsFeatureLoader.loadFeatures(JsFeatureLoader.java:83)
>        at
> org.apache.shindig.gadgets.GadgetFeatureRegistry.<init>(GadgetFeatureRegistry.java:71)
>        ... 38 more
>
> A little digging shows that commons-io is no longer appearing in the
> war file for the default server, so things go bad.
>
> Anybody else seeing this?  Any ideas about why commons-io has gone missing?
>
> Cheers,
> Brian
>