Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169314

Service.<init> fails with SecurityException, java.xml.ws not granted permission to access system catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 9
    • 9
    • xml

      As reported here:
      http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-November/005171.html

      The use JAX-WS implementation uses the JAXP CatalogManager API to get the system catalog but it has insufficient permissions to this this and so fails. This code is currently being changed to use the new XML Catalog API and so testing should be done with a security manager to see if the same issue arises.

      Note that this issue could potentially be a JAXP issue, maybe the JAXP code is missing a doPrivileged block to obtain the system catalog without needing the caller to have the permissions. Also note that this is a regression in JDK 9, the issue does not happen with JDK 8.

            aefimov Aleksej Efimov
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: