Announcement Announcement Module
Collapse
No announcement yet.
RESTTemplate not passing credentials Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RESTTemplate not passing credentials

    Hi,

    I'm using RESTTemplate to perform a JSON POST to a remote web service. This code works perfectly when running within today on my development box against that remote web service.

    However when I move the war to a tomcat instance on another box, I get 401 responses back from the remote service as well as log message indicating that no credentials were found for the the realm.

    I've even tried copying my tomcat installation over but still et the 401 responses.

    Any ideas?

    /Mark

  • #2
    It turns out that one of my services was communicating to the remote service before I had credentials set. Adding @DependsOn to that service ensured that the correct order on service startup was restored.

    Comment

    Working...
    X