Solutions

After Upgrade, user is unable to login because resource ... sp-metadata.xml does not exist.



ID:    S143402
Published:    16 March 2021

Product(s)

  • SBM
 

Description

 
After upgrade, the issue is that the IDP tomcat webapp does not load.  This would affect the ability to login to SBM if using Single Sign On sessions.  It would also prevent Work Center from loading because WC would be unable to obtain a security token.
 
If review of the tomcat.log in [SBM]\common\tomcat\server\default\log may show this error:
 
'org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider#33ab6c41' of type [org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider#33ab6c41' defined in ServletContext resource [/WEB-INF/conf/saml2sp/securityContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider]: Constructor threw exception; nested exception is org.opensaml.saml2.metadata.provider.MetadataProviderException: Resource C:\Windows\system32\..\server\default\webapps\idp\WEB-INF\conf\saml2sp\sp-metadata.xml does not exist.
 
Note the path.  This is an issue with environment variables pointing to the Tomcat install directory. 

Resolution

To resolve, edit the file in [SBM]/common/tomcat/server/default/webapps/idp/WEB-INF/conf/saml2sp/securityContext.xml
 

Option 1: Use a full path in securityContext.xml to the sp-metadata.xml.

 

Option 2: Find call :set_java_opts user.dir in common_config.bat and specify a path similiar to below.  You can also for the environment variable CATALINA_HOME and use a full path.  If you change this file, be sure to run the UPDATE_CONFIG.BAT and restart the SBM Tomcat service.

 
  call :set_java_opts user.dir                                 "%CATALINA_HOME%\bin" 

 

 

Applies To

SBM

Rate this Solution

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs