Skip to content

java.sql.SQLSyntaxErrorException: Invalid default value for 'creationDate' #91

@Vitaliy-1

Description

@Vitaliy-1

Greetings,
I am trying to deploy wombat, rhino and content-repo on tomcat using Quickstart Guide and get problems with the latter.
Receive the following error:
Error creating bean with name 'sqlService' defined in org.plos.repo.config.SpringConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.plos.repo.service.SqlService]: Factory method 'sqlService' threw exception; nested exception is java.sql.SQLSyntaxErrorException: Invalid default value for 'creationDate'
Using latest mysql connector (maybe problem is in it? if so what version is preferred? )

just in case my context.xml:

<Resource name="jdbc/AmbraDS"
            auth="Container"
            type="javax.sql.DataSource"
            factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
            validationQuery="SELECT 1"
            testOnBorrow="true"
            driverClassName="com.mysql.jdbc.Driver"
            username="root"
            password="*"
            url="jdbc:mysql://localhost:3306/ambra?useLegacyDatetimeCode=false&amp;serverTimezone=UTC&amp;useSSL=false"/>

  <!-- Local Crepo -->
  <Resource name="ambra/FileStore"
            type="org.ambraproject.filestore.FileStoreService"
            factory="org.ambraproject.filestore.impl.ContentRepoFactory"
            repoServer="http://localhost:8081"
            bucketName="corpus"/>

  <Resource name="repo/objectStore"
            type="org.plos.repo.service.ObjectStore"
            factory="org.plos.repo.config.FileSystemStoreFactory"
            dataDirectory="/etc/ambra/crepo_datastore"/> <!--crepo datastore directory. See the Quickstart-Guide - "Compiling Content Repo (crepo)" -->

  <Resource name="jdbc/repoDB"
            auth="Container"
            type="javax.sql.DataSource"
            factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
            validationQuery="SELECT 1"
            testOnBorrow="true"
            driverClassName="com.mysql.jdbc.Driver"
            username="root"
            password="*"
            url="jdbc:mysql://localhost:3306/repo?useLegacyDatetimeCode=false&amp;serverTimezone=UTC&amp;useSSL=false"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions