"IOException: Server returned HTTP response code: 401" when trying to start the Admin server or adding a plug-in.

"IOException: Server returned HTTP response code: 401" when trying to start the Admin server or adding a plug-in.

book

Article ID: KB0087325

calendar_today

Updated On:

Products Versions
TIBCO Administrator -
Not Applicable -

Description

Resolution:
The following error is reported when trying to start the Admin server or trying to add a plug-in.
<-----
2008 Dec 01 10:34:17:648 GMT +0 Error [Administrator] AESDKJ-0000 [Thread-25(Uddi_App_Domain)] com.tibco.ps.webapp.deployment.ServletEngineConfigException:
        at com.tibco.ps.webapp.deployment.impl.apache.TomcatServletEngine.isApplicationDeployed(TomcatServletEngine.java:405)
    …
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://qvirems1.france.xxxxx.xx:8080/manager/list
        at com.tibco.ps.webapp.deployment.impl.apache.TomcatListTask.execute(TomcatListTask.java:99)
        at com.tibco.ps.webapp.deployment.impl.apache.TomcatServletEngine.isApplicationDeployed(TomcatServletEngine.java:400)
        ... 15 more
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://qvirems1.france.xxxxxxx.xx:8080/manager/list
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1174)
        at com.tibco.ps.webapp.deployment.impl.apache.TomcatListTask.execute(TomcatListTask.java:70)
        ... 16 more
----->

Resolution

=======

Check that the Tomcat name and password in the <TIBCO HOME>/administrator/domain/<domain name>/bin/tibcoadmin_<domain name>.tra file. It should look like the following:


    #tomcat manager login

    tibcoadmin.tomcat.manager.username=admin
    tibcoadmin.tomcat.manager.password=jkjkifba423nfmjk342l

Matching the entry in the file <TIBCO HOME>/administrator/domain/<domain name>/tomcat/conf/tomcat-users.xml which should look like the following:


    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
        <role rolename="manager"/>
        <user username="admin" password="jkjkifba423nfmjk342l" roles="manager"/>
    </tomcat-users>

Issue/Introduction

"IOException: Server returned HTTP response code: 401" when trying to start the Admin server or adding a plug-in.