質問編集履歴

1

web.xml,pom.xml,context.xmlの内容を追記いたしました。build.gradleについては分かり次第追記します。

2018/09/24 06:34

投稿

8pinky_jones8
8pinky_jones8

スコア10

test CHANGED
File without changes
test CHANGED
@@ -18,55 +18,7 @@
18
18
 
19
19
  ```
20
20
 
21
- 情報: Server version: Apache Tomcat/8.0.53 [月 9 24 13:10:46 JST 2018]
22
-
23
- 情報: Server built: Jun 29 2018 14:42:45 UTC [月 9 24 13:10:46 JST 2018]
24
-
25
- 情報: Server number: 8.0.53.0 [月 9 24 13:10:46 JST 2018]
26
-
27
- 情報: OS Name: Windows 10 [月 9 24 13:10:46 JST 2018]
28
-
29
- 情報: OS Version: 10.0 [月 9 24 13:10:46 JST 2018]
30
-
31
- 情報: Architecture: amd64 [月 9 24 13:10:46 JST 2018]
32
-
33
- 情報: Java Home: C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\eclipse\jre\jre [月 9 24 13:10:46 JST 2018]
34
-
35
- 情報: JVM Version: 1.8.0_172-b11 [月 9 24 13:10:46 JST 2018]
36
-
37
- 情報: JVM Vendor: Oracle Corporation [月 9 24 13:10:46 JST 2018]
38
-
39
- 情報: CATALINA_BASE: C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0 [月 9 24 13:10:46 JST 2018]
40
-
41
- 情報: CATALINA_HOME: C:\Users\maeda\Desktop\apache-tomcat-8.0.53-windows-x64\apache-tomcat-8.0.53 [月 9 24 13:10:46 JST 2018]
42
-
43
- 情報: Command line argument: -Dcatalina.base=C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0 [月 9 24 13:10:46 JST 2018]
44
-
45
- 情報: Command line argument: -Dcatalina.home=C:\Users\maeda\Desktop\apache-tomcat-8.0.53-windows-x64\apache-tomcat-8.0.53 [月 9 24 13:10:46 JST 2018]
46
-
47
- 情報: Command line argument: -Dwtp.deploy=C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps [月 9 24 13:10:46 JST 2018]
48
-
49
- 情報: Command line argument: -Djava.endorsed.dirs=C:\Users\maeda\Desktop\apache-tomcat-8.0.53-windows-x64\apache-tomcat-8.0.53\endorsed [月 9 24 13:10:46 JST 2018]
50
-
51
- 情報: Command line argument: -Dfile.encoding=UTF-8 [月 9 24 13:10:46 JST 2018]
52
-
53
- 情報: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\eclipse\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/格納用/pleiades-4.8.0-java-win-64bit-jre_20180627/pleiades/eclipse/jre/bin/../jre/bin/server;C:/格納用/pleiades-4.8.0-java-win-64bit-jre_20180627/pleiades/eclipse/jre/bin/../jre/bin;C:/格納用/pleiades-4.8.0-java-win-64bit-jre_20180627/pleiades/eclipse/jre/bin/../jre/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\maeda\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk1.8.0_181\bin;;C:\格納用\pleiades-4.8.0-java-win-64bit-jre_20180627\pleiades\eclipse;;. [月 9 24 13:10:46 JST 2018]
54
-
55
- 情報: Initializing ProtocolHandler ["http-nio-8080"] [月 9 24 13:10:46 JST 2018]
56
-
57
- 情報: Using a shared selector for servlet write/read [月 9 24 13:10:47 JST 2018]
58
-
59
- 情報: Initializing ProtocolHandler ["ajp-nio-8009"] [月 9 24 13:10:47 JST 2018]
60
-
61
- 情報: Using a shared selector for servlet write/read [月 9 24 13:10:47 JST 2018]
62
-
63
- 情報: Initialization processed in 1502 ms [月 9 24 13:10:47 JST 2018]
64
-
65
- 情報: サービス Catalina を起動します [月 9 24 13:10:47 JST 2018]
66
-
67
- 情報: Starting Servlet Engine: Apache Tomcat/8.0.53 [月 9 24 13:10:47 JST 2018]
68
-
69
- 情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [月 9 24 13:10:52 JST 2018]
21
+
70
22
 
71
23
  重大: A child container failed during start [月 9 24 13:10:52 JST 2018]
72
24
 
@@ -88,34 +40,488 @@
88
40
 
89
41
  重大: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"] [月 9 24 13:10:52 JST 2018]
90
42
 
91
-
92
-
93
- ```
94
-
95
-
96
-
97
- ### 該当のソースコード
98
-
99
-
100
-
101
- ```ここに言語名を入力
102
-
103
- ソースコード
104
-
105
- ```
106
-
107
-
108
-
109
- ### 試したこと
110
-
111
-
112
-
113
- クリーンや再起動、バージョン変更など試しましたが、好転しませんでした。
114
-
115
-
116
-
117
- ### 補足情報(FW/ツールのバージョンなど)
118
-
119
-
120
-
121
- ここにより詳細な情報を記載してください。
43
+ ```
44
+
45
+
46
+
47
+
48
+
49
+ ### web.xml
50
+
51
+
52
+
53
+ ```
54
+
55
+ <?xml version="1.0" encoding="UTF-8"?>
56
+
57
+ <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
58
+
59
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
60
+
61
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
62
+
63
+
64
+
65
+ <!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
66
+
67
+ <context-param>
68
+
69
+ <param-name>contextConfigLocation</param-name>
70
+
71
+ <param-value>/WEB-INF/spring/root-context.xml</param-value>
72
+
73
+ </context-param>
74
+
75
+
76
+
77
+ <!-- Creates the Spring Container shared by all Servlets and Filters -->
78
+
79
+ <listener>
80
+
81
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
82
+
83
+ </listener>
84
+
85
+
86
+
87
+ <!-- Processes application requests -->
88
+
89
+ <servlet>
90
+
91
+ <servlet-name>appServlet</servlet-name>
92
+
93
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
94
+
95
+ <init-param>
96
+
97
+ <param-name>contextConfigLocation</param-name>
98
+
99
+ <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
100
+
101
+ </init-param>
102
+
103
+ <load-on-startup>1</load-on-startup>
104
+
105
+ </servlet>
106
+
107
+
108
+
109
+ <servlet-mapping>
110
+
111
+ <servlet-name>appServlet</servlet-name>
112
+
113
+ <url-pattern>/</url-pattern>
114
+
115
+ </servlet-mapping>
116
+
117
+
118
+
119
+ </web-app>
120
+
121
+ ```
122
+
123
+ ### pom.xml
124
+
125
+ ```
126
+
127
+ <?xml version="1.0" encoding="UTF-8"?>
128
+
129
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
130
+
131
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
132
+
133
+ <modelVersion>4.0.0</modelVersion>
134
+
135
+ <groupId>jp.practice</groupId>
136
+
137
+ <artifactId>address</artifactId>
138
+
139
+ <name>unit02</name>
140
+
141
+ <packaging>war</packaging>
142
+
143
+ <version>1.0.0-BUILD-SNAPSHOT</version>
144
+
145
+ <properties>
146
+
147
+ <java-version>1.8</java-version>
148
+
149
+ <org.springframework-version>4.3.7.RELEASE</org.springframework-version>
150
+
151
+ <org.aspectj-version>1.6.10</org.aspectj-version>
152
+
153
+ <org.slf4j-version>1.6.6</org.slf4j-version>
154
+
155
+ </properties>
156
+
157
+ <dependencies>
158
+
159
+ <!-- Spring -->
160
+
161
+ <dependency>
162
+
163
+ <groupId>org.springframework</groupId>
164
+
165
+ <artifactId>spring-context</artifactId>
166
+
167
+ <version>${org.springframework-version}</version>
168
+
169
+ <exclusions>
170
+
171
+ <!-- Exclude Commons Logging in favor of SLF4j -->
172
+
173
+ <exclusion>
174
+
175
+ <groupId>commons-logging</groupId>
176
+
177
+ <artifactId>commons-logging</artifactId>
178
+
179
+ </exclusion>
180
+
181
+ </exclusions>
182
+
183
+ </dependency>
184
+
185
+ <dependency>
186
+
187
+ <groupId>org.springframework</groupId>
188
+
189
+ <artifactId>spring-webmvc</artifactId>
190
+
191
+ <version>${org.springframework-version}</version>
192
+
193
+ </dependency>
194
+
195
+
196
+
197
+ <!-- AspectJ -->
198
+
199
+ <dependency>
200
+
201
+ <groupId>org.aspectj</groupId>
202
+
203
+ <artifactId>aspectjrt</artifactId>
204
+
205
+ <version>${org.aspectj-version}</version>
206
+
207
+ </dependency>
208
+
209
+
210
+
211
+ <!-- Logging -->
212
+
213
+ <dependency>
214
+
215
+ <groupId>org.slf4j</groupId>
216
+
217
+ <artifactId>slf4j-api</artifactId>
218
+
219
+ <version>${org.slf4j-version}</version>
220
+
221
+ </dependency>
222
+
223
+ <dependency>
224
+
225
+ <groupId>org.slf4j</groupId>
226
+
227
+ <artifactId>jcl-over-slf4j</artifactId>
228
+
229
+ <version>${org.slf4j-version}</version>
230
+
231
+ <scope>runtime</scope>
232
+
233
+ </dependency>
234
+
235
+ <dependency>
236
+
237
+ <groupId>org.slf4j</groupId>
238
+
239
+ <artifactId>slf4j-log4j12</artifactId>
240
+
241
+ <version>${org.slf4j-version}</version>
242
+
243
+ <scope>runtime</scope>
244
+
245
+ </dependency>
246
+
247
+ <dependency>
248
+
249
+ <groupId>log4j</groupId>
250
+
251
+ <artifactId>log4j</artifactId>
252
+
253
+ <version>1.2.15</version>
254
+
255
+ <exclusions>
256
+
257
+ <exclusion>
258
+
259
+ <groupId>javax.mail</groupId>
260
+
261
+ <artifactId>mail</artifactId>
262
+
263
+ </exclusion>
264
+
265
+ <exclusion>
266
+
267
+ <groupId>javax.jms</groupId>
268
+
269
+ <artifactId>jms</artifactId>
270
+
271
+ </exclusion>
272
+
273
+ <exclusion>
274
+
275
+ <groupId>com.sun.jdmk</groupId>
276
+
277
+ <artifactId>jmxtools</artifactId>
278
+
279
+ </exclusion>
280
+
281
+ <exclusion>
282
+
283
+ <groupId>com.sun.jmx</groupId>
284
+
285
+ <artifactId>jmxri</artifactId>
286
+
287
+ </exclusion>
288
+
289
+ </exclusions>
290
+
291
+ <scope>runtime</scope>
292
+
293
+ </dependency>
294
+
295
+
296
+
297
+ <!-- @Inject -->
298
+
299
+ <dependency>
300
+
301
+ <groupId>javax.inject</groupId>
302
+
303
+ <artifactId>javax.inject</artifactId>
304
+
305
+ <version>1</version>
306
+
307
+ </dependency>
308
+
309
+
310
+
311
+ <!-- Servlet -->
312
+
313
+ <dependency>
314
+
315
+ <groupId>javax.servlet</groupId>
316
+
317
+ <artifactId>servlet-api</artifactId>
318
+
319
+ <version>2.5</version>
320
+
321
+ <scope>provided</scope>
322
+
323
+ </dependency>
324
+
325
+ <dependency>
326
+
327
+ <groupId>javax.servlet.jsp</groupId>
328
+
329
+ <artifactId>jsp-api</artifactId>
330
+
331
+ <version>2.1</version>
332
+
333
+ <scope>provided</scope>
334
+
335
+ </dependency>
336
+
337
+ <dependency>
338
+
339
+ <groupId>javax.servlet</groupId>
340
+
341
+ <artifactId>jstl</artifactId>
342
+
343
+ <version>1.2</version>
344
+
345
+ </dependency>
346
+
347
+
348
+
349
+ <!-- Test -->
350
+
351
+ <dependency>
352
+
353
+ <groupId>junit</groupId>
354
+
355
+ <artifactId>junit</artifactId>
356
+
357
+ <version>4.7</version>
358
+
359
+ <scope>test</scope>
360
+
361
+ </dependency>
362
+
363
+ </dependencies>
364
+
365
+ <build>
366
+
367
+ <plugins>
368
+
369
+ <plugin>
370
+
371
+ <artifactId>maven-eclipse-plugin</artifactId>
372
+
373
+ <version>2.9</version>
374
+
375
+ <configuration>
376
+
377
+ <additionalProjectnatures>
378
+
379
+ <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
380
+
381
+ </additionalProjectnatures>
382
+
383
+ <additionalBuildcommands>
384
+
385
+ <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
386
+
387
+ </additionalBuildcommands>
388
+
389
+ <downloadSources>true</downloadSources>
390
+
391
+ <downloadJavadocs>true</downloadJavadocs>
392
+
393
+ </configuration>
394
+
395
+ </plugin>
396
+
397
+ <plugin>
398
+
399
+ <groupId>org.apache.maven.plugins</groupId>
400
+
401
+ <artifactId>maven-compiler-plugin</artifactId>
402
+
403
+ <version>2.5.1</version>
404
+
405
+ <configuration>
406
+
407
+ <source>1.8</source>
408
+
409
+ <target>1.8</target>
410
+
411
+ <compilerArgument>-Xlint:all</compilerArgument>
412
+
413
+ <showWarnings>true</showWarnings>
414
+
415
+ <showDeprecation>true</showDeprecation>
416
+
417
+ </configuration>
418
+
419
+ </plugin>
420
+
421
+ <plugin>
422
+
423
+ <groupId>org.codehaus.mojo</groupId>
424
+
425
+ <artifactId>exec-maven-plugin</artifactId>
426
+
427
+ <version>1.2.1</version>
428
+
429
+ <configuration>
430
+
431
+ <mainClass>org.test.int1.Main</mainClass>
432
+
433
+ </configuration>
434
+
435
+ </plugin>
436
+
437
+ </plugins>
438
+
439
+ </build>
440
+
441
+ </project>
442
+
443
+ ```
444
+
445
+ ### root-context.xml
446
+
447
+ ```
448
+
449
+ <?xml version="1.0" encoding="UTF-8"?>
450
+
451
+ <beans xmlns="http://www.springframework.org/schema/beans"
452
+
453
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
454
+
455
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
456
+
457
+
458
+
459
+ <!-- Root Context: defines shared resources visible to all other web components -->
460
+
461
+
462
+
463
+ </beans>
464
+
465
+ ```
466
+
467
+ ###servlet-context.xml
468
+
469
+ ```
470
+
471
+ <?xml version="1.0" encoding="UTF-8"?>
472
+
473
+ <beans:beans xmlns="http://www.springframework.org/schema/mvc"
474
+
475
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
476
+
477
+ xmlns:beans="http://www.springframework.org/schema/beans"
478
+
479
+ xmlns:context="http://www.springframework.org/schema/context"
480
+
481
+ xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
482
+
483
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
484
+
485
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
486
+
487
+
488
+
489
+ <!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
490
+
491
+
492
+
493
+ <!-- Enables the Spring MVC @Controller programming model -->
494
+
495
+ <annotation-driven />
496
+
497
+
498
+
499
+ <!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
500
+
501
+ <resources mapping="/resources/**" location="/resources/" />
502
+
503
+
504
+
505
+ <!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
506
+
507
+ <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
508
+
509
+ <beans:property name="prefix" value="/WEB-INF/views/" />
510
+
511
+ <beans:property name="suffix" value=".jsp" />
512
+
513
+ </beans:bean>
514
+
515
+
516
+
517
+ <context:component-scan base-package="jp.practice.address" />
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+ </beans:beans>
526
+
527
+ ```