Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18621

(7.3.z) Permission check failed when using SecurityManager with IBM JDK

    XMLWordPrintable

Details

    • +
    • Hide

      export JAVA_HOME=/path/ibm-java-x86_64-80
      export JBOSS_HOME=/path/jboss-eap-7.3

      ./integration-tests.sh clean install -Dtest=org/jboss/as/test/integration/ws/basic/PojoEndpointTestCase.java -Dintegration.module -Dts.basic -Dsecurity.manager -Djboss.dist=$JBOSS_HOME

      Show
      export JAVA_HOME=/path/ibm-java-x86_64-80 export JBOSS_HOME=/path/jboss-eap-7.3 ./integration-tests.sh clean install -Dtest=org/jboss/as/test/integration/ws/basic/PojoEndpointTestCase.java -Dintegration.module -Dts.basic -Dsecurity.manager -Djboss.dist=$JBOSS_HOME

    Description

      When using IBM JDK in combination with SecurityManager a Permission check fails for classes using packages com.sun.org.apache.xerces.internal.jaxp

      INFO] Running org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase
      [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.002 s <<< FAILURE! - in org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase
      [ERROR] testHelloError(org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase)  Time elapsed: 0.188 s  <<< FAILURE!
      org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but was:<[Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessClassInPackage.com.sun.org.apache.xerces.internal.jaxp")" in code source "(vfs:/content/jaxws-basic-pojo.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.jaxws-basic-pojo.war" from Service Module Loader")]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:508)
      	at org.junit.runners.model.FrameworkMethod.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              fmarchio@redhat.com Francesco Marchioni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: