質問編集履歴

5

修正

2017/05/28 01:43

投稿

k-higa
k-higa

score20

test CHANGED
File without changes
test CHANGED
@@ -11,16 +11,6 @@
11
11
  application.yml
12
12
 
13
13
  ```ここに言語を入力
14
-
15
- spring.thymeleaf.cache: false
16
-
17
-
18
-
19
- server:
20
-
21
- contextPath: /
22
-
23
-
24
14
 
25
15
  spring:
26
16
 

4

yml

2017/05/28 01:43

投稿

k-higa
k-higa

score20

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- application.properties
11
+ application.yml
12
12
 
13
13
  ```ここに言語を入力
14
14
 

3

ファイル名

2017/05/28 01:37

投稿

k-higa
k-higa

score20

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
 
9
9
 
10
+
11
+ application.properties
10
12
 
11
13
  ```ここに言語を入力
12
14
 

2

ログ

2017/05/28 01:37

投稿

k-higa
k-higa

score20

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,49 @@
59
59
 
60
60
 
61
61
  エラーログ
62
+
63
+
64
+
65
+ org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException: Failed to look up JNDI DataSource with name 'jdbc/postgres'; nested exception is javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
66
+
67
+ 2017-05-28 01:15:03.131 INFO 14761 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service Tomcat
68
+
69
+ 2017-05-28 01:15:03.147 INFO 14761 --- [ restartedMain] utoConfigurationReportLoggingInitializer :
70
+
71
+
72
+
73
+ Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
74
+
75
+ 2017-05-28 01:15:03.157 ERROR 14761 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
76
+
77
+
78
+
79
+ org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': 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/JndiDataSourceAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException: Failed to look up JNDI DataSource with name 'jdbc/postgres'; nested exception is javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
80
+
81
+ at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
82
+
83
+ at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
84
+
85
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1148) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
86
+
87
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
88
+
89
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
90
+
91
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
92
+
93
+ at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
94
+
95
+ at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
96
+
97
+ at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
98
+
99
+ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
100
+
101
+ at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
102
+
103
+ at
104
+
105
+
106
+
107
+ Process finished with exit code 0

1

文言

2017/05/28 01:34

投稿

k-higa
k-higa

score20

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  spring Data jpaのエラーになり立ち上がりません。。
4
4
 
5
-
5
+ 何が問題でしょうか。。
6
6
 
7
7
 
8
8