[jboss-jira] [JBoss JIRA] (WFLY-11815) Wildfly 14, Java.nio.file.AccessDeniedException Issue

Brian Stansberry (Jira) issues at jboss.org
Thu Mar 14 20:28:00 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-11815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFLY-11815:
------------------------------------
    Issue Type: Enhancement  (was: Feature Request)


> Wildfly 14, Java.nio.file.AccessDeniedException Issue
> -----------------------------------------------------
>
>                 Key: WFLY-11815
>                 URL: https://issues.jboss.org/browse/WFLY-11815
>             Project: WildFly
>          Issue Type: Enhancement
>            Reporter: Jijo Nemera
>            Assignee: Brian Stansberry
>            Priority: Major
>
> Wildfly 14
> Java version: Java 8
> relates to: https://developer.jboss.org/message/987731#987731
> I create a custom module for Wildfly configuration and I am having hard time starting service. The issue is when the module is loaded and initialized I get an exception Java.nio.file.AccessDeniedException message. The reason is in the Resource-root directory there are some files(owned by root, with 700 file restriction) which are restricted to other user. I tried to add a filter to skip this file from being red, apparently the filters didn’t work, because the exception is being thrown before the filters are even applied. This class is where the module is loaded and initialized.(https://github.com/jboss-modules/jboss-modules/blob/1.x/src/main/java/org/jboss/modules/ModuleClassLoader.java (line 194) in this method it has the resource root and filter definitions from the XML – it applies the path filter in line 200, unfortunately the exception occurs in line 199 which performs a walk around of the folder tree pointed by the resource root.
> Exception stacktrace from the log file
> -------------------------------------------------
> {code}
> 2019-01-22 12:10:47,293 TRACE [org.jboss.modules] (Thread-2 (ActiveMQ-client-global-threads)) Loading class org.apache.activemq.artemis.service.extensions.xa.recovery.ActiveMQXARecoveryLogger_$logger locally from Module "org.apache.activemq.artemis" version 2.6.3.jbossorg-001 from local module loader @26653222 (finder: local module finder @3532ec19 (roots: /opt/Infor/Wildfly14/modules,/opt/Infor/Wildfly14/modules/system/layers/base,/tspenv1/gen,/tspenv1/law))
> 2019-01-22 12:10:47,294 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "cluster-services.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {
>     "jboss.module.service.\"deployment.cluster-services.ear\".main" => "WFLYSRV0179: Failed to load module: deployment.cluster-services.ear
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf",
>     "jboss.module.service.\"deployment.cluster-services.ear.services-cluster.jar\".main" => "WFLYSRV0179: Failed to load module: deployment.cluster-services.ear.services-cluster.jar
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf"
> }}
> 2019-01-22 12:10:47,295 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "IOS-ws.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {
>     "jboss.module.service.\"deployment.IOS-ws.ear.services-ejb.jar\".main" => "WFLYSRV0179: Failed to load module: deployment.IOS-ws.ear.services-ejb.jar
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf",
>     "jboss.module.service.\"deployment.IOS-ws.ear\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup",
>     "jboss.module.service.\"deployment.IOS-ws.ear.services-ejb3.jar\".main" => "WFLYSRV0179: Failed to load module: deployment.IOS-ws.ear.services-ejb3.jar
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf",
>     "jboss.module.service.\"deployment.IOS-ws.ear.IOS.war\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup"
> }}
> 2019-01-22 12:10:47,296 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "business.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {
>     "jboss.module.service.\"deployment.business.ear.bpm.war\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup",
>     "jboss.module.service.\"deployment.business.ear\".main" => "WFLYSRV0179: Failed to load module: deployment.business.ear
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf"
> }}
> 2019-01-22 12:10:47,298 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "security.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {
>     "jboss.module.service.\"deployment.security.ear\".main" => "WFLYSRV0179: Failed to load module: deployment.security.ear
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf",
>     "jboss.module.service.\"deployment.security.ear.sso.war\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup",
>     "jboss.module.service.\"deployment.security.ear.rmwebapp.war\".main" => "WFLYSRV0179: Failed to load module: deployment.security.ear.rmwebapp.war
>     Caused by: org.jboss.modules.ModuleNotFoundException: system.module:lsf",
>     "jboss.module.service.\"deployment.security.ear.scwebapp.war\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup",
>     "jboss.module.service.\"deployment.security.ear.ssoconfig.war\".main" => "Failed to start service
>     Caused by: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup
>     Caused by: java.nio.file.AccessDeniedException: /tspenv1/law/system/module/lsf/../../backup"
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list