Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Java EE (J2EE) и Spring > Не запускается пример SOAP


Автор: barin_Student 29.8.2014, 08:53
Добрый день!
Делаю согласно обучалке:
https://netbeans.org/kb/docs/websvc/jax-ws.html .

Запускаю проверку web сервиса и получаю exception:

schema_reference: Failed to read schema document 'CalculatorWS?xsd=1', because 'http' access is not allowed due to restriction set by the accessExternalSchema property.

Сразу нарываюсь на обсосанный баг:
http://wiki.netbeans.org/FaqWSDLExternalSchema

Дык без проблем добавляю, даже в два места:
1)netbeans.conf
Код

netbeans_default_options=" -J-Djavax.xml.accessExternalSchema=all -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"


После перезапуска netbeans ситуация не измениалсь, тогда добавил и сюда:

2)GLASSFISH_INSTALL/glassfish/domains/domain1/config/domain.xml) and add the following JVM option element. You will need to restart the server for the change to take effect.

</java-config>
  ...
  <jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
</java-config>

Итог, exception остался, сервис не запускается, подскажите в чем проблема?:
Код

Info:   [WARNING] schema_reference: Failed to read schema document 'CalculatorWS?xsd=1', because 'http' access is not allowed due to restriction set by the accessExternalSchema property.
Info:   line 4 of http://localhost:8080/CalculatorWS/CalculatorWS?WSDL#types?schema1
Severe:   service exception:
java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: bundle://218.0:1/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'bundle' access is not allowed due to restriction set by the accessExternalSchema property. 
    at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
    at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:237)
    at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:541)

Спасибо.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)