IdP class not found exception

Richard Allen thatsafact.com at gmail.com
Fri Sep 16 04:39:18 BST 2011


Hello Shibboleth community,

My name is Rick and I am working on Meteor 4.0 for the National Student
Clearinghouse.  We are in the process of building support for Shibboleth
into Meteor 4.0.  So far I have built an IdP v2.3.3 and installed the SP
v2.3.4 on Mac OS X 10.6.8.  I deployed the WAR into a Tomcat 7.0 server and
got the stacktrace below on startup. After looking into the contents of the
lib dir in the WAR it appeared that the Xerces jars from the 'endorsed'
folder were not built into the jar so I stuffed them into the lib dir
manually and tried starting Tomcat again, but I got the same error.  Has
anyone seen this issue before or have an idea of what Xerces jars/versions I
should be using besides the ones provided with your IdP build / download?

Any help or insight you could provide would be greatly appreciated.  Also,
thanks for posting the users group entries from the past, that was very
helpful in getting this far, as was the extensive WIKI material...

Regards, Rick

INFO: Deploying web application archive idp.war

Sep 15, 2011 7:47:25 AM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Sep 15, 2011 7:47:26 AM org.apache.catalina.core.StandardContext
listenerStart

SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shibboleth.OpensamlConfig' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]: Cannot resolve reference to
bean 'shibboleth.ParserPool' while setting bean property 'parserPool';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'shibboleth.ParserPool' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]: Cannot create inner bean
'shibboleth.XercesSecurityManager' of type
[org.apache.xerces.util.SecurityManager] while setting bean property
'builderAttributes' with key [TypedStringValue: value [
http://apache.org/xml/properties/security-manager], target type [null]];
nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.apache.xerces.util.SecurityManager] for bean with name
'shibboleth.XercesSecurityManager' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]; nested exception is
java.lang.ClassNotFoundException: org.apache.xerces.util.SecurityManager

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:275)

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:104)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1245)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(
AbstractAutowireCapableBeanFactory.java:1010)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(
AbstractAutowireCapableBeanFactory.java:472)

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
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:255)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:199)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:45)

at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:4723)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226
)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221
)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:680)

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'shibboleth.ParserPool' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]: Cannot create inner bean
'shibboleth.XercesSecurityManager' of type
[org.apache.xerces.util.SecurityManager] while setting bean property
'builderAttributes' with key [TypedStringValue: value [
http://apache.org/xml/properties/security-manager], target type [null]];
nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.apache.xerces.util.SecurityManager] for bean with name
'shibboleth.XercesSecurityManager' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]; nested exception is
java.lang.ClassNotFoundException: org.apache.xerces.util.SecurityManager

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(
BeanDefinitionValueResolver.java:230)

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:117)

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(
BeanDefinitionValueResolver.java:320)

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:134)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1245)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(
AbstractAutowireCapableBeanFactory.java:1010)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(
AbstractAutowireCapableBeanFactory.java:472)

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.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:269)

... 26 more

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [org.apache.xerces.util.SecurityManager] for bean with
name 'shibboleth.XercesSecurityManager' defined in URL
[file:/opt/shibboleth-idp/conf/internal.xml]; nested exception is
java.lang.ClassNotFoundException: org.apache.xerces.util.SecurityManager

at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(
AbstractBeanFactory.java:1141)

at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(
AbstractBeanFactory.java:1105)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(
AbstractAutowireCapableBeanFactory.java:386)

at java.security.AccessController.doPrivileged(Native Method)

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:380)

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(
BeanDefinitionValueResolver.java:219)

... 41 more

Caused by: java.lang.ClassNotFoundException:
org.apache.xerces.util.SecurityManager

at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1678)

at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1523)

at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)

at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(
AbstractBeanDefinition.java:385)

at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(
AbstractBeanFactory.java:1138)

... 46 more

Sep 15, 2011 7:47:26 AM org.apache.catalina.core.StandardContext
startInternal

SEVERE: Error listenerStart

Sep 15, 2011 7:47:26 AM org.apache.catalina.core.StandardContext
startInternal

SEVERE: Context [/idp] startup failed due to previous errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20110915/d95c44be/attachment-0001.html 


More information about the users mailing list