Troubles Deploying to JBOSS EAP 6.4.6 with Spring Application
ricemagician Nov 4, 2016 2:19 PMHi, I'm currently having troubles deploying my war to a JBOSS environment, currently running JBOSS 6.4.6. I haven't been able to find much relating to the errors I've been encountering in these forums or stackoverflow. The application runs smoothly through Tomcat, but I've not been able to get it properly working on JBOSS. As part of the war, I have a jboss-deployment-structure.xml as follows, as I ran into some issues with versioning conflicts:
<jboss-deployment-structure> <deployment> <exclusions> <module name="org.hibernate" /> <module name="org.jboss.logging" /> </exclusions> </deployment> </jboss-deployment-structure>
My suspicion is that it might be concerning security settings on the JBOSS configuration, but I haven't been able to identify the cause. I've posted by error log below.
2016-11-04 12:41:40,843 INFO [org.jboss.as.repository] (HttpManagementService-threads - 31) JBAS014901: Content removed from location /tech/appl/excel9/jb_apps/qa-excelerator/qa-excelerator_s01/data/content/6f/5e0df34781e2872b736f168a41334b5f44364a/content
2016-11-04 12:42:18,078 INFO [org.jboss.as.repository] (HttpManagementService-threads - 31) JBAS014900: Content added at location /tech/appl/excel9/jb_apps/qa-excelerator/qa-excelerator_s01/data/content/b4/249fb20d90564db9f87f94163d5327a7715018/content
2016-11-04 12:42:38,997 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "Webapp.war" (runtime-name: "Webapp.war")
2016-11-04 12:42:41,481 WARN [org.jboss.as.ee] (MSC service thread 1-7) JBAS011006: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause)
2016-11-04 12:42:41,481 WARN [org.jboss.as.ee] (MSC service thread 1-7) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)
2016-11-04 12:42:41,492 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2016-11-04 12:42:41,492 WARN [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016012: Deployment deployment "Webapp.war" contains CDI annotations but beans.xml was not found.
2016-11-04 12:42:41,517 INFO [org.jboss.web] (ServerService Thread Pool -- 466) JBAS018210: Register web context: /Webapp
2016-11-04 12:42:41,525 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Webapp]] (ServerService Thread Pool -- 466) 2 Spring WebApplicationInitializers detected on classpath
2016-11-04 12:42:41,577 ERROR [org.jboss.web] (ServerService Thread Pool -- 466) JBAS018202: Error calling onStartup for servlet container initializer: org.springframework.web.SpringServletContainerInitializer: java.security.AccessControlException: access denied ("org.jboss.vfs.VirtualFilePermission" "/content/Webapp.war/WEB-INF/lib/spring-boot-1.4.0.RELEASE.jar/META-INF/spring.factories" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) [rt.jar:1.8.0_71]
at java.security.AccessController.checkPermission(AccessController.java:884) [rt.jar:1.8.0_71]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) [rt.jar:1.8.0_71]
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:248) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]
at org.jboss.vfs.protocol.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:62) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]
at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:169) [spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:132) [spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:121) [spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames(SpringFactoriesLoader.java:117) [spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:400) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:392) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:261) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:237) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.createSpringApplication(SpringApplicationBuilder.java:99) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.<init>(SpringApplicationBuilder.java:87) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.web.support.SpringBootServletInitializer.createSpringApplicationBuilder(SpringBootServletInitializer.java:141) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:105) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169) [spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.jboss.as.web.deployment.JBossContextConfig.lifecycleEvent(JBossContextConfig.java:187) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [jbossweb-7.5.12.Final-redhat-1.jar:7.5.12.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3775) [jbossweb-7.5.12.Final-redhat-1.jar:7.5.12.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_71]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
2016-11-04 12:42:41,590 ERROR [org.jboss.web] (ServerService Thread Pool -- 466) JBAS018206: Webapp [/Webapp] is unavailable due to startup errors
2016-11-04 12:42:41,590 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 466) JBWEB001103: Error detected during context /Webapp start, will stop it
2016-11-04 12:42:41,591 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 466) MSC000001: Failed to start service jboss.web.deployment.default-host./Webapp: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Webapp: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_71]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:168)
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61)
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
... 6 more
2016-11-04 12:42:41,593 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 31) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "Webapp.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Webapp" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Webapp: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}
2016-11-04 12:42:41,598 ERROR [org.jboss.as.server] (HttpManagementService-threads - 31) JBAS015870: Deploy of deployment "Webapp.war" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Webapp" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Webapp: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}
2016-11-04 12:42:41,661 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment Webapp.war (runtime-name: Webapp.war) in 62ms
2016-11-04 12:42:41,661 INFO [org.jboss.as.controller] (HttpManagementService-threads - 31) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./Webapp
Any feedback would be greatly appreciated. Thank you.