Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
solaris_10
Description
FULL PRODUCT VERSION :
java version " 1.8.0-ea "
Java(TM) SE Runtime Environment (build 1.8.0-ea-b94)
Java HotSpot(TM) Client VM (build 25.0-b36, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
SunOS mrbean 5.10 Generic_118833-36 sun4u sparc SUNW,A70
A DESCRIPTION OF THE PROBLEM :
Getting 'file' access is not allowed when building jaxws test. Looks like it is not allowing file:// access. Here is the build output:
/export/home/mrbean/files/svn-spider/bin/xml/../../src/com/sun/ts/tests/jaxws/ee/w2j/document/literal/head
ertest/WSW2JDLHeaderTestService.wsdl -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/
w2j/document/literal/headertest/customfile.xml -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests
/jaxws/ee/w2j/document/literal/headertest/customfile2.xml -wsdllocation @wsdlLocation@
[wsimport] parsing WSDL...
[wsimport]
[wsimport]
[wsimport] [WARNING] schema_reference: Failed to read schema document 'WSW2JDLHeaderTestDefs.xsd', because
'file' access is not allowed.
[wsimport] line 14 of file:/export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/w2j/docume
nt/literal/headertest/WSW2JDLHeaderTestDefs.wsdl#types?schema1
[wsimport]
[wsimport] Exception in thread " main " java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: j
ar:file:/export/home/sun/glassfish4/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bin
dinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.
xsd', because 'file' access is not allowed.
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement
(AnnotationParserFactoryImpl.java:118)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:253)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:108)
[wsimport] at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.ja
va:150)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(Inco
rrectNamespaceURIChecker.java:128)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(Custo
mizationContextChecker.java:193)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.startElement(DOM
ForestScanner.java:147)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:244)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
[wsimport] at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258)
[wsimport] at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85)
[wsimport] at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:183)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(Customi
zationContextChecker.java:199)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMFo
restScanner.java:140)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
[wsimport] at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
[wsimport] at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
[wsimport] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:168)
[wsimport] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:157)
[wsimport] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:534)
[wsimport] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:269)
[wsimport] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:95)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:142)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2298
)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:
198)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:141)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:444)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
[wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[wsimport] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[wsimport] at java.lang.reflect.Method.invoke(Method.java:491)
[wsimport] at com.sun.tools.ws.Invoker.invoke(Invoker.java:174)
[wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:57)
[wsimport] Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/export/home/sun/glassfish4/glassf
ish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnN
umber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed
.
[wsimport] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Erro
rHandlerWrapper.java:203)
[wsimport] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapp
er.java:177)
[wsimport] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
va:441)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHand
ler.java:4148)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaFatalError(
XSDHandler.java:4127)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHa
ndler.java:2167)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchema(XSDHandle
r.java:2077)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandl
er.java:1007)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.
java:619)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.ja
va:615)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.j
ava:573)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.j
ava:539)
[wsimport] at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaF
actory.java:255)
[wsimport] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:631)
[wsimport] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:663)
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:77)
[wsimport] ... 63 more
BUILD FAILED
REGRESSION. Last worked in version 7u21
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Try building a jaxws test using GlassFish 4.0 and JDK8 that contains a local WSDL file. Notice below that is complains xjc.xsd which is in GlassFish. It doesn't allow file access. That is is the BUG.
/WSW2JDLHttpTestService.wsdl -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/w2j/document/literal/httptest/customfile.xml -wsdllocation @wsdlLocation@
[wsimport] parsing WSDL...
[wsimport]
[wsimport]
[wsimport] Exception in thread " main " java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/export/home/sun/glassfish4/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed.
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement(AnnotationParserFactoryImpl.java:118)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:253)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:108)
[wsimport] at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.j
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I work for Oracle and included my email address. It would be great if someone can get back to me to let me know when this is FIXED as I cannot test JAXWS with JDK8 under GlassFish4.0 because I cannot build it.
REPRODUCIBILITY :
This bug can be reproduced always.
SUPPORT :
YES
java version " 1.8.0-ea "
Java(TM) SE Runtime Environment (build 1.8.0-ea-b94)
Java HotSpot(TM) Client VM (build 25.0-b36, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
SunOS mrbean 5.10 Generic_118833-36 sun4u sparc SUNW,A70
A DESCRIPTION OF THE PROBLEM :
Getting 'file' access is not allowed when building jaxws test. Looks like it is not allowing file:// access. Here is the build output:
/export/home/mrbean/files/svn-spider/bin/xml/../../src/com/sun/ts/tests/jaxws/ee/w2j/document/literal/head
ertest/WSW2JDLHeaderTestService.wsdl -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/
w2j/document/literal/headertest/customfile.xml -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests
/jaxws/ee/w2j/document/literal/headertest/customfile2.xml -wsdllocation @wsdlLocation@
[wsimport] parsing WSDL...
[wsimport]
[wsimport]
[wsimport] [WARNING] schema_reference: Failed to read schema document 'WSW2JDLHeaderTestDefs.xsd', because
'file' access is not allowed.
[wsimport] line 14 of file:/export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/w2j/docume
nt/literal/headertest/WSW2JDLHeaderTestDefs.wsdl#types?schema1
[wsimport]
[wsimport] Exception in thread " main " java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: j
ar:file:/export/home/sun/glassfish4/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bin
dinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.
xsd', because 'file' access is not allowed.
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement
(AnnotationParserFactoryImpl.java:118)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:253)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:108)
[wsimport] at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.ja
va:150)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(Inco
rrectNamespaceURIChecker.java:128)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(Custo
mizationContextChecker.java:193)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.startElement(DOM
ForestScanner.java:147)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:244)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
[wsimport] at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258)
[wsimport] at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85)
[wsimport] at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:183)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(Customi
zationContextChecker.java:199)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMFo
restScanner.java:140)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
[wsimport] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
[wsimport] at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
[wsimport] at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:269)
[wsimport] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
[wsimport] at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
[wsimport] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:168)
[wsimport] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:157)
[wsimport] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:534)
[wsimport] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:269)
[wsimport] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:95)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:142)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2298
)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:
198)
[wsimport] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:141)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:444)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
[wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
[wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[wsimport] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[wsimport] at java.lang.reflect.Method.invoke(Method.java:491)
[wsimport] at com.sun.tools.ws.Invoker.invoke(Invoker.java:174)
[wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:57)
[wsimport] Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/export/home/sun/glassfish4/glassf
ish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnN
umber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed
.
[wsimport] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Erro
rHandlerWrapper.java:203)
[wsimport] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapp
er.java:177)
[wsimport] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
va:441)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHand
ler.java:4148)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaFatalError(
XSDHandler.java:4127)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHa
ndler.java:2167)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchema(XSDHandle
r.java:2077)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandl
er.java:1007)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.
java:619)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.ja
va:615)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.j
ava:573)
[wsimport] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.j
ava:539)
[wsimport] at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaF
actory.java:255)
[wsimport] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:631)
[wsimport] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:663)
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:77)
[wsimport] ... 63 more
BUILD FAILED
REGRESSION. Last worked in version 7u21
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Try building a jaxws test using GlassFish 4.0 and JDK8 that contains a local WSDL file. Notice below that is complains xjc.xsd which is in GlassFish. It doesn't allow file access. That is is the BUG.
/WSW2JDLHttpTestService.wsdl -b /export/home/mrbean/files/svn-spider/src/com/sun/ts/tests/jaxws/ee/w2j/document/literal/httptest/customfile.xml -wsdllocation @wsdlLocation@
[wsimport] parsing WSDL...
[wsimport]
[wsimport]
[wsimport] Exception in thread " main " java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/export/home/sun/glassfish4/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed.
[wsimport] at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
[wsimport] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement(AnnotationParserFactoryImpl.java:118)
[wsimport] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:253)
[wsimport] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
[wsimport] at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:108)
[wsimport] at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.j
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I work for Oracle and included my email address. It would be great if someone can get back to me to let me know when this is FIXED as I cannot test JAXWS with JDK8 under GlassFish4.0 because I cannot build it.
REPRODUCIBILITY :
This bug can be reproduced always.
SUPPORT :
YES
Attachments
Issue Links
- duplicates
-
JDK-8016450 Adapt to JAXP 1.5 changes in JAXWS/JAXB code to keep backwards compatibility
-
- Closed
-