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

Last updated on JULY 02, 2017

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

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms