[Shib-Users] odd question on 2.2.0 Idp

2 views
Skip to first unread message

Kevin P. Foote

unread,
Oct 5, 2010, 3:00:16 PM10/5/10
to shibboleth-users

Hi all .. kind of a lame issue here which could be fully my fault.

I've deployed the 2.2.0 IDP in my test env and adjusted configs etc
according to the wiki. (I've actually been running the 2.2.x from src
since early summer so the changes are not entirely new)

Everything is working as expected from any given SP. All logins happen, SSO
is achieved etc.

Now I'm configuring an additional SP and have gone back to aacli to test
some release filters ..

I can't seem to get this to work. Running bin/aacli.sh gives a big
stack dump.. Is anyone else experiencing this ?

--------------------
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'shibboleth.HandlerManager': Initialization of bean
failed; nested exception is java.lang.NoClassDefFoundError:
javax/servlet/ServletRequest
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI.loadConfigurations(AttributeAuthorityCLI.java:180)
at
edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI.main(AttributeAuthorityCLI.java:90)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at java.beans.Introspector$1.run(Introspector.java:1287)
at java.security.AccessController.doPrivileged(Native Method)
at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1285)
at
java.beans.Introspector.getTargetMethodInfo(Introspector.java:1151)
at java.beans.Introspector.getBeanInfo(Introspector.java:402)
at java.beans.Introspector.getBeanInfo(Introspector.java:168)
at
org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)
at
org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
at
org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
at
org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)
at
org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
... 13 more
Caused by: java.lang.ClassNotFoundException:
javax.servlet.ServletRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 30 more

------
thanks
kevin.foote

Chad La Joie

unread,
Oct 5, 2010, 3:05:42 PM10/5/10
to shibbole...@internet2.edu
That would be because the Servlet APIs aren't on the classpath. Now
that you say that I seem to recall making a change that prevented that
jar from being added to the WAR. I'm guessing it must have removed it
from the lib directory as well. File a bug and between now and the
next release you can just drop the Servlet jar[1] in to the lib
directory.

[1] http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar

--
Chad La Joie
www.itumi.biz
trusted identities, delivered

Kevin P. Foote

unread,
Oct 5, 2010, 3:22:14 PM10/5/10
to shibbole...@internet2.edu

Perfect. Works as expected now. Thanks Chad.

------
thanks
kevin.foote

On Tue, 5 Oct 2010, Chad La Joie wrote:

-> That would be because the Servlet APIs aren't on the classpath. Now
-> that you say that I seem to recall making a change that prevented that
-> jar from being added to the WAR. I'm guessing it must have removed it
-> from the lib directory as well. File a bug and between now and the
-> next release you can just drop the Servlet jar[1] in to the lib
-> directory.
->
-> [1] http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
->
-> On Tue, Oct 5, 2010 at 20:00, Kevin P. Foote <kpf...@iup.edu> wrote:
-> >
-> > Hi all .. kind of a lame issue here which could be fully my fault.
-> >
-> > I've deployed the 2.2.0 IDP in my test env and adjusted configs etc
-> > according to the wiki. (I've actually been running the 2.2.x from src
-> > since early summer so the changes are not entirely new)
-> >
-> > Everything is working as expected from any given SP. All logins happen, SSO
-> > is achieved etc.
-> >
-> > Now I'm configuring an additional SP and have gone back to aacli to test
-> > some release filters ..
-> >
-> > I can't seem to get this to work. Running bin/aacli.sh gives a big
-> > stack dump.. Is anyone else experiencing this ?
-> >
-> >
-> >
-> > --------------------
-> > Exception in thread "main"
-> > org.springframework.beans.factory.BeanCreationException: Error creating
-> > bean with name 'shibboleth.HandlerManager': Initialization of bean
-> > failed; nested exception is java.lang.NoClassDefFoundError:
-> > javax/servlet/ServletRequest
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
-> > � � � �at java.security.AccessController.doPrivileged(Native Method)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
-> > � � � �at
-> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
-> > � � � �at
-> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
-> > � � � �at
-> > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
-> > � � � �at
-> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
-> > � � � �at
-> > edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI.loadConfigurations(AttributeAuthorityCLI.java:180)
-> > � � � �at
-> > edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI.main(AttributeAuthorityCLI.java:90)
-> > Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
-> > � � � �at java.lang.Class.getDeclaredMethods0(Native Method)
-> > � � � �at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
-> > � � � �at java.lang.Class.getDeclaredMethods(Class.java:1791)
-> > � � � �at java.beans.Introspector$1.run(Introspector.java:1287)
-> > � � � �at java.security.AccessController.doPrivileged(Native Method)
-> > � � � �at
-> > java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1285)
-> > � � � �at
-> > java.beans.Introspector.getTargetMethodInfo(Introspector.java:1151)
-> > � � � �at java.beans.Introspector.getBeanInfo(Introspector.java:402)
-> > � � � �at java.beans.Introspector.getBeanInfo(Introspector.java:168)
-> > � � � �at
-> > org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)
-> > � � � �at
-> > org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
-> > � � � �at
-> > org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
-> > � � � �at
-> > org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)
-> > � � � �at
-> > org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
-> > � � � �at
-> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
-> > � � � �... 13 more
-> > Caused by: java.lang.ClassNotFoundException:
-> > javax.servlet.ServletRequest
-> > � � � �at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
-> > � � � �at java.security.AccessController.doPrivileged(Native Method)
-> > � � � �at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
-> > � � � �at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
-> > � � � �at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
-> > � � � �at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
-> > � � � �at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
-> > � � � �... 30 more
-> >
-> > ------
-> > thanks
-> > �kevin.foote
-> >
->
->
->
-> --
-> Chad La Joie
-> www.itumi.biz
-> trusted identities, delivered
->

Benji Wakely

unread,
Nov 28, 2010, 11:45:38 PM11/28/10
to shibbole...@internet2.edu
>-----Original Message-----
>From: shibboleth-u...@internet2.edu [mailto:shibboleth-users-
>req...@internet2.edu] On Behalf Of Chad La Joie
>Sent: Wednesday, 6 October 2010 6:06 AM
>To: shibbole...@internet2.edu
>Subject: Re: [Shib-Users] odd question on 2.2.0 Idp
>
>That would be because the Servlet APIs aren't on the classpath. Now
>that you say that I seem to recall making a change that prevented that
>jar from being added to the WAR. I'm guessing it must have removed it
>from the lib directory as well. File a bug and between now and the
>next release you can just drop the Servlet jar[1] in to the lib
>directory.
>
>[1] http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-
>api-2.4.jar

I've come across the same issue.
Easily worked around as per Chad's suggestion
(plonk servlet-api-2.4.jar into the idp's lib directory)
but I've filed a bug anyway:

https://bugs.internet2.edu/jira/browse/SIDP-440

Cheers,
--
Benji Wakely - b.wa...@latrobe.edu.au
Unix Systems Administrator

Work: +613 9479 5499
Mob: +614 34 307 667

La Trobe University,
Melbourne, VIC, Australia


Reply all
Reply to author
Forward
0 new messages