Getting Context Root Not Found when using REST API
Hello,
- Status Code: 404 Not Found
- Connection: Close
- Content-Length: 29092
- Content-Type: text/html; charset=UTF-8
- Date: Wed, 07 Feb 2018 19:45:12 GMT
One answer
The obvious thing I see is that your latter URL contains no port# implying the default port of 80, while the 2nd contains port 9080. That indicates that there may be an HTTP server routing requests to a J2EE ( e.g. tomcat/liberty )
Use curl or wget on the application-about with/without the port. This requires no special headers or authentication. Go with the one that works.
wget http://your-host.somewhere.com:9080/qm/application-about
wget http://your-host.somewhere.com/qm/application-about
Your result will look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:jfs="http://jazz.net/xmlns/prod/jazz/jfs/1.0/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/">
<oslc:Publisher rdf:about="https://rtp-rtc9:9443/jazz/application-about">
<dcterms:title>Change and Configuration Management</dcterms:title>
<jfs:nonLocalizedTitle>Change and Configuration Management</jfs:nonLocalizedTitle>
<dcterms:description>Provides capabilities for change management, planning, software configuration management, automation (build system), and extensions for IBM enterprise platforms development.</dcterms:description>
<dcterms:identifier>http://jazz.net/application/ccm</dcterms:identifier>
<jfs:version>6.0.2</jfs:version>
<oslc:icon rdf:resource="https://rtp-rtc9:9443/jazz/web/com.ibm.team.rtc.web/ui/graphics/UICustomizations/RTC_16.png"/>
<jfs:instanceName>CLM TDS Build</jfs:instanceName>
</oslc:Publisher >
</rdf:RDF>