WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "com.ibm.msg.client.commonservices.trace.startup" "read")"

Solution Verified - Updated -

Issue

The following exception can be seen in EAP server log when deploying IBM WMQ Resource Adapter:

14:31:05,970 ERROR [stderr] (MSC service thread 1-4) Failed to query system property java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "com.ibm.msg.client.commonservices.trace.startup" "read")" in code source "(vfs:/content/wmq.jmsra.rar/com.ibm.msg.client.commonservices.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.wmq.jmsra.rar" from Service Module Loader")
14:31:06,016 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 84) MSC000001: Failed to start service jboss.ra.deployer."wmq.jmsra.rar": org.jboss.msc.service.StartException in service jboss.ra.deployer."wmq.jmsra.rar": WFLYJCA0046: Failed to start RA deployment [wmq.jmsra.rar]
    at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$1.run(ResourceAdapterDeploymentService.java:176)
    at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
    at java.lang.Thread.run(Thread.java:748)
    at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/work/redhat/applications/jboss-apps/eap-7/current/jboss-as/standalone-wmq-ra/tmp/vfs/temp/temp3c56d6dd97e1803/content-2774a07a5a503a2f/contents/
    at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2064)
    at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$WildFLyRaDeployer.doDeploy(ResourceAdapterDeploymentService.java:233)
    at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:126)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
    at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
    at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ExceptionInInitializerError
    at com.ibm.mq.connector.ResourceAdapterImpl.<clinit>(ResourceAdapterImpl.java:177)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.jboss.jca.validator.ValidateClass.<init>(ValidateClass.java:88)
    at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1234)
    ... 10 more
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "traceEnabled" "read")" in code source "(vfs:/content/wmq.jmsra.rar/com.ibm.mq.connector.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.wmq.jmsra.rar" from Service Module Loader")
    at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:304)
    at org.wildfly.security.manager.WildFlySecurityManager.checkPropertyAccess(WildFlySecurityManager.java:488)
    at java.lang.System.getProperty(System.java:719)
    at com.ibm.mq.connector.services.JCATraceAdapter$1.run(JCATraceAdapter.java:141)
    at com.ibm.mq.connector.services.JCATraceAdapter$1.run(JCATraceAdapter.java:140)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.ibm.mq.connector.services.JCATraceAdapter.<clinit>(JCATraceAdapter.java:138)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In