-
Notifications
You must be signed in to change notification settings - Fork 1
java.sql.SQLSyntaxErrorException: Invalid default value for 'creationDate' #91
Copy link
Copy link
Open
Description
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&serverTimezone=UTC&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&serverTimezone=UTC&useSSL=false"/>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels