何が起こっているのかなんて考えています。私はインターネットを検索しましたが、windfly/jboss 10サーバーでwarファイルを実行しているときにこの種のエラーを見つけることができませんでしたJbossアプリケーションが実行中(warファイル)にエラーが発生しました。私はwindfly/jboss 10版を使用しています
私はMaven pomファイルビルドを使用しています。 .................................................. .................................................. .................................................. .......... 最後にコンソールにエラーが表示される WFLYCTL0186:サービスを開始できませんでした:サービスjboss.undertow.deployment.default-server.default-host./smsc2
15:56:02,168 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./smsc2: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./smsc2: javax.servlet.ServletException: No resources
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: javax.servlet.ServletException: No resources
at org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:338)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:250)
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:546)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:517)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:559)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
Caused by: javax.naming.NameNotFoundException: comp/Resources -- service jboss.naming.context.java.comp.Resources
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:106)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)
at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:333)
... 24 more
15:56:02,180 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "smsc2.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./smsc2" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./smsc2: javax.servlet.ServletException: No resources
Caused by: javax.servlet.ServletException: No resources
Caused by: javax.naming.NameNotFoundException: comp/Resources -- service jboss.naming.context.java.comp.Resources"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./smsc2"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
15:56:02,271 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0
で私のwarファイルに展開されていないリソースファイル(jndi.properties .....設定XMLSなど)を見逃していた固定されています。 /私のプロジェクトのリソースは、リソースに関連するものを見つけることができませんでした – Shad