You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "Kevin Yao (JIRA)" <ji...@apache.org> on 2018/07/13 07:16:00 UTC

[jira] [Commented] (GRIFFIN-179) Deploy questions

    [ https://issues.apache.org/jira/browse/GRIFFIN-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542636#comment-16542636 ] 

Kevin Yao commented on GRIFFIN-179:
-----------------------------------

Hi Dennis,
I guess you just edit application.properties without modifying pom.xml. Add the following dependency to your pom.xml. 
{code:java}
<dependency>
       <groupId>mysql</groupId>
       <artifactId>mysql-connector-java</artifactId>
 </dependency>
{code}
It may work.

Thanks,
Kevin Yao

> Deploy questions
> ----------------
>
>                 Key: GRIFFIN-179
>                 URL: https://issues.apache.org/jira/browse/GRIFFIN-179
>             Project: Griffin (Incubating)
>          Issue Type: Test
>    Affects Versions: 0.2.0-incubating
>            Reporter: Kwang-in (Dennis) JUNG
>            Priority: Minor
>
> Hello,
> I'm starter of this project, and have some question of setting up.
> This is my application.properties...
> ```
> spring.datasource.url = jdbc:mysql://localhost:3306/quartz?autoReconnect=true&useSSL=false
> spring.datasource.username = griffin
> spring.datasource.password = 123456
> spring.jpa.generate-ddl=true
> spring.datasource.driver-class-name = com.mysql.jdbc.Driver
> ...
> ```
> ...and it shows problem...
>  
> ```
> ...
> 2018-07-13 14:33:52.190 ERROR 6603 --- [ main] o.s.b.SpringApplication : Application startup failed
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eclipseLinkJpaConfig' defined in URL [jar:file:/Users/jung/workspace/etc/incubator-griffin/service/target/service-0.2.0-incubating-SNAPSHOT.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
>  at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
>  at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) ~[spring-beans-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
> ...
> ```
>  
> As you see, I'm trying to work on with mysql.
> Could you give me some help?
>  
> Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)