質問編集履歴
2
ビルドツール追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,16 +6,12 @@
|
|
6
6
|
|
7
7
|
1.ファイル>新規>プロジェクトを選択。
|
8
8
|
|
9
|
-
|
10
|
-
|
11
9
|
2.新規プロジェクト作成ウィザードにて
|
12
10
|
|
13
11
|
プロジェクトSDKにopenJDK1.8、言語をkotlin、
|
14
12
|
|
15
13
|
javaバージョンを8、パッケージングをwarに設定。
|
16
14
|
|
17
|
-
|
18
|
-
|
19
15
|
3.依存関係選択画面にてSpring Boot DevTools、Lombok、
|
20
16
|
|
21
17
|
Spring Web、Thymeleafを選択。
|
@@ -52,8 +48,6 @@
|
|
52
48
|
|
53
49
|
}
|
54
50
|
|
55
|
-
|
56
|
-
|
57
51
|
@GetMapping("/hello")
|
58
52
|
|
59
53
|
fun hello(@RequestParam("name") name: String):String="tt Hello!,$name"
|
@@ -130,22 +124,8 @@
|
|
130
124
|
|
131
125
|
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
|
132
126
|
|
133
|
-
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
|
134
|
-
|
135
|
-
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
|
136
|
-
|
137
|
-
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
|
138
|
-
|
139
|
-
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:560)
|
140
|
-
|
141
127
|
(中略)
|
142
128
|
|
143
|
-
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
|
144
|
-
|
145
|
-
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
146
|
-
|
147
|
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
148
|
-
|
149
129
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
150
130
|
|
151
131
|
at java.lang.Thread.run(Thread.java:748)
|
@@ -154,32 +134,8 @@
|
|
154
134
|
|
155
135
|
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
|
156
136
|
|
157
|
-
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
|
158
|
-
|
159
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
|
160
|
-
|
161
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
|
162
|
-
|
163
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
|
164
|
-
|
165
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
|
166
|
-
|
167
|
-
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
|
168
|
-
|
169
137
|
(中略)
|
170
138
|
|
171
|
-
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
|
172
|
-
|
173
|
-
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
|
174
|
-
|
175
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
|
176
|
-
|
177
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
|
178
|
-
|
179
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
|
180
|
-
|
181
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
|
182
|
-
|
183
139
|
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
|
184
140
|
|
185
141
|
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
|
@@ -200,21 +156,7 @@
|
|
200
156
|
|
201
157
|
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:88)
|
202
158
|
|
203
|
-
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:47)
|
204
|
-
|
205
|
-
at org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolator(ConfigurationImpl.java:474)
|
206
|
-
|
207
|
-
at org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:53)
|
208
|
-
|
209
|
-
at org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration.defaultValidator(ValidationAutoConfiguration.java:57)
|
210
|
-
|
211
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
212
|
-
|
213
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
214
|
-
|
215
|
-
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
216
|
-
|
217
|
-
|
159
|
+
(中略)
|
218
160
|
|
219
161
|
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
|
220
162
|
|
@@ -230,32 +172,8 @@
|
|
230
172
|
|
231
173
|
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
|
232
174
|
|
233
|
-
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
|
234
|
-
|
235
|
-
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
|
236
|
-
|
237
|
-
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
|
238
|
-
|
239
|
-
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:560)
|
240
|
-
|
241
|
-
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1779)
|
242
|
-
|
243
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
244
|
-
|
245
|
-
|
246
|
-
|
247
175
|
(中略)
|
248
176
|
|
249
|
-
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
|
250
|
-
|
251
|
-
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
|
252
|
-
|
253
|
-
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
|
254
|
-
|
255
|
-
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
256
|
-
|
257
|
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
258
|
-
|
259
177
|
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
260
178
|
|
261
179
|
at java.lang.Thread.run(Thread.java:748)
|
@@ -301,3 +219,189 @@
|
|
301
219
|
tomcat-webapps.noarch 7.0.76-9.el7_6 @base
|
302
220
|
|
303
221
|
```
|
222
|
+
|
223
|
+
ビルドツールはMavenで
|
224
|
+
|
225
|
+
以下はpom.xmlの内容となります。
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
230
|
+
|
231
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
232
|
+
|
233
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
234
|
+
|
235
|
+
<modelVersion>4.0.0</modelVersion>
|
236
|
+
|
237
|
+
<parent>
|
238
|
+
|
239
|
+
<groupId>org.springframework.boot</groupId>
|
240
|
+
|
241
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
242
|
+
|
243
|
+
<version>2.1.9.RELEASE</version>
|
244
|
+
|
245
|
+
<relativePath/> <!-- lookup parent from repository -->
|
246
|
+
|
247
|
+
</parent>
|
248
|
+
|
249
|
+
<groupId>com.example</groupId>
|
250
|
+
|
251
|
+
<artifactId>demo5</artifactId>
|
252
|
+
|
253
|
+
<version>0.0.1-SNAPSHOT</version>
|
254
|
+
|
255
|
+
<packaging>war</packaging>
|
256
|
+
|
257
|
+
<name>demo</name>
|
258
|
+
|
259
|
+
<description>Demo project for Spring Boot</description>
|
260
|
+
|
261
|
+
<properties>
|
262
|
+
|
263
|
+
<java.version>1.8</java.version>
|
264
|
+
|
265
|
+
<kotlin.version>1.2.71</kotlin.version>
|
266
|
+
|
267
|
+
</properties>
|
268
|
+
|
269
|
+
<dependencies>
|
270
|
+
|
271
|
+
<dependency>
|
272
|
+
|
273
|
+
<groupId>org.springframework.boot</groupId>
|
274
|
+
|
275
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
276
|
+
|
277
|
+
</dependency>
|
278
|
+
|
279
|
+
<dependency>
|
280
|
+
|
281
|
+
<groupId>org.springframework.boot</groupId>
|
282
|
+
|
283
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
284
|
+
|
285
|
+
</dependency>
|
286
|
+
|
287
|
+
<dependency>
|
288
|
+
|
289
|
+
<groupId>com.fasterxml.jackson.module</groupId>
|
290
|
+
|
291
|
+
<artifactId>jackson-module-kotlin</artifactId>
|
292
|
+
|
293
|
+
</dependency>
|
294
|
+
|
295
|
+
<dependency>
|
296
|
+
|
297
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
298
|
+
|
299
|
+
<artifactId>kotlin-reflect</artifactId>
|
300
|
+
|
301
|
+
</dependency>
|
302
|
+
|
303
|
+
<dependency>
|
304
|
+
|
305
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
306
|
+
|
307
|
+
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
308
|
+
|
309
|
+
</dependency>
|
310
|
+
|
311
|
+
<dependency>
|
312
|
+
|
313
|
+
<groupId>org.springframework.boot</groupId>
|
314
|
+
|
315
|
+
<artifactId>spring-boot-devtools</artifactId>
|
316
|
+
|
317
|
+
<scope>runtime</scope>
|
318
|
+
|
319
|
+
<optional>true</optional>
|
320
|
+
|
321
|
+
</dependency>
|
322
|
+
|
323
|
+
<dependency>
|
324
|
+
|
325
|
+
<groupId>org.projectlombok</groupId>
|
326
|
+
|
327
|
+
<artifactId>lombok</artifactId>
|
328
|
+
|
329
|
+
<optional>true</optional>
|
330
|
+
|
331
|
+
</dependency>
|
332
|
+
|
333
|
+
<dependency>
|
334
|
+
|
335
|
+
<groupId>org.springframework.boot</groupId>
|
336
|
+
|
337
|
+
<artifactId>spring-boot-starter-tomcat</artifactId>
|
338
|
+
|
339
|
+
<scope>provided</scope>
|
340
|
+
|
341
|
+
</dependency>
|
342
|
+
|
343
|
+
</dependencies>
|
344
|
+
|
345
|
+
<build>
|
346
|
+
|
347
|
+
<finalName>${artifactId}</finalName>
|
348
|
+
|
349
|
+
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
350
|
+
|
351
|
+
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
352
|
+
|
353
|
+
<plugins>
|
354
|
+
|
355
|
+
<plugin>
|
356
|
+
|
357
|
+
<groupId>org.springframework.boot</groupId>
|
358
|
+
|
359
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
360
|
+
|
361
|
+
</plugin>
|
362
|
+
|
363
|
+
<plugin>
|
364
|
+
|
365
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
366
|
+
|
367
|
+
<artifactId>kotlin-maven-plugin</artifactId>
|
368
|
+
|
369
|
+
<configuration>
|
370
|
+
|
371
|
+
<args>
|
372
|
+
|
373
|
+
<arg>-Xjsr305=strict</arg>
|
374
|
+
|
375
|
+
</args>
|
376
|
+
|
377
|
+
<compilerPlugins>
|
378
|
+
|
379
|
+
<plugin>spring</plugin>
|
380
|
+
|
381
|
+
</compilerPlugins>
|
382
|
+
|
383
|
+
</configuration>
|
384
|
+
|
385
|
+
<dependencies>
|
386
|
+
|
387
|
+
<dependency>
|
388
|
+
|
389
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
390
|
+
|
391
|
+
<artifactId>kotlin-maven-allopen</artifactId>
|
392
|
+
|
393
|
+
<version>${kotlin.version}</version>
|
394
|
+
|
395
|
+
</dependency>
|
396
|
+
|
397
|
+
</dependencies>
|
398
|
+
|
399
|
+
</plugin>
|
400
|
+
|
401
|
+
</plugins>
|
402
|
+
|
403
|
+
</build>
|
404
|
+
|
405
|
+
</project>
|
406
|
+
|
407
|
+
```
|
1
配備先の環境について追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,21 +138,113 @@
|
|
138
138
|
|
139
139
|
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:560)
|
140
140
|
|
141
|
+
(中略)
|
142
|
+
|
143
|
+
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
|
144
|
+
|
145
|
+
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
146
|
+
|
147
|
+
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
148
|
+
|
149
|
+
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
150
|
+
|
151
|
+
at java.lang.Thread.run(Thread.java:748)
|
152
|
+
|
153
|
+
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
|
154
|
+
|
155
|
+
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
|
156
|
+
|
157
|
+
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
|
158
|
+
|
159
|
+
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
|
160
|
+
|
161
|
+
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
|
162
|
+
|
163
|
+
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
|
164
|
+
|
165
|
+
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
|
166
|
+
|
167
|
+
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
|
168
|
+
|
169
|
+
(中略)
|
170
|
+
|
171
|
+
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
|
172
|
+
|
173
|
+
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
|
174
|
+
|
175
|
+
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
|
176
|
+
|
177
|
+
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
|
178
|
+
|
179
|
+
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
|
180
|
+
|
181
|
+
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
|
182
|
+
|
183
|
+
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
|
184
|
+
|
185
|
+
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
|
186
|
+
|
187
|
+
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
|
188
|
+
|
189
|
+
... 44 more
|
190
|
+
|
191
|
+
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
|
192
|
+
|
193
|
+
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
|
194
|
+
|
195
|
+
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
|
196
|
+
|
197
|
+
... 66 more
|
198
|
+
|
199
|
+
Caused by: java.lang.NoClassDefFoundError: javax/el/ELManager
|
200
|
+
|
201
|
+
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:88)
|
202
|
+
|
203
|
+
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:47)
|
204
|
+
|
205
|
+
at org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolator(ConfigurationImpl.java:474)
|
206
|
+
|
207
|
+
at org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:53)
|
208
|
+
|
209
|
+
at org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration.defaultValidator(ValidationAutoConfiguration.java:57)
|
210
|
+
|
211
|
+
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
212
|
+
|
213
|
+
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
214
|
+
|
215
|
+
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
216
|
+
|
217
|
+
at java.lang.reflect.Method.invoke(Method.java:498)
|
218
|
+
|
219
|
+
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
|
220
|
+
|
221
|
+
... 67 more
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
10 12, 2019 12:16:01 午前 org.apache.catalina.startup.HostConfig deployWAR
|
226
|
+
|
227
|
+
重大: Webアプリケーションアーカイブ /var/lib/tomcat/webapps/demo6.war を配備中のエラーです
|
228
|
+
|
229
|
+
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/demo6]]
|
230
|
+
|
231
|
+
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
|
232
|
+
|
233
|
+
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
|
234
|
+
|
235
|
+
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
|
236
|
+
|
237
|
+
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
|
238
|
+
|
239
|
+
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:560)
|
240
|
+
|
141
241
|
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1779)
|
142
242
|
|
143
243
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
144
244
|
|
145
|
-
|
245
|
+
|
146
|
-
|
147
|
-
|
246
|
+
|
148
|
-
|
149
|
-
at java.lang.reflect.Method.invoke(Method.java:498)
|
150
|
-
|
151
|
-
|
247
|
+
(中略)
|
152
|
-
|
153
|
-
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
|
154
|
-
|
155
|
-
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
|
156
248
|
|
157
249
|
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
|
158
250
|
|
@@ -168,122 +260,44 @@
|
|
168
260
|
|
169
261
|
at java.lang.Thread.run(Thread.java:748)
|
170
262
|
|
171
|
-
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
|
172
|
-
|
173
|
-
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
|
174
|
-
|
175
|
-
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
|
176
|
-
|
177
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
|
178
|
-
|
179
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
|
180
|
-
|
181
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
|
182
|
-
|
183
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
|
184
|
-
|
185
|
-
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
|
186
|
-
|
187
|
-
(中略)
|
188
|
-
|
189
|
-
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
|
190
|
-
|
191
|
-
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
|
192
|
-
|
193
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
|
194
|
-
|
195
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
|
196
|
-
|
197
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
|
198
|
-
|
199
|
-
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
|
200
|
-
|
201
|
-
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
|
202
|
-
|
203
|
-
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
|
204
|
-
|
205
|
-
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
|
206
|
-
|
207
|
-
... 44 more
|
208
|
-
|
209
|
-
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
|
210
|
-
|
211
|
-
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
|
212
|
-
|
213
|
-
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
|
214
|
-
|
215
|
-
... 66 more
|
216
|
-
|
217
|
-
Caused by: java.lang.NoClassDefFoundError: javax/el/ELManager
|
218
|
-
|
219
|
-
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:88)
|
220
|
-
|
221
|
-
at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:47)
|
222
|
-
|
223
|
-
at org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolator(ConfigurationImpl.java:474)
|
224
|
-
|
225
|
-
at org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:53)
|
226
|
-
|
227
|
-
at org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration.defaultValidator(ValidationAutoConfiguration.java:57)
|
228
|
-
|
229
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
230
|
-
|
231
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
232
|
-
|
233
|
-
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
234
|
-
|
235
|
-
at java.lang.reflect.Method.invoke(Method.java:498)
|
236
|
-
|
237
|
-
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
|
238
|
-
|
239
|
-
... 67 more
|
240
|
-
|
241
263
|
|
242
264
|
|
243
265
|
10 12, 2019 12:16:01 午前 org.apache.catalina.startup.HostConfig deployWAR
|
244
266
|
|
245
|
-
重大: Webアプリケーションアーカイブ /var/lib/tomcat/webapps/demo6.war を配備中のエラーです
|
246
|
-
|
247
|
-
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/demo6]]
|
248
|
-
|
249
|
-
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
|
250
|
-
|
251
|
-
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
|
252
|
-
|
253
|
-
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
|
254
|
-
|
255
|
-
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
|
256
|
-
|
257
|
-
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:560)
|
258
|
-
|
259
|
-
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1779)
|
260
|
-
|
261
|
-
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
(中略)
|
266
|
-
|
267
|
-
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
|
268
|
-
|
269
|
-
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
|
270
|
-
|
271
|
-
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
|
272
|
-
|
273
|
-
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
274
|
-
|
275
|
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
276
|
-
|
277
|
-
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
278
|
-
|
279
|
-
at java.lang.Thread.run(Thread.java:748)
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
10 12, 2019 12:16:01 午前 org.apache.catalina.startup.HostConfig deployWAR
|
284
|
-
|
285
267
|
情報: Deployment of web application archive /var/lib/tomcat/webapps/demo6.war has finished in 3,143 ms
|
286
268
|
|
287
|
-
|
288
|
-
|
289
|
-
```
|
269
|
+
```
|
270
|
+
|
271
|
+
配備先の環境については下記の通りとなります。
|
272
|
+
|
273
|
+
```
|
274
|
+
|
275
|
+
[root@db1 ~]# cat /etc/redhat-release
|
276
|
+
|
277
|
+
CentOS Linux release 7.6.1810 (Core)
|
278
|
+
|
279
|
+
[root@db1 ~]# java -version
|
280
|
+
|
281
|
+
openjdk version "1.8.0_222"
|
282
|
+
|
283
|
+
OpenJDK Runtime Environment (build 1.8.0_222-b10)
|
284
|
+
|
285
|
+
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
|
286
|
+
|
287
|
+
[root@db1 ~]# yum list installed | grep tomcat
|
288
|
+
|
289
|
+
tomcat.noarch 7.0.76-9.el7_6 @base
|
290
|
+
|
291
|
+
tomcat-admin-webapps.noarch 7.0.76-9.el7_6 @base
|
292
|
+
|
293
|
+
tomcat-el-2.2-api.noarch 7.0.76-9.el7_6 @base
|
294
|
+
|
295
|
+
tomcat-jsp-2.2-api.noarch 7.0.76-9.el7_6 @base
|
296
|
+
|
297
|
+
tomcat-lib.noarch 7.0.76-9.el7_6 @base
|
298
|
+
|
299
|
+
tomcat-servlet-3.0-api.noarch 7.0.76-9.el7_6 @base
|
300
|
+
|
301
|
+
tomcat-webapps.noarch 7.0.76-9.el7_6 @base
|
302
|
+
|
303
|
+
```
|