java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: bundle://158.0:1/com/sun/tools/xjc/reader/ xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: 無法讀取綱要文件 'xjc.xsd', 因為 accessExternalSchema 屬性設定的限制,所以不允許 'bundle' 存取。
My Operating System : Windows 7I got same problem of this article and the solved with the methods provide in the answers:
JDK version : 8
GlassFish Version: 4
IDE : NetBean IDE 8.0.2
http://stackoverflow.com/questions/23011547/webservice-client-generation-error-with-jdk8
However, what i did is used all of 3 methods shown below and hope this article can be a simple reference.
Method 1 / Step1
Check any update for your GlassFish Software. if any, download it.Method 2 / Step2
Create a file named "jaxp.properties" in your "libs" folder in java jdk installation directory (there is an example path:)C:\Program Files (x86)\Java\jdk1.8.0_51\lib
and then paste the code inside it:
javax.xml.accessExternalSchema = all
Method 3 / Step3
Modify domain.xml in your GlassFish server path :<path>/glassfish/domains/domain1/config/domain.xmland here is my example:
C:\GlassFish4\glassfish\domains\domain1\config\domain.xmlthen add, <jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>under the <java-config> tag
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
No comments :
Post a Comment