You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Borut Bolčina <bo...@gmail.com> on 2010/11/09 14:59:53 UTC

slf4j conflicting versions

Hi,

just wanted to point out that if using T 5.2.2 and tapestry-resteasy module
you will have a

http://www.slf4j.org/faq.html#IllegalAccessError

That is becouse tapestry ioc is using slf4j 1.5.2, and tapestry-restasy
brings in slf4j-simple 1.5.8. Both are old.

The current version of slf4j is 1.6.1.

Current solution is

        <dependency>
            <groupId>org.tynamo</groupId>
            <artifactId>tapestry-resteasy</artifactId>
            <version>0.2.1-SNAPSHOT</version>
            <exclusions>
                <exclusion>
                    <artifactId>slf4j-simple</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>

and explicitly declaring

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.5.2</version>
</dependency>

-Borut

Re: slf4j conflicting versions

Posted by Joachim Van der Auwera <jo...@progs.be>.
In principle it should be sufficient to just declare the specific 
version in your pom. Maven uses the "nearest" version in the tree, 
top-down when several versions are at the same distance.

Joachim

On 11/09/2010 02:59 PM, Borut Bolčina wrote:
> Hi,
>
> just wanted to point out that if using T 5.2.2 and tapestry-resteasy module
> you will have a
>
> http://www.slf4j.org/faq.html#IllegalAccessError
>
> That is becouse tapestry ioc is using slf4j 1.5.2, and tapestry-restasy
> brings in slf4j-simple 1.5.8. Both are old.
>
> The current version of slf4j is 1.6.1.
>
> Current solution is
>
>          <dependency>
>              <groupId>org.tynamo</groupId>
>              <artifactId>tapestry-resteasy</artifactId>
>              <version>0.2.1-SNAPSHOT</version>
>              <exclusions>
>                  <exclusion>
>                      <artifactId>slf4j-simple</artifactId>
>                      <groupId>org.slf4j</groupId>
>                  </exclusion>
>              </exclusions>
>          </dependency>
>
> and explicitly declaring
>
> <dependency>
>      <groupId>org.slf4j</groupId>
>      <artifactId>slf4j-simple</artifactId>
>      <version>1.5.2</version>
> </dependency>
>
> -Borut
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: slf4j conflicting versions

Posted by Alejandro Scandroli <al...@gmail.com>.
Thanks Borut for the heads-up

I excluded all the slf4j libraries from the resteasy dependency.
http://fisheye.codehaus.org/changelog/tynamo/?cs=1672

Please, remember to send a coy o these messages to the Tynamo list.

Saludos.
Alejandro.

On Tue, Nov 9, 2010 at 2:59 PM, Borut Bolčina <bo...@gmail.com> wrote:
> Hi,
>
> just wanted to point out that if using T 5.2.2 and tapestry-resteasy module
> you will have a
>
> http://www.slf4j.org/faq.html#IllegalAccessError
>
> That is becouse tapestry ioc is using slf4j 1.5.2, and tapestry-restasy
> brings in slf4j-simple 1.5.8. Both are old.
>
> The current version of slf4j is 1.6.1.
>
> Current solution is
>
>        <dependency>
>            <groupId>org.tynamo</groupId>
>            <artifactId>tapestry-resteasy</artifactId>
>            <version>0.2.1-SNAPSHOT</version>
>            <exclusions>
>                <exclusion>
>                    <artifactId>slf4j-simple</artifactId>
>                    <groupId>org.slf4j</groupId>
>                </exclusion>
>            </exclusions>
>        </dependency>
>
> and explicitly declaring
>
> <dependency>
>    <groupId>org.slf4j</groupId>
>    <artifactId>slf4j-simple</artifactId>
>    <version>1.5.2</version>
> </dependency>
>
> -Borut
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org