on 09-03-2016 4:43 PM - last edited on 02-04-2024 3:38 AM by postmig_api_4
I have placed the 3 jars- Raw,Canonical,Target into the following path -"C:\apache-tomcat-7.0.70-windows-x64\apache-tomcat-7.0.70\opt\datahub\extensions" I have my local.properties in the following path - "C:\apache-tomcat-7.0.70-windows-x64\apache-tomcat-7.0.70\opt\datahub\config" The content of local.properties is as follows :- datahub.security.basic.admin.user=admin datahub.security.basic.admin.password=nimda datahub.security.basic.read_only.user=rouser datahub.security.basic.read_only.password=ropass But, I am not able to login using the admin/nimda on GET Requet(http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/) and getting the following response :- 2016-09-03 19:04:46,880 [INFO] [c.h.d.s.s.AuthenticationFailureApplicationListen er] Received GET request /data-feeds/DEFAULT_FEED/ with user [admin] - Failed au thentication caused by org.springframework.security.authentication.BadCredential sException: Bad credentials Thus, I am not able to load data into DataHub. Please help
With tomcat 8, no more virutal class loader. please use below code.
<Context antiJARLocking="true"
docBase="/Users/t821868/Desktop/hybris-commerce-suite-6.2/hybris/bin/ext-integration/datahub/web-app/datahub-webapp-6.2.0.0-RC4.war"
reloadable="true">
<!--<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath=
"/Users/t821868/Desktop/hybris-commerce-suite-6.2/datahub/config/;/Users/t821868/Desktop/hybris-commerce-suite-6.2/datahub/extensions/*.jar" />-->
<Resources className="org.apache.catalina.webresources.StandardRoot">
<PostResources className="org.apache.catalina.webresources.DirResourceSet"
base="/Users/t821868/Desktop/hybris-commerce-suite-6.2/datahub/config/"
webAppMount="/WEB-INF/classes">
</PostResources>
<JarResources className="org.apache.catalina.webresources.DirResourceSet"
base="/Users/t821868/Desktop/hybris-commerce-suite-6.2/datahub/extensions/"
webAppMount="/WEB-INF/lib">
</JarResources>
</Resources>
</Context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue behind it is the location of the "/opt/datahub" folder. The system is unable to find the local.properties, which is available in the "/opt/datahub/config" folder. There are two approaches to resolve this issue:
1st Approach: You need to create the folder in the same folder where hybris commerce suite resides. Please refer the following link:
https://answers.sap.com/questions/12761829/root-directory-hybris.html
2nd approach: You need to provide absolute path for the "/opt/datahub/config/" entry and "/opt/datahub/extensions/" entry in the datahub-webapp.xml file. Let's say "E:/apache-tomcat-7.0.75/opt/datahub/config/".
After applying any approach:
Restart the server.
You don't need to copy the "local.properties" file in the "\apache-tomcat-7.0.75\webapps\datahub-webapp\WEB-INF\classes" folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Have you added your own context xml under the folder "C:\apache-tomcat-7.0.70-windows-x64\apache-tomcat-7.0.70/conf/Catalina/localhost/"? In that context xml, you can define the configurations for the datahub app. Here is an example.
Yifei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can place your local.properties file of datahub at path - tomcat\webapps\datahub-webapp\WEB-INF\classes, so that it will consider the properties defined in it at time of tomcat starting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It looks like your Data Hub doesn't use mentioned configuration file. Did you follow step 4 described here?: https://help.hybris.com/6.1.0/hcd/478f702a00104636b16d2614d1db30ac.html
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maciej,
Thanks. I have done the step 4 and but still encountering Bad Credentials. I have broswed through many experts link wrt this problem but could not find a satisfactory answer wrt Bad Credentials problem. Attached please find the changes done by me wrt setup of datahub. Can you please go through it and suggest where I may be going wrong.
Regards,
Hello Ravi,
I have done the same setup which have given in attached file But still getting error.as given below: 2017-03-08 22:38:04,137 [ERROR] [c.h.d.r.r.m.BaseExceptionMapper] An exception intercepted com.hybris.datahub.validation.ValidationException: [ValidationFailure{FATAL, itemType: "RawProduct type is not a valid RawItem type"}]
Any suggestion on this if you are able to run data hub service
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.