質問編集履歴
1
pomを全文記載に変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,62 +9,11 @@
|
|
9
9
|
コマンドプロンプトの画面を表記します
|
10
10
|
```
|
11
11
|
|
12
|
-
/\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
|
13
|
-
( ( )\___ | '_ | '_| | '_ / _` | \ \ \ \
|
14
|
-
\/ ___)| |_)| | | | | || (_| | ) ) ) )
|
15
|
-
' |____| .__|_| |_|_| |_\__, | / / / /
|
16
|
-
=========|_|==============|___/=/_/_/_/
|
17
|
-
:: Spring Boot :: (v0.0.1-SNAPSHOT)
|
18
|
-
|
19
|
-
2019-03-28 08:23:49.191 INFO 12500 --- [ restartedMain] springbootapp.App : Starting App v0.0.1-SNAPSHOT on **** with PID **** (C:\machine_management_system-0.0.1-SNAPSHOT.jar started by ***** in c:)
|
20
|
-
2019-03-28 08:23:49.196 INFO 12500 --- [ restartedMain] springbootapp.App : The following profiles are active: dev
|
21
|
-
2019-03-28 08:23:49.547 INFO 12500 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@70c96b: startup date [Thu Mar 28 08:23:49 JST 2019]; root of context hierarchy
|
22
12
|
2019-03-28 08:23:49.991 WARN 12500 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [springbootapp.App]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServletInitializer
|
23
13
|
2019-03-28 08:23:50.008 ERROR 12500 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
|
24
14
|
|
25
|
-
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [springbootapp.App]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServletInitializer
|
26
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:187) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
27
|
-
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:324) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
28
|
-
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:246) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
29
|
-
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
30
|
-
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
31
|
-
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
32
|
-
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
33
|
-
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
34
|
-
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
35
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
36
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
37
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
38
|
-
at springbootapp.App.main(App.java:11) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
39
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]
|
40
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_191]
|
41
|
-
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_191]
|
42
|
-
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_191]
|
43
|
-
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
44
|
-
Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServletInitializer
|
45
|
-
at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:163) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
46
|
-
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:301) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
47
|
-
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:237) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
48
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:204) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
49
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:173) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
50
|
-
... 17 common frames omitted
|
51
|
-
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
|
52
|
-
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_191]
|
53
|
-
at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:1.8.0_191]
|
54
|
-
at java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:1.8.0_191]
|
55
|
-
at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:152) ~[machine_management_system-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
|
56
|
-
... 21 common frames omitted
|
57
|
-
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
|
58
|
-
at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_191]
|
59
|
-
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_191]
|
60
|
-
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_191]
|
61
|
-
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_191]
|
62
|
-
... 25 common frames omitted
|
63
15
|
|
64
16
|
```pom
|
65
|
-
|
66
|
-
(抜粋)
|
67
|
-
|
68
17
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
69
18
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
70
19
|
<modelVersion>4.0.0</modelVersion>
|
@@ -109,8 +58,181 @@
|
|
109
58
|
</configuration>
|
110
59
|
</plugin>
|
111
60
|
|
112
|
-
|
61
|
+
<plugin>
|
62
|
+
<groupId>org.apache.maven.plugins</groupId>
|
63
|
+
<artifactId>maven-shade-plugin</artifactId>
|
64
|
+
</plugin>
|
113
65
|
|
66
|
+
</plugins>
|
67
|
+
</build>
|
68
|
+
|
69
|
+
|
70
|
+
<parent>
|
71
|
+
<groupId>org.springframework.boot</groupId>
|
72
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
73
|
+
<version>1.4.1.RELEASE</version>
|
74
|
+
</parent>
|
75
|
+
|
76
|
+
<properties>
|
77
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
78
|
+
<java.version>1.8</java.version>
|
79
|
+
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
|
80
|
+
<thymeleaf-layout-dialect.version>2.0.5</thymeleaf-layout-dialect.version>
|
81
|
+
<thymeleaf-extras-springsecurity4.version>3.0.2.RELEASE</thymeleaf-extras-springsecurity4.version>
|
82
|
+
<thymeleaf-extras-data-attribute.version>2.0.5</thymeleaf-extras-data-attribute.version>
|
83
|
+
<thymeleaf-extras-java8time.version>3.0.0.RELEASE</thymeleaf-extras-java8time.version>
|
84
|
+
<org.springframework.security.version>4.1.2.RELEASE</org.springframework.security.version>
|
85
|
+
</properties>
|
86
|
+
|
87
|
+
|
88
|
+
<dependencies>
|
89
|
+
|
90
|
+
<dependency>
|
91
|
+
<groupId>org.springframework.boot</groupId>
|
92
|
+
<artifactId>spring-boot-starter-tomcat</artifactId>
|
93
|
+
<scope>provided</scope>
|
94
|
+
</dependency>
|
95
|
+
|
96
|
+
|
97
|
+
<dependency>
|
98
|
+
<groupId>org.springframework.boot</groupId>
|
99
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
100
|
+
</dependency>
|
101
|
+
|
102
|
+
|
103
|
+
<dependency>
|
104
|
+
<groupId>org.springframework.boot</groupId>
|
105
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
106
|
+
</dependency>
|
107
|
+
|
108
|
+
|
109
|
+
<dependency>
|
110
|
+
<groupId>org.springframework.boot</groupId>
|
111
|
+
<artifactId>spring-boot-starter-tomcat</artifactId>
|
112
|
+
<scope>provided</scope>
|
113
|
+
</dependency>
|
114
|
+
|
115
|
+
|
116
|
+
<dependency>
|
117
|
+
<groupId>org.projectlombok</groupId>
|
118
|
+
<artifactId>lombok</artifactId>
|
119
|
+
</dependency>
|
120
|
+
|
121
|
+
|
122
|
+
<dependency>
|
123
|
+
<groupId>org.springframework.boot</groupId>
|
124
|
+
<artifactId>spring-boot-configuration-processor</artifactId>
|
125
|
+
<optional>true</optional>
|
126
|
+
</dependency>
|
127
|
+
|
128
|
+
|
129
|
+
<dependency>
|
130
|
+
<groupId>org.springframework.boot</groupId>
|
131
|
+
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
132
|
+
</dependency>
|
133
|
+
|
134
|
+
|
135
|
+
<!-- SQLiteの設定 ここから-->
|
136
|
+
<dependency>
|
137
|
+
<groupId>org.xerial</groupId>
|
138
|
+
<artifactId>sqlite-jdbc</artifactId>
|
139
|
+
</dependency>
|
140
|
+
|
141
|
+
<dependency>
|
142
|
+
<groupId>com.enigmabridge</groupId>
|
143
|
+
<artifactId>hibernate4-sqlite-dialect</artifactId>
|
144
|
+
<version>0.1.2</version>
|
145
|
+
</dependency>
|
146
|
+
<!-- SQLiteの設定 ここまで-->
|
147
|
+
|
148
|
+
<dependency>
|
149
|
+
<groupId>org.webjars</groupId>
|
150
|
+
<artifactId>jquery</artifactId>
|
151
|
+
<version>2.1.1</version>
|
152
|
+
</dependency>
|
153
|
+
|
154
|
+
<dependency>
|
155
|
+
<groupId>com.fasterxml.jackson.datatype</groupId>
|
156
|
+
<artifactId>jackson-datatype-jsr310</artifactId>
|
157
|
+
</dependency>
|
158
|
+
|
159
|
+
<dependency>
|
160
|
+
<groupId>com.fasterxml.jackson.core</groupId>
|
161
|
+
<artifactId>jackson-databind</artifactId>
|
162
|
+
</dependency>
|
163
|
+
|
164
|
+
<dependency>
|
165
|
+
<groupId>org.springframework.boot</groupId>
|
166
|
+
<artifactId>spring-boot-devtools</artifactId>
|
167
|
+
</dependency>
|
168
|
+
|
169
|
+
<dependency>
|
170
|
+
<groupId>org.thymeleaf.extras</groupId>
|
171
|
+
<artifactId>thymeleaf-extras-java8time</artifactId>
|
172
|
+
</dependency>
|
173
|
+
|
174
|
+
|
175
|
+
<dependency>
|
176
|
+
<groupId>org.springframework.boot</groupId>
|
177
|
+
<artifactId>spring-boot-actuator</artifactId>
|
178
|
+
</dependency>
|
179
|
+
|
180
|
+
<dependency>
|
181
|
+
<groupId>org.apache.commons</groupId>
|
182
|
+
<artifactId>commons-lang3</artifactId>
|
183
|
+
<version>3.4</version>
|
184
|
+
</dependency>
|
185
|
+
|
186
|
+
<dependency>
|
187
|
+
<groupId>org.springframework</groupId>
|
188
|
+
<artifactId>spring-context</artifactId>
|
189
|
+
</dependency>
|
190
|
+
|
191
|
+
<dependency>
|
192
|
+
<groupId>org.springframework</groupId>
|
193
|
+
<artifactId>spring-jdbc</artifactId>
|
194
|
+
</dependency>
|
195
|
+
|
196
|
+
|
197
|
+
<!-- POI -->
|
198
|
+
<dependency>
|
199
|
+
<groupId>org.apache.poi</groupId>
|
200
|
+
<artifactId>poi</artifactId>
|
201
|
+
<version>3.13</version>
|
202
|
+
</dependency>
|
203
|
+
|
204
|
+
<dependency>
|
205
|
+
<groupId>org.apache.poi</groupId>
|
206
|
+
<artifactId>poi-ooxml</artifactId>
|
207
|
+
<version>3.13</version>
|
208
|
+
</dependency>
|
209
|
+
|
210
|
+
|
211
|
+
<!-- Security -->
|
212
|
+
<dependency>
|
213
|
+
<groupId>org.springframework.security</groupId>
|
214
|
+
<artifactId>spring-security-web</artifactId>
|
215
|
+
</dependency>
|
216
|
+
|
217
|
+
<dependency>
|
218
|
+
<groupId>org.springframework.security</groupId>
|
219
|
+
<artifactId>spring-security-config</artifactId>
|
220
|
+
</dependency>
|
221
|
+
|
222
|
+
<dependency>
|
223
|
+
<groupId>org.springframework.security</groupId>
|
224
|
+
<artifactId>spring-security-taglibs</artifactId>
|
225
|
+
</dependency>
|
226
|
+
|
227
|
+
<dependency>
|
228
|
+
<groupId>org.thymeleaf.extras</groupId>
|
229
|
+
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
|
230
|
+
</dependency>
|
231
|
+
|
232
|
+
</dependencies>
|
233
|
+
|
234
|
+
|
235
|
+
</project>
|
114
236
|
```
|
115
237
|
|
116
238
|
### 試したこと
|