[
https://issues.apache.org/jira/browse/GRIFFIN-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712812#comment-16712812
]
Kevin Yao commented on GRIFFIN-219:
-----------------------------------
[~SB2018] Sorry. For this, I have no better advice. Normally, the project will
automatically create or update tables without manual modification. I tried to
run on my computer with a similar configuration to find problems, but there was
no problem on mine. My advices are as follows.
1. pull latest code from https://github.com/apache/griffin.
2. delete quartz database to clear all data and tables and recreate it.
After that, restart Griffin to see how it works. If you have any exceptions,
please leave a message here and I will reply to you as soon as possible.
> Griffin 0.3.1 Application Startup getting Failed due to mysql driver
> --------------------------------------------------------------------
>
> Key: GRIFFIN-219
> URL: https://issues.apache.org/jira/browse/GRIFFIN-219
> Project: Griffin (Incubating)
> Issue Type: Bug
> Affects Versions: 0.3.0-incubating
> Environment: CentOS 7.5
> Reporter: Saket Bihari
> Assignee: Kevin Yao
> Priority: Major
>
> Please find the details below:
> Executing: java -jar service-0.3.0-incubating.jar
> Getting Error:
> ------------------------
> Exception encountered during context initialization - cancelling refresh
> attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error creating bean with name 'eclipseLinkJpaConfig' defined in URL
> [jar:file:/root/griffin-0.3.0-incubating/service/target/service-0.3.0-incubating.jar!/BOOT-INF/classes!/org/apache/griffin/core/config/EclipseLinkJpaConfig.class]:
> Unsatisfied dependency expressed through constructor parameter 0; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'dataSource' defined in class path resource
> [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]:
> Bean instantiation via factory method failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to instantiate
> [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw
> exception; nested exception is java.lang.IllegalStateException: Cannot load
> driver class: com.mysql.jdbc.Driver
> 2018-12-04 08:40:01.007 INFO 67767 --- [ main]
> utoConfigurationReportLoggingInitializer :
> Error starting ApplicationContext. To display the auto-configuration report
> re-run your application with 'debug' enabled.
> 2018-12-04 08:40:01.010 ERROR 67767 --- [ main] o.s.b.SpringApplication :
> Application startup failed
> application.properties file:
> ------------------------------
> # jpa
> spring.datasource.url =
> jdbc:mysql://xxxxxxx.cloudapp.azure.com:3306/quartz?autoReconnect=true&useSSL=false
> spring.datasource.username = username
> spring.datasource.password = password123
> spring.jpa.generate-ddl=true
> spring.datasource.driverClassName = com.mysql.jdbc.Driver
> spring.jpa.show-sql = true
> # hive metastore
> hive.metastore.uris = thrift://xxxxxx.cloudapp.azure.com:9083
> hive.metastore.dbname = default
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)