-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: java.lang.IllegalAccessError: tried to access field org.slf4
PostPosted: Sat Dec 25, 2010 2:46 pm 
Newbie

Joined: Fri Aug 15, 2008 9:09 am
Posts: 12
Hi all

I am getting

[i] java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory[/i]

error

I have added following jars in lib folder

slf4j-log4j12-1.5.8.jar
antlr-2.7.6.jar
commons-collections-3.1.jar
dom4j-1.6.1.jar
hibernate3.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
slf4j-api-1.5.8.jar


Please suggest me which jar is suppose to add/remove.


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalAccessError: tried to access field org.slf4
PostPosted: Sat Dec 25, 2010 7:29 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
I would bet that you have some more jars from org.slf4j laying around somewhere on the classpath. Maybe you have some additional jars in a container? is this a standalone application or unit test, or deploying on some web or application container?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalAccessError: tried to access field org.slf4
PostPosted: Sun Dec 26, 2010 12:34 am 
Newbie

Joined: Fri Aug 15, 2008 9:09 am
Posts: 12
No, i have not added more jars other than this.

I am deploying it as a web application on apache-tomcat-5.5.25.


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalAccessError: tried to access field org.slf4
PostPosted: Sun Dec 26, 2010 9:26 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
This error really means you have a duplicate implementation of SLF4J, so please check other applications deployed on the same.
Use a tool like Tattletale to inspect all jars and automate duplicates find: http://jboss.org/tattletale

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.