You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "Saket Bihari (JIRA)" <ji...@apache.org> on 2018/12/04 08:59:00 UTC

[jira] [Created] (GRIFFIN-219) Griffin 0.3.1 Application Startup getting Failed due to mysql driver

Saket Bihari created GRIFFIN-219:
------------------------------------

             Summary: 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


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)