2018 Oct 28 5:34 AM - edited 2024 Feb 04 7:08 AM
datahub-webapp-18.08.1-RC2 is not working.
I downloaded the 1808 datahub from support.sap.com. Then, I downloaded and installed Apache Tomcat 9, and I copied datahub-webapp-18.08.1-RC2.war file in webapps of Apache.
After server start, URL is not accessible: http://localhost:8080/datahub-webapp/v1/status
Also, I see exception below:
2018-10-28 05:31:17,124 [INFO] [o.s.j.s.SQLErrorCodesFactory] Found custom sql-error-codes.xml file at the root of the classpath
2018-10-28 05:31:17,171 [INFO] [o.s.j.s.SQLErrorCodesFactory] SQLErrorCodes loaded: [DB2, Derby, H2, HDB, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
2018-10-28 05:31:17,187 [DEBUG] [c.h.d.p.j.u.i.DefaultJpaSchemaGenerationStrategy] Version table does not exist.
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT "version" FROM "DataHubVersion"]; nested exception is java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: DataHubVersion in statement [SELECT "version" FROM "DataHubVersion"]
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:91)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:655)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:690)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:722)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:732)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:800)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:819)
at com.hybris.datahub.persistence.jpa.util.impl.DefaultJpaSchemaGenerationStrategy.verifyDatabaseVersion(DefaultJpaSchemaGenerationStrategy.java:68)
at com.hybris.datahub.persistence.jpa.util.impl.DefaultJpaSchemaGenerationStrategy.getDatabaseActionFromJavaxDatabaseActionProperty(DefaultJpaSchemaGenerationStrategy.java:90)
at com.hybris.datahub.persistence.jpa.util.impl.DefaultJpaS
Too much with Hybris Datahub 1808. I just maintained below properties in local.properties of datahub. It worked fine.
datahub.autoInitMode=create-drop
datahub.security.basic.admin.user=admin
datahub.security.basic.admin.password=nimda
datahub.security.https.enabled=false
But if you add below entries in local.properties, datahub doesn't work. So, here we need to understand one thing. When we add the security https enabled and when we add other user authorization entries as given below.
datahub.security.basic.developer.user=admin
datahub.security.basic.developer.password=nimda
datahub.security.basic.read_only.user=rouser
datahub.security.basic.read_only.password=ropass
datahub.security.https.enabled=true
This works for me. May be SAP Hybris folks has to relook what they have done. If it is same. Please vote for this answer.
Thank you Avinash, Elan and Murali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Regina,
There were multiple issues. 1) with HSQL. always the server logs are throwing errors. saying DataHubVersion table not exist. 2) when i added security enabled. I cannot even see the index.html page which i added in datahub-webapp folder. When i disabled i am able to see. 3)when i added below entries and use mysql with create-drop i am getting memory leak warnings in the logs.
datahub.security.basic.developer.user=admin datahub.security.basic.developer.password=nimda datahub.security.basic.read_only.user=rouser datahub.security.basic.read_only.password=ropass
User | Count |
---|---|
32 | |
2 | |
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.