Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13836 Pass the Jakarta EE 9 Platform TCK
  3. WFLY-14024

Problems with jakarta.xml.ws.WebServicePermission during rar deployments during setup of the platform TCK connector tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Security
    • None
    • Undefined
    • ---
    • ---

      Prior to the execution of the connector tests in the platform TCK, a number of rars are deployed. During deployment of whitebox-permissions.rar the following is logged to stderr:

      2020-10-29 15:01:58,627 INFO  [stdout] (MSC service thread 1-2) PermissionDDResourceAdapterImpl:  enterred constructor...
      2020-10-29 15:01:58,627 INFO  [stdout] (MSC service thread 1-2) PermissionDDResourceAdapterImpl:  leaving constructor...
      2020-10-29 15:01:58,627 INFO  [stdout] (MSC service thread 1-2) PermissionDDResourceAdapterImpl:  enterred start
      2020-10-29 15:01:58,628 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  enterred constructor
      2020-10-29 15:01:58,629 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  leaving constructor
      2020-10-29 15:01:58,629 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  enterred runTests
      2020-10-29 15:01:58,629 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateCustomPerm():  CTSPermission1_name permission okay
      2020-10-29 15:01:58,629 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  FAILURE:  ConnectorPermission1_name2 perm missing, throwing AccessControlException.
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) java.security.AccessControlException: access denied ("jakarta.xml.ws.WebServicePermission" "ConnectorPermission1_name2")
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessController.checkPermission(AccessController.java:886)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:339)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessController.doPrivileged(Native Method)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.doCheckPermission(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.validateCustomPermFromAppServer(PermissionDDWorkManager.java:106)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.runTests(PermissionDDWorkManager.java:62)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDResourceAdapterImpl.start(PermissionDDResourceAdapterImpl.java:93)
      2020-10-29 15:01:58,629 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:339)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2012)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$WildFLyRaDeployer.doDeploy(ResourceAdapterDeploymentService.java:233)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:126)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      2020-10-29 15:01:58,630 ERROR [stderr] (MSC service thread 1-2) 	at java.lang.Thread.run(Thread.java:748)
      2020-10-29 15:01:58,630 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateLocalGrantForCustomPerm():  CTSPermission2_name permission property granted AccessControlException.
      2020-10-29 15:01:58,630 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  returning from validateLocalGrantForCustomPerm()
      2020-10-29 15:01:58,630 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.lang.RuntimePermission" "loadLibrary.*")
      2020-10-29 15:01:58,630 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.lang.RuntimePermission" "queuePrintJob")
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.net.SocketPermission" "*" "connect,resolve")
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.io.FilePermission" "*" "read")
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.util.PropertyPermission" "*" "read")
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  SUCCESS:  validateRequiredPermSet passed.
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  returning from validateRequiredPermSet()
      2020-10-29 15:01:58,631 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  SUCCESS:  CTSPermission3_name doesnt exist and was caught.
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) java.security.AccessControlException: access denied ("jakarta.xml.ws.WebServicePermission" "CTSPermission3_name")
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessController.checkPermission(AccessController.java:886)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:339)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at java.security.AccessController.doPrivileged(Native Method)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.doCheckPermission(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,631 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.validateMissingPermFails(PermissionDDWorkManager.java:211)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.runTests(PermissionDDWorkManager.java:65)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDResourceAdapterImpl.start(PermissionDDResourceAdapterImpl.java:93)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:339)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2012)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$WildFLyRaDeployer.doDeploy(ResourceAdapterDeploymentService.java:233)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:126)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      2020-10-29 15:01:58,632 ERROR [stderr] (MSC service thread 1-2) 	at java.lang.Thread.run(Thread.java:748)
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  returning from validateMissingPermFails()
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  SUCCESS:  validateRestrictedLocalPerm() has grant for read of TestPropertyPerm
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  SUCCESS:  validateRestrictedLocalPerm passed.
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  returning from validateRestrictedLocalPerm()
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  CTSPermission_second_name permission property granted AccessControlException.
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  SUCCESS:  validateLocalPermsInvalidName passed.
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  returning from validateLocalPermsInvalidName()
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDWorkManager:  leaving runTests
      2020-10-29 15:01:58,632 INFO  [stdout] (MSC service thread 1-2) PermissionDDResourceAdapterImpl:  leaving start
      2020-10-29 15:01:58,632 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2) IJ020002: Deployed: file:/tmp/tck9/wildfly/ee-9/dist/target/wildfly-22.0.0.Beta1-SNAPSHOT/standalone/tmp/vfs/temp/tempc34e88fef5ecf23e/content-63cfd6864ccc6817/contents/
      2020-10-29 15:01:58,633 INFO  [stdout] (MSC service thread 1-6) PermissionDDResourceAdapterImpl:  enterred constructor...
      2020-10-29 15:01:58,633 INFO  [stdout] (MSC service thread 1-6) PermissionDDResourceAdapterImpl:  leaving constructor...
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDResourceAdapterImpl:  enterred start
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  enterred constructor
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  leaving constructor
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  enterred runTests
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateCustomPerm():  CTSPermission1_name permission okay
      2020-10-29 15:01:58,634 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  FAILURE:  ConnectorPermission1_name2 perm missing, throwing AccessControlException.
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) java.security.AccessControlException: access denied ("jakarta.xml.ws.WebServicePermission" "ConnectorPermission1_name2")
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessController.checkPermission(AccessController.java:886)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:339)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessController.doPrivileged(Native Method)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.doCheckPermission(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.validateCustomPermFromAppServer(PermissionDDWorkManager.java:106)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.runTests(PermissionDDWorkManager.java:62)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDResourceAdapterImpl.start(PermissionDDResourceAdapterImpl.java:93)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:339)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2012)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$WildFlyRaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:190)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:128)
      2020-10-29 15:01:58,634 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      2020-10-29 15:01:58,635 ERROR [stderr] (MSC service thread 1-6) 	at java.lang.Thread.run(Thread.java:748)
      2020-10-29 15:01:58,635 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateLocalGrantForCustomPerm():  CTSPermission2_name permission property granted AccessControlException.
      2020-10-29 15:01:58,635 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  returning from validateLocalGrantForCustomPerm()
      2020-10-29 15:01:58,635 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.lang.RuntimePermission" "loadLibrary.*")
      2020-10-29 15:01:58,635 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.lang.RuntimePermission" "queuePrintJob")
      2020-10-29 15:01:58,635 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.net.SocketPermission" "*" "connect,resolve")
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.io.FilePermission" "*" "read")
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  validateRequiredPermSet():  valid perm for: ("java.util.PropertyPermission" "*" "read")
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  SUCCESS:  validateRequiredPermSet passed.
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  returning from validateRequiredPermSet()
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  SUCCESS:  CTSPermission3_name doesnt exist and was caught.
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) java.security.AccessControlException: access denied ("jakarta.xml.ws.WebServicePermission" "CTSPermission3_name")
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessController.checkPermission(AccessController.java:886)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:339)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessController.doPrivileged(Native Method)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.doCheckPermission(PermissionDDWorkManager.java:337)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.validateMissingPermFails(PermissionDDWorkManager.java:211)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.runTests(PermissionDDWorkManager.java:65)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDResourceAdapterImpl.start(PermissionDDResourceAdapterImpl.java:93)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:339)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2012)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$WildFlyRaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:190)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:128)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      2020-10-29 15:01:58,636 ERROR [stderr] (MSC service thread 1-6) 	at java.lang.Thread.run(Thread.java:748)
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  returning from validateMissingPermFails()
      2020-10-29 15:01:58,636 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  SUCCESS:  validateRestrictedLocalPerm() has grant for read of TestPropertyPerm
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  SUCCESS:  validateRestrictedLocalPerm passed.
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  returning from validateRestrictedLocalPerm()
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  CTSPermission_second_name permission property granted AccessControlException.
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  SUCCESS:  validateLocalPermsInvalidName passed.
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  returning from validateLocalPermsInvalidName()
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDWorkManager:  leaving runTests
      2020-10-29 15:01:58,637 INFO  [stdout] (MSC service thread 1-6) PermissionDDResourceAdapterImpl:  leaving start
      

      Some of those stack traces are associated with "SUCCESS" logging to stdout. I'm focused on the "FAILURE" logging.

      The RAR doesn't include a permissions.xml declaring that permission, nor is it part of the server configuration. The TCK source does have two references to that permission:

      https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/install/connector/bin/server_policy.append#L85

      https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/install/jakartaee/bin/server_policy.append#L80

      I'm not sure how those files are applied. The comment in the middle of one of the methods that logs FAILURE indicates it should be though

      https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/common/connector/whitebox/permissiondd/PermissionDDWorkManager.java#L108

      My assumption is this logging results is associated with a later test failure, but I haven't confirmed it.

      The RAR actually fails to deploy, although the failure isn't clearly connected with the above logging:

      2020-10-29 15:01:58,637 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-6) IJ020002: Deployed: file:/tmp/tck9/wildfly/ee-9/dist/target/wildfly-22.0.0.Beta1-SNAPSHOT/standalone/tmp/vfs/temp/tempc34e88fef5ecf23e/content-63cfd6864ccc6817/contents/
      2020-10-29 15:01:58,637 INFO  [stdout] (ServerService Thread Pool -- 10) PermissionDDResourceAdapterImpl:  entered stop
      2020-10-29 15:01:58,637 INFO  [stdout] (ServerService Thread Pool -- 10) PermissionDDResourceAdapterImpl:  leaving stop
      2020-10-29 15:01:58,637 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 10) MSC000001: Failed to start service jboss.ra.deployment."whitebox-permissiondd.rar": org.jboss.msc.service.StartException in service jboss.ra.deployment."whitebox-permissiondd.rar": WFLYJCA0046: Failed to start RA deployment [whitebox-permissiondd.rar]
      	at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$2.run(AbstractResourceAdapterDeploymentService.java:340) [wildfly-connector-22.0.0.Beta1-SNAPSHOT.jar:22.0.0.Beta1-SNAPSHOT]
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_265]
      	at org.jboss.threads.JBossThread.run(JBossThread.java:513) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.ra.whitebox-permissiondd is already registered
      	at org.jboss.msc.service.ServiceRegistrationImpl.set(ServiceRegistrationImpl.java:135) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:243) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:747) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:260) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2065) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:192) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:140) [wildfly-connector-22.0.0.Beta1-SNAPSHOT.jar:22.0.0.Beta1-SNAPSHOT]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559) [jboss-msc-1.4.12.Final.jar:1.4.12.Final]
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) [jboss-threads-2.4.0.Final.jar:2.4.0.Final]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_265]
      
      2020-10-29 15:01:58,639 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "whitebox-permissiondd.rar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.ra.deployment.\"whitebox-permissiondd.rar\"" => "WFLYJCA0046: Failed to start RA deployment [whitebox-permissiondd.rar]
          Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.ra.whitebox-permissiondd is already registered"}}
      2020-10-29 15:01:58,661 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "whitebox-permissiondd.rar" (runtime-name : "whitebox-permissiondd.rar")
      2020-10-29 15:01:58,661 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
      WFLYCTL0186:   Services which failed to start:      service jboss.ra.deployment."whitebox-permissiondd.rar": WFLYJCA0046: Failed to start RA deployment [whitebox-permissiondd.rar]
            service jboss.ra.deployment."whitebox-mixedmode.rar": WFLYJCA0046: Failed to start RA deployment [whitebox-mixedmode.rar]
      

              Unassigned Unassigned
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: