question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error initializing uaa app on pivotal cloud foundry: KeyManager must be set

See original GitHub issue

I am attempting to deploy the UAA app to an enterprise instance of Pivotal Cloud Foundry. I followed the instructions for building and deploying the UAA app to PCF, building from the master branch. When the app starts, the log shows an initialization error:

...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idpMetadataManager' defined in ServletContext resource [/WEB-INF/spring/saml-idp.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: KeyManager must be set

See the attached log for the entire exception chain. Am I missing something in my PCF instance required to run the UAA server?

cloud_foundry_uaa_error.log.txt

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
systemview2018commented, Dec 20, 2017

Just try to solve it:

Please modify the WEB-INF/spring/saml-idp.xml

<bean id="idpMetadataManager"
      class="org.cloudfoundry.identity.uaa.provider.saml.idp.NonSnarlIdpMetadataManager"
      depends-on="spMetaDataProviders" destroy-method="destroy">
    <constructor-arg name="configurator" ref="spMetaDataProviders" />
    <property name="refreshCheckInterval" value="${login.saml.metadataRefreshInterval:0}" />
    <property name="generator" ref="zoneAwareIdpMetadataGenerator"/>
    <property name="keyManager" ref="idpZoneAwareSamlKeyManager"/>
</bean>
0reactions
rayson1223commented, Mar 20, 2020

Just try to solve it:

Please modify the WEB-INF/spring/saml-idp.xml

<bean id="idpMetadataManager"
      class="org.cloudfoundry.identity.uaa.provider.saml.idp.NonSnarlIdpMetadataManager"
      depends-on="spMetaDataProviders" destroy-method="destroy">
    <constructor-arg name="configurator" ref="spMetaDataProviders" />
    <property name="refreshCheckInterval" value="${login.saml.metadataRefreshInterval:0}" />
    <property name="generator" ref="zoneAwareIdpMetadataGenerator"/>
    <property name="keyManager" ref="idpZoneAwareSamlKeyManager"/>
</bean>

@systemview2018 may I know how can I create idpZoneAwareSamlKeyManager? Because currently I’m stuck and unable to deploy to production on the latest develop branch version for a week already. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Buildpack - VMware Tanzu Docs
The Java buildpack prints a histogram of the heap to the logs when the JVM encounters a terminal failure. The Cloud Foundry default...
Read more >
Failed to make TCP connection to port 8080 while push to ...
Since the app isn't listening on the requested port, the health check cannot complete successfully and Cloud Foundry must assume your app never ......
Read more >
UAA Performance Metrics | Cloud Foundry Docs
This metric gives the client the ability to calculate error rates. It is often used to detect faulty apps that may be causing...
Read more >
Index (cloudfoundry-identity-server 4.9.0 API)
Base class for UAA events that want to publish audit records. ... String) - Method in exception org.cloudfoundry.identity.uaa.error.UaaException.
Read more >
Mitigate Hacking Attacks and Security Breaches Second Edition
Android Apps Security: Mitigate Hacking Attacks and Security Breaches ... publisher can accept any legal responsibility for any errors or.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found