cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: [2.2] cocoon-batik-impl not working?
Date Mon, 11 Dec 2006 13:38:27 GMT
Yes, that solves it. It had an (old) avalon-framework-4.0.jar in the
classpath, after removing it, the batik block seems to work fine (from
first tests).

I'll try to figure out where avalon-framework-4.0.jar is defined.

Thanks!
Bart.

> -----Oorspronkelijk bericht-----
> Van: Daniel Fagerstrom [mailto:danielf@nada.kth.se]
> Verzonden: maandag 11 december 2006 14:15
> Aan: dev@cocoon.apache.org
> Onderwerp: Re: [2.2] cocoon-batik-impl not working?
> 
> I have had the same problem. What happens is that some of the batik
> libraries has a transitive dependency on some obsolete version of
> avalon-framework. Normally, if there are dependencies of several
> different versions of the same library, the latest of the depended
> versions will be chosen by Maven.
> 
> But in this case the old version of avalon is called something like
> "avalon-framework" wile the later ones are spit into an api and an
> implementation part. The also have different group ids. In the end the
> obsolete Avalon framework versions happens to be earlier in alphabetic
> order and by consequence before in search order in the classpath.
> 
> You can test if the above is the problem by look if you have to many
> Avalon framework libraries in your WEB-INF/lib, and if this is the
case
> remove it and restart.
> 
> To solve the situation one need to analyze how the obsolete
> avalon-framework is included in the build. This can be done by
building
> with the -X switch. Then one can use "exclude" directives in the pom
to
> turn of the inclusion of the jar.
> 
> /Daniel
> 
> 
> Bart Molenkamp skrev:
> > Hi,
> >
> > I'm trying to experiment with Cocoon 2.2 and the batik block. But
I'm
> > getting an exception:
> >
> > 2006-12-11 13:08:03.375::WARN:  Nested in
> > org.springframework.beans.factory.BeanDefinitionStoreException:
> > Unexpected exception parsing XML document from Se
> > rvletContext resource [/WEB-INF/applicationContext.xml]; nested
> > exception is java.lang.NoSuchMethodError:
> > org.apache.avalon.framework.configuration.Default
> >
ConfigurationBuilder.build(Ljava/io/InputStream;Ljava/lang/String;)Lorg/
> > apache/avalon/framework/configuration/Configuration;:
> > java.lang.NoSuchMethodError:
> >
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> > ild(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apach
> > e/avalon/framework/configuration/Configuration;
> >         at
> >
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadU
> > RI(ConfigurationReader.java:506)
> >         at
> >
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handl
> > eInclude(ConfigurationReader.java:458)
> >         at
> > ...
> >
> > I guess it is the same error like this [1]. Anybody any hint on how
to
> > solve this?
> >
> > Thanks,
> > Bart.
> >
> >
> > [1]
http://www.mail-archive.com/users@cocoon.apache.org/msg36299.html
> >
> >



Mime
View raw message