cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datahub not getting installed properly on Hybris 6.5

Former Member
0 Kudos
204

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member387866
Active Contributor
0 Kudos

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