on 2018 Feb 06 5:43 AM - last edited on 2024 Feb 04 4:16 AM by postmig_api_4
I had the hybris 6.5 installed and its working fine and now trying to install the Data hub, I followed step by step procedure as described in "installing DataHub" on wiki hybris. installed the apache tomcat, created all folder and configuration files, unzip the data hub files to hybris/bin/ext-integration/datahub subdirectory etc, as expected the data hub war file is expanded in tomcat web apps directory with datahub-webapp folder being created. Within this folder two folder META-INF and WEB-INF are formed with desired files but no other files are created in datahub-webapp folder.
After completing all the procedure to test i run curl -G http://localhost:8080/datahub-webapp/v1/version as described but it fails and i think the reason is there is no "v1/version" folder and files at http://localhost:8080/datahub-webapp location. i tried unzipping war file directly also and it also does not have these files and folder, please suggest my datahub in not getting installed properly
Request clarification before answering.
Hi Yogesh,
Servlet Mapping
By default, the datahub-webapp/WEB-INF/web.xml file has a servlet-mapping for /v1/*, so please ensure that this node is present in the file.
<servlet-mapping>
<servlet-name>Data Hub Web Services</servlet-name>
<url-pattern>/v1/*</url-pattern>
</servlet-mapping>
Without the v1
What does curl -k -G http://localhost:8080/datahub-webapp/version return?
The documentation pages (Install SAP Hybris Data Hub (6.6)) has only one mention of "v1", so please check the URL without the "v1" in the path. Also ensure that you use the -k switch, to allow insecure connections.
But in the Using the REST API to Gather Transactional Information (6.6) documentation page, all the REST endpoints have v1, so likely you have a servlet mapping problem.
Regards,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.