Unable to fetch the rootservice catalog from Rational Doors 9.5
I have Doors 9.5 Server, Client and DWA (Doors Web Access) configured on my machine.
I am able to access the Doors Web UI now.
As per the documentation the doors is enabled to use the OSLC services.
when i am trying to fetch the rootservice catalog using the url :
http://localhost:8080/dwa/rm/discovery/rootservicesthrough the rest client in mozilla it gives me an error in response.
"HTTP Status 401 - Inadequate OAuth consumer credentials."
As per the documentation the rootservice doc should be public resource and can be accessible without OAuth authentication.
Thanks & Regards,
Rahul
3 answers
Comments
Hi Maeve,
Thanks for your answer!
I have followed link to configure the Doors server in secure mode (SSL), but in both the cases (SSL and without SSL) it's giving me the same error while querying on the mentioned URI of rootservices as follows using REST Client.
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http://open-services.net/ns/core#">
<oslc:Error>
<oslc:message>The configuration is invalid</oslc:message>
<oslc:statusCode>500</oslc:statusCode>
</oslc:Error>
</rdf:RDF>
Any pointers regarding this issue ?
-Rahul
The rootservices is generated. It'll be read from what is set on the database using the dbadmin commands and what is in the festival.xml. If you paste the contents of your festival.xml I can check that. It has changed over the releases, make sure you are following instructions for the exact version of DWA you are using. 9.5.0 and 9.5.1 are not the same w.r.t. configuring the festival.xml.
Hi Maeve,
Please find the festival.xml file as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed Materials - Property of IBM - some unique copyrights (i.e., the ability to copy, modify, distribute) may be licensed in certain circumstances (e.g., sample/template code intended to be used by
customers to build upon and distribute as their own products).
%full_filespec:festival.xml~8.1.3:xml:VBS#1 %
(c) Copyright IBM Corporation 2007, 2009. All Rights Reserved.
U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.-->
<f:configuration instanceId="c4402682-3e61-43b1-a43f-93437ef230ca" xmlns="http://www.telelogic.com/festival/1.0" xmlns:f="http://www.telelogic.com/festival/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<f:lsc><!-- Brokers we know about --><f:endpoints>
<f:broker name="GENERALSERVICES" password="" url="tcp://<DWA HOST>:61616?wireFormat.tcpNoDelayEnabled=true&wireFormat.maxInactivityDuration=0" username=""/>
<f:broker name="DCSERVICES" password="" url="tcp://<DWA HOST>:61616?wireFormat.tcpNoDelayEnabled=true&wireFormat.maxInactivityDuration=0" username=""/>
<f:broker name="RMSERVICES" password="" url="tcp://<DWA HOST>:61616?wireFormat.tcpNoDelayEnabled=true&wireFormat.maxInactivityDuration=0" username=""/>
</f:endpoints>
<!-- Mapping from Repository IDs to the broker we use to reach the repository -->
<!-- The repositoryUrn must be replaced with your database unique identifier. -->
<!-- An example repository urn is: urn:rational:ers-46dd5d7806b96973: -->
<!-- Note the trailing colon ':' after the 16 digit id. -->
<!-- Please see the documentation describing how to obtain the correct value. -->
<f:mappings>
<f:repository-mapping enabled="true" endpoint="RMSERVICES" name="DOORS ERS Repository" repositoryUrn="urn:rational:ers-5062b3db673434a8:"/>
</f:mappings>
<!-- Configurable system properties -->
<f:properties>
<f:property name="licence.server.location" value="<DOORS Server HOST>"/>
<f:property name="published.url.prefix" value="https:// <DWA HOST>:8443/doors/redirector/"/>
<f:property name="ForceHttpsForAuthenticationForOAuth" value="true"/>
<f:property name="ForceOAuthForOslcResource" value="false" />
<f:property name="oauth.domain" value="https:// <DWA HOST> :8443/dwa"/>
</f:properties>
<!-- The TRS compact base set schedule and configuration options -->
<!-- If TRS is disabled than these configuration options are ignored. -->
<!-- The time is in 24 hour format. -->
<!-- The day_of_week values match the java.util.Calendar values. -->
<!-- Sunday=1, Monday=2, etc -->
<f:trs>
<f:compact-base-set>
<f:schedule><f:compact-event day_of_week="7" time="10:00"/></f:schedule></f:compact-base-set>
</f:trs>
</f:lsc>
</f:configuration> -Rahul
It's full of spaces and weird characters. that might be from cut-paste, but if not, they'll break something.
Comments
Robert Kerr
Apr 01 '15, 6:19 p.m.I'm having the same issue as Rahul: DOORS 9.5.2 working well. Web Access working correctly. Accessing http://localhost:8080/dwa/public/rootservices
gives me "The configuration is invalid".
Was a solution ever found for this?
Thanks