Authentication error using cURL to verify Red Hat Decision Server 7.2 installation
Issue
- When using the recommended cURL command to verify the Decision Server installation on Tomcat 8.5, received
Access Denied/Your credentials could not be authenticated: "Credentials are missing."
error. The credential are correctly setup. kie-server
fails to startup on JWS-
Exceptions found in tomcat logs when deploying Decision Server
kie-server
org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start.`
java.lang.ClassNotFoundException: org.jboss.narayana.tomcat.jta.NarayanaJtaServletContextListener
When using below curl command to verify the installation of Decision Server:
$ curl -X GET "http://localhost:8088/kie-server/services/rest/server" -H "accept: application/xml" -u 'username:password'
The response is similar to these below (abbreviated):
<TITLE>Access Denied</TITLE>
...
<big>Access Denied (authentication_failed)</big>
...
Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
<title>Apache Tomcat/8.0.36 - Error report</title>
...
<h1>HTTP Status 401 - </h1>
...
This request requires HTTP authentication.
<title>HTTP Status 401 – Unauthorized</title>
...
<h1>HTTP Status 401 – Unauthorized</h1>
...
The request has not been applied because it lacks valid authentication credentials for the target resource./
Environment
- Red Hat Decision Manager (RHDM)
- 7.2
- 7.1
- Red Hat JBoss Web Server (JWS)
- 5.0
- 3.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.