--- old/src/share/jaxws_classes/com/sun/tools/internal/xjc/SchemaCache.java 2013-08-20 00:50:42.677796522 +0200 +++ new/src/share/jaxws_classes/com/sun/tools/internal/xjc/SchemaCache.java 2013-08-20 00:50:42.617793866 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,6 +35,8 @@ import javax.xml.XMLConstants; import org.xml.sax.SAXException; +import static com.sun.xml.internal.bind.v2.util.XmlFactory.allowFileAccess; + /** * Wraps a JAXP {@link Schema} object and lazily instantiate it. * @@ -59,7 +61,7 @@ try { // do not disable secure processing - these are well-known schemas SchemaFactory sf = XmlFactory.createSchemaFactory(XMLConstants.W3C_XML_SCHEMA_NS_URI, false); - schema = sf.newSchema(source); + schema = allowFileAccess(sf, false).newSchema(source); } catch (SAXException e) { // we make sure that the schema is correct before we ship. throw new AssertionError(e);