Accessing REST Doc URI from TEA results in 404 error

Accessing REST Doc URI from TEA results in 404 error

book

Article ID: KB0080365

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 6.3.x

Description

Accessing REST DOC URI for an application would result in 404 error & the bwappnode will register the following exception
 
================
 
2017-04-12 15:01:46.401 INFO  [qtp1909332462-64] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300021: All Application dependencies are resolved for Application [ESMMessaging_Services:1.0]
2017-04-12 15:01:49.284 ERROR [qtp1909332462-64] c.t.b.r.s.s.i.SwaggerHostingConfigurationConsumer - Error in starting Swagger documentation server
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_121

================

Issue/Introduction

Accessing REST Doc URI from TEA results in 404 error

Environment

O/S:All Database:All

Resolution

Confirm if there are multiple REST applications running on separate AppNodes on the same single machine. The default  REST Doc port is 7777. Check if the port is already in use using netstat command.If multiple REST applications are hosted on same machine(same or different appnodes), change the bw.rest.docApi.port in the config.ini file on the app node to a different unique & unused port for each application

Additional Information

bw.rest.docApi.port Error in starting Swagger documentation server