[OpenSAML] Problem Setting up OpenSAML in Eclipse

67 views
Skip to first unread message

Suneet Shah

unread,
Nov 1, 2009, 11:34:17 PM11/1/09
to mace-open...@internet2.edu
Hello:

I am trying to setup a project in eclipse using OpenSAML 2.3. However I
getting the following exception with the SLF4J libraries. I am using
version 1.5.8 and have included the following dependencies in my maven
project. Any thoughts on what I am doing wrong?

Thanks

junit.framework.AssertionFailedError: Exception in constructor:
testGoodPasswordAuth (java.lang.IllegalAccessError: tried to access
field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
org.slf4j.LoggerFactory
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)

<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.8</version>
</dependency>

Chad La Joie

unread,
Nov 1, 2009, 11:57:46 PM11/1/09
to mace-open...@internet2.edu
And when you search for that error in the mailing list archives or on
google what do you find?

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad....@switch.ch, http://www.switch.ch

Suneet Shah

unread,
Nov 2, 2009, 12:00:44 AM11/2/09
to mace-open...@internet2.edu
Most of those messages suggest that I should use version 1.5.6 of this
library. I did that, but I still get this error.
Also, I notice that in the OpenSAML download, you are using 1.5.8. This
error only occurs within Eclipse and not in Tomcat 6.20 when I deploy my
app.

Chad La Joie

unread,
Nov 2, 2009, 12:02:38 AM11/2/09
to mace-open...@internet2.edu
Is eclipse using a different version? If it's loaded first then that is
the one that will be used.

--

Suneet Shah

unread,
Nov 2, 2009, 12:05:11 AM11/2/09
to mace-open...@internet2.edu
Thanks Chad.
I see that a linked project is pulling in version 1.5.2 which is
probably the cause of this.
Reply all
Reply to author
Forward
0 new messages