質問編集履歴

4

文言追加

2021/01/03 14:40

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,162 @@
38
38
 
39
39
  ```
40
40
 
41
+ エラーログ:
42
+
43
+ ```ここに言語を入力
44
+
45
+ 03-Jan-2021 14:07:32.453 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/opt/apache-tomcat-9.0.38/webapps/pms_web]
46
+
47
+ java.lang.IllegalStateException: Error starting child
48
+
49
+ at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)
50
+
51
+ at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
52
+
53
+ at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
54
+
55
+ at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)
56
+
57
+ at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)
58
+
59
+ at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
60
+
61
+ at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
62
+
63
+ at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
64
+
65
+ at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
66
+
67
+ at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
68
+
69
+ at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
70
+
71
+ at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
72
+
73
+ at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
74
+
75
+ at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
76
+
77
+ at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
78
+
79
+ at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
80
+
81
+ at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
82
+
83
+ at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
84
+
85
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
86
+
87
+ at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
88
+
89
+ at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
90
+
91
+ at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
92
+
93
+ at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
94
+
95
+ at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
96
+
97
+ at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
98
+
99
+ at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
100
+
101
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
102
+
103
+ at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
104
+
105
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
106
+
107
+ at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
108
+
109
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
110
+
111
+ at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
112
+
113
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
114
+
115
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
116
+
117
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
118
+
119
+ at java.base/java.lang.reflect.Method.invoke(Method.java:564)
120
+
121
+ at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
122
+
123
+ at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
124
+
125
+ Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pms_web]]
126
+
127
+ at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
128
+
129
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
130
+
131
+ at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
132
+
133
+ ... 37 more
134
+
135
+ Caused by: java.lang.IllegalStateException: Logback configuration error detected:
136
+
137
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[all] - Failed to create parent directories for [/./logs/pms-web/pms-web_all.log]
138
+
139
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[all] - openFile(./logs/pms-web/pms-web_all.log,true) call failed. java.io.FileNotFoundException: ./logs/pms-web/pms-web_all.log (No such file or directory)
140
+
141
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[error] - Failed to create parent directories for [/./logs/pms-web/pms-web_error.log]
142
+
143
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[error] - openFile(./logs/pms-web/pms-web_error.log,true) call failed. java.io.FileNotFoundException: ./logs/pms-web/pms-web_error.log (No such file or directory)
144
+
145
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[service] - Failed to create parent directories for [/./logs/pms-web/pms-web.log]
146
+
147
+ ERROR in ch.qos.logback.core.rolling.RollingFileAppender[service] - openFile(./logs/pms-web/pms-web.log,true) call failed. java.io.FileNotFoundException: ./logs/pms-web/pms-web.log (No such file or directory)
148
+
149
+ at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:162)
150
+
151
+ at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:81)
152
+
153
+ at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59)
154
+
155
+ at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:115)
156
+
157
+ at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:303)
158
+
159
+ at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:276)
160
+
161
+ at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:239)
162
+
163
+ at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:212)
164
+
165
+ at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
166
+
167
+ at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
168
+
169
+ at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
170
+
171
+ at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
172
+
173
+ at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
174
+
175
+ at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
176
+
177
+ at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
178
+
179
+ at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
180
+
181
+ at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:154)
182
+
183
+ at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:134)
184
+
185
+ at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:87)
186
+
187
+ at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
188
+
189
+ at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5128)
190
+
191
+ at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
192
+
193
+ 03-Jan-2021 14:07:32.456 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/apache-tomcat-9.0.38/webapps/pms_web] has finished in [8,589] ms
194
+
195
+ ```
196
+
41
197
 
42
198
 
43
199
  ### 該当のソースコード
@@ -80,28 +236,6 @@
80
236
 
81
237
  ```
82
238
 
83
- **weblogic.xml**
84
-
85
- ```ここに言語を入力
86
-
87
- <?xml version="1.0" encoding="UTF-8"?>
88
-
89
- <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
90
-
91
- <virtual-directory-mapping>
92
-
93
- <local-path>/home/weblogic_sit/nsh-pic</local-path>
94
-
95
- <url-pattern>/*</url-pattern>
96
-
97
- </virtual-directory-mapping>
98
-
99
- <context-root>/</context-root>
100
-
101
- </weblogic-web-app>
102
-
103
- ```
104
-
105
239
 
106
240
 
107
241
  ### 試したこと

3

文言訂正

2021/01/03 14:40

投稿

wangzj
wangzj

スコア53

test CHANGED
@@ -1 +1 @@
1
- サーバー移行Windows>Ubuntu)のTomcat設定
1
+ サーバー(Ubuntu)のTomcat設定
test CHANGED
File without changes

2

文言追加

2021/01/03 14:20

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -115,3 +115,5 @@
115
115
  ### 補足
116
116
 
117
117
  他、何かファイル中身が必要であれば、教えていただければ、追加します。
118
+
119
+ web.xmlの設定に問題あるかと思いますが、Windowsサーバーでちゃんと動いてます。

1

文言追加

2021/01/03 14:14

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -108,7 +108,7 @@
108
108
 
109
109
  1.webappsにexamplesがあります。http://127.0.0.1:8080/examples/をアクセスすると、問題なく画面が表示される
110
110
 
111
- 2.pms_webと同じようなpms_web2を作って、WEB-INFとMETA-INFを削除して、http://127.0.0.1:8080/pms_web2/をアクセスすると、問題なく画面が表示される
111
+ 2.pms_webと同じようなpms_web2を作って、WEB-INFを削除して、http://127.0.0.1:8080/pms_web2/をアクセスすると、問題なく画面が表示される
112
112
 
113
113
 
114
114