Shibboleth configuration issue

Dana Duerr Dana.Duerr at worldatwork.org
Thu Jul 30 23:51:55 EDT 2015


Hello,

I'm trying to set up shibboleth IdP version 3.1.2 to provide External authorization.  We are running java 1.8 and tomcat 8.  After building the IdP war and restarting tomcat I'm getting a java.lang.NoSuchMethodError for part of the Spring framework.  I'm wondering if I need to add any additional dependences to my maven pom file?  Any help would be greatly appreciated.

Thanks,
Dana

Here is the relevant part of the stack trace from catilina.out:

2015-07-30 20:08:43.922 [ERROR] : org.springframework.web.context.ContextLoader: Context initialization failed
java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.<init>(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
        at org.springframework.context.expression.StandardBeanExpressionResolver.<init>(StandardBeanExpressionResolver.java:98) ~[worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553) ~[worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455) ~[worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) ~[worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [worldatwork-saml-0.2-DLD-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729) [catalina.jar:8.0.24]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) [catalina.jar:8.0.24]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.24]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.24]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.24]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [catalina.jar:8.0.24]
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586) [catalina.jar:8.0.24]
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1750) [catalina.jar:8.0.24]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_51]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
30-Jul-2015 20:08:43.926 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
30-Jul-2015 20:08:43.935 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/idp] startup failed due to previous errors


The shibboleth dependencies in my POM are:
        <dependency>
            <groupId>net.shibboleth.idp</groupId>
            <artifactId>idp-authn-api</artifactId>
            <version>3.0.0</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>net.shibboleth.ext</groupId>
            <artifactId>spring-extensions</artifactId>
            <version>5.1.1</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>net.shibboleth.utilities</groupId>
            <artifactId>java-support</artifactId>
            <version>7.1.1</version>
            <scope>compile</scope>
        </dependency>

I ran a maven dependency tree and don't see any duplicate entries for any of the spring entries:
[INFO] ------------------------------------------------------------------------
[INFO] Building worldatwork-saml 0.2-DLD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ worldatwork-saml ---
[INFO] org.worldatwork.saml:worldatwork-saml:jar:0.2-DLD-SNAPSHOT
[INFO] +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] +- net.shibboleth.idp:idp-authn-api:jar:3.0.0:compile
[INFO] |  +- net.shibboleth.idp:idp-profile-api:jar:3.0.0:compile
[INFO] |  |  +- net.shibboleth.idp:idp-attribute-api:jar:3.0.0:compile
[INFO] |  |  |  \- org.opensaml:opensaml-saml-api:jar:3.0.0:compile
[INFO] |  |  |     \- org.opensaml:opensaml-soap-api:jar:3.0.0:compile
[INFO] |  |  |        \- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
[INFO] |  |  |           \- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
[INFO] |  |  +- org.opensaml:opensaml-xmlsec-api:jar:3.0.0:compile
[INFO] |  |  |  \- org.opensaml:opensaml-security-api:jar:3.0.0:compile
[INFO] |  |  |     +- org.apache.santuario:xmlsec:jar:2.0.2:compile
[INFO] |  |  |     |  \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
[INFO] |  |  |     |     +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  |  |     |     \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |  |  |     +- org.cryptacular:cryptacular:jar:1.0:compile
[INFO] |  |  |     \- org.bouncycastle:bcprov-jdk15on:jar:1.51:compile
[INFO] |  |  \- org.springframework.webflow:spring-webflow:jar:2.4.1.RELEASE:compile
[INFO] |  |     +- opensymphony:ognl:jar:2.6.11:compile
[INFO] |  |     +- org.springframework.webflow:spring-binding:jar:2.4.1.RELEASE:compile
[INFO] |  |     +- org.springframework.webflow:spring-js:jar:2.4.1.RELEASE:compile
[INFO] |  |     |  \- org.springframework.webflow:spring-js-resources:jar:2.4.1.RELEASE:compile
[INFO] |  |     +- org.springframework:spring-expression:jar:4.0.6.RELEASE:compile
[INFO] |  |     +- org.springframework:spring-web:jar:4.0.6.RELEASE:compile
[INFO] |  |     \- org.springframework:spring-webmvc:jar:4.0.6.RELEASE:compile
[INFO] |  +- org.opensaml:opensaml-storage-api:jar:3.0.0:compile
[INFO] |  +- org.opensaml:opensaml-profile-api:jar:3.0.0:compile
[INFO] |  |  \- org.opensaml:opensaml-core:jar:3.0.0:compile
[INFO] |  +- org.ldaptive:ldaptive:jar:1.0.5:compile
[INFO] |  +- javax.json:javax.json-api:jar:1.0:compile
[INFO] |  +- joda-time:joda-time:jar:2.6:compile
[INFO] |  +- org.glassfish:javax.json:jar:1.0.4:runtime
[INFO] |  +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] |  +- com.google.guava:guava:jar:18.0:compile
[INFO] |  +- org.codehaus.janino:janino:jar:2.7.7:compile
[INFO] |  |  \- org.codehaus.janino:commons-compiler:jar:2.7.7:compile
[INFO] |  +- net.shibboleth.utilities:java-support:jar:7.0.0:compile
[INFO] |  +- javax.mail:mail:jar:1.4.7:compile
[INFO] |  |  \- javax.activation:activation:jar:1.1:compile
[INFO] |  +- org.opensaml:opensaml-messaging-api:jar:3.0.0:compile
[INFO] |  +- org.springframework:spring-context-support:jar:4.1.3.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:4.1.3.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-context:jar:4.1.3.RELEASE:compile
[INFO] |  |  |  \- org.springframework:spring-aop:jar:4.1.3.RELEASE:compile
[INFO] |  |  |     \- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  |  \- org.springframework:spring-core:jar:4.1.3.RELEASE:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] +- org.worldatwork.core:worldatwork-core:jar:2.14.2:compile
[INFO] |  +- org.apache.commons:commons-collections4:jar:4.0:compile
[INFO] |  +- net.sf.jmimemagic:jmimemagic:jar:0.1.3:compile
[INFO] |  |  +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] |  |  +- oro:oro:jar:2.0.8:compile
[INFO] |  |  +- xml-apis:xmlParserAPIs:jar:2.0.2:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.5.2:compile
[INFO] |  |  |  +- org.codehaus.jackson:jackson-core-asl:jar:1.5.2:compile
[INFO] |  |  |  \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.2:compile
[INFO] |  |  \- org.codehaus.jackson:jackson-xc:jar:1.5.2:compile
[INFO] |  +- jcifs:jcifs:jar:1.3.17:compile
[INFO] |  +- net.sourceforge.jexcelapi:jxl:jar:2.6.12:compile
[INFO] |  +- com.jolbox:bonecp:jar:0.7.1.RELEASE:compile
[INFO] |  +- edu.stanford.ejalbert:BrowserLauncher2:jar:1.3:compile
[INFO] |  +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] |  |  \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] |  +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
[INFO] |  +- commons-io:commons-io:jar:2.4:compile
[INFO] |  +- oracle.jdbc.OracleDriver:ojdbc6:jar:11.2.0.1.0:compile
[INFO] |  +- oracle.core:ojdl:jar:11.1.1.1.0:compile
[INFO] |  +- oracle.dynamic.monitoring:dms:jar:11.2.0.1.0:compile
[INFO] |  +- oracle.i18n:orai18n:jar:11.2.0.1.0:compile
[INFO] |  +- org.apache.clerezza.ext:org.json.simple:jar:0.4:compile
[INFO] |  |  \- com.googlecode.json-simple:json-simple:jar:1.1:compile
[INFO] |  +- org.mnode.ical4j:ical4j:jar:1.0.5.2:compile
[INFO] |  |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |  |  \- backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[INFO] |  +- org.worldatwork.excel:worldatwork-excel:jar:1.0:compile
[INFO] |  |  +- org.apache.poi:poi-ooxml-schemas:jar:3.10.1:compile
[INFO] |  |  |  \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] |  |  |     \- stax:stax-api:jar:1.0.1:compile
[INFO] |  |  +- org.apache.poi:poi-ooxml:jar:3.10.1:compile
[INFO] |  |  \- org.apache.poi:poi:jar:3.10.1:compile
[INFO] |  +- org.mnode.ical4j:ical4j-zoneinfo-outlook:jar:1.0.3:compile
[INFO] |  +- com.itextpdf:itextpdf:jar:5.5.6:compile
[INFO] |  +- com.oroinc:PerlTools_jdk1_2:jar:1.1:compile
[INFO] |  +- mysql:mysql-connector-java:jar:5.1.33:compile
[INFO] |  +- com.sun.media:jai_codec:jar:1.1.2_01:compile
[INFO] |  +- javax.media:jai_core:jar:1.1.3:compile
[INFO] |  +- com.microsoft.sqlserver.jdbc:sqljdbc4:jar:1.0:compile
[INFO] |  +- com.endeca.edf.adapter:endeca_cadk_adapter:jar:1.0:compile
[INFO] |  +- com.endeca.logging:endeca_logging:jar:1.0:compile
[INFO] |  +- com.endeca.navigation:endeca_navigation:jar:1.0:compile
[INFO] |  +- com.endeca.util:endeca_util:jar:1.0:compile
[INFO] |  +- org.hibernate:hibernate-core:jar:4.3.8.Final:compile
[INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] |  |  +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] |  |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] |  |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  |  +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] |  |  +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] |  |  +- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] |  |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  |  \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] |  +- org.hibernate:hibernate-c3p0:jar:4.3.8.Final:compile
[INFO] |  |  \- com.mchange:c3p0:jar:0.9.2.1:compile
[INFO] |  |     \- com.mchange:mchange-commons-java:jar:0.2.3.4:compile
[INFO] |  +- log4j:log4j:jar:1.2.14:compile
[INFO] |  +- net.sourceforge.jtds:jtds:jar:1.3.1:compile
[INFO] |  +- junit:junit:jar:4.11:runtime
[INFO] |  |  \- org.hamcrest:hamcrest-core:jar:1.3:runtime
[INFO] |  \- ch.qos.logback:logback-classic:jar:1.1.2:compile
[INFO] |     \- ch.qos.logback:logback-core:jar:1.1.2:compile
[INFO] +- org.jdom:jdom:jar:1.1.3:compile
[INFO] +- commons-codec:commons-codec:jar:1.9:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:compile
[INFO] +- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] \- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:compile
[INFO]    \- javax.xml.soap:saaj-api:jar:1.3:compile
[INFO] ------------------------------------------------------------------------




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150731/43139420/attachment-0001.html>


More information about the users mailing list