Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5049

Ensure any java.security.Policy is registered before PolicyConfigurationFactory

    XMLWordPrintable

Details

    Description

      A PolicyConfigurationFactory may want to consult the Policy so ensure it is installed first.

      This comes up within the Jakarta EE TCK where the test PolicyConfigurationFactory consults the underlying registered Policy.

      https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/jacc/provider/TSPolicyConfigurationFactoryImpl.java

      12:11:00,728 ERROR [stderr] (MSC service thread 1-3) java.lang.ClassCastException: org.jboss.modules.ModulesPolicy cannot be cast to com.sun.ts.tests.jacc.provider.TSPolicy
      12:11:00,728 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getTSLogger(TSPolicyConfigurationFactoryImpl.java:229)
      12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getPolicyConfigurationFactory(TSPolicyConfigurationFactoryImpl.java:159)
      12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.<init>(TSPolicyConfigurationFactoryImpl.java:53)
      12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: