import org.xml.sax.EntityResolver;
import javax.xml.catalog.CatalogFeatures;
import javax.xml.catalog.CatalogManager;
import java.io.File;

public class t1 {
  public static void main(String args[]) throws Exception {
    CatalogFeatures catalogFeatures;
    catalogFeatures = CatalogFeatures.builder()
      .with(CatalogFeatures.Feature.RESOLVE, "continue")
      .build();

    String[] paths = new String[1];
    File file = new File(".");
    String cwd = file.getAbsolutePath();

    paths[0] = "jar:file:"+cwd+"/repro.jar!/META-INF/jax-ws-catalog.xml";
    System.out.println("path="+paths[0]);
    EntityResolver catalogResolver = CatalogManager.catalogResolver(
      catalogFeatures, paths);
  }
}
