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/25 08:08:00 UTC

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

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

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

[~djkooks]
It seems you have started Griffin successfully. To ensure the success, you can send request 'http://localhost:8080/api/v1/version' to check it. 
If you want to use front-end when Griffin service is started, you should use command  'mvn clean install -DskipTests' in Griffin project. Then restart it and it will work in localhost:8080. 
You can see compiled codes of front-end in 'service/src/main/resources/public' directory.

> 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)