My Oracle Support Banner

REST Service Call to WebCenter Sites Throws NoClassDefFoundError Exception (Doc ID 1915431.1)

Last updated on MARCH 31, 2024

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

Trying to call REST api to WebCenter Sites from a client, and getting following Error.

com.fatwire.wem.sso.SSOException: Failed to load SSO configuration from file ExampleCASConfig.xml
    at com.fatwire.wem.sso.DynamicInjector.<init>(DynamicInjector.java:94)
    at com.fatwire.wem.sso.DynamicInjector.instance(DynamicInjector.java:250)
    at com.fatwire.wem.sso.SSOSession.getSSOProvider(SSOSession.java:265)
    at com.fatwire.wem.sso.SSOSession.getMultiTicket(SSOSession.java:155)
    at com.fatwire.rest.samples.flex.ReadWcsAsset.main(ReadWcsAsset.java:104)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ssoprovider' defined in class path resource [ExampleCASConfig.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
    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:221)
    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.preIns

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.