Tomcat itself seems to be working, but when I am trying to deploy cBioPortal, it shows errors.
The errors indicates context.xml file.
The original documents recommended to use following context.
<Resource name="jdbc/cbioportal" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="cbio_user" password="UserKCR@018" driverClassName="com.mysql.jdbc.Driver"
connectionProperties="zeroDateTimeBehavior=convertToNull;"
testOnBorrow="true"
validationQuery="SELECT 1"
url="jdbc:mysql://localhost:3306/cbioportal"/>
It showed error as following:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.)
Therefore, I changed connectionProperties="zeroDateTimeBehavior=convertToNull;" to connectionProperties="zeroDateTimeBehavior=CONVERT_TO_NULL;"
And then, it shows different error.
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.)
So, updated the XML file
connectionProperties="zeroDateTimeBehavior=CONVERT_TO_NULL;useUnicode=true;useJDBCCompliantTimezoneShift=true;useLegacyDatetimeCode=false;serverTimezone=UTC;"
Finally, I have got following errors.
2018-10-09 17:40:38 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlModelPlugin': Failed to introspect bean class [springfox.documentation.schema.XmlModelPlugin] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlType
I feel totally lost at this moment.
Could anyone can help me?
Thank you.