Webcenter Sites - REST API (Doc ID 1546222.1)

Last updated on JUNE 29, 2017

Applies to:

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

Symptoms

Running the sample Java REST code, the following exception is thrown:

com.fatwire.wem.sso.SSOException: Failed to load SSO configuration from file ExampleCASConfig.xml
at com.fatwire.wem.sso.DynamicInjector.(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.basic.ReadAsset.main(ReadAsset.java:41)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [ExampleCASConfig.xml]; nested exception is java.io.FileNotFoundException: class path resource [ExampleCASConfig.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.fatwire.wem.sso.DynamicInjector.(DynamicInjector.java:87)
... 4 more
Caused by: java.io.FileNotFoundException: class path resource [ExampleCASConfig.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 17 more
Exception in thread "main" java.lang.IllegalArgumentException: One or more of query value parameters are null
at com.sun.jersey.api.uri.UriBuilderImpl.queryParam(UriBuilderImpl.java:398)
at com.sun.jersey.api.client.WebResource.queryParam(WebResource.java:388)
at com.fatwire.rest.samples.basic.ReadAsset.main(ReadAsset.java:65)

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