::: Zany's Homepage ::: Zany Wiki | »çÀÌÆ® ÅëÇÕ °Ë»ö
 
 
 

wsdl2java, À¥¼­ºñ½º Ŭ¶óÀ̾ðÆ® »ý¼º ¿¡·¯ - Failed to read schema document 'xjc.xsd', because 'file' access is not allowed

°Ô½ÃÆÇ
JAVA
ÀÛ¼ºÀÚ
helix
ÀÛ¼ºÀÏ
2016-05-16 10:59:59
ÀÐÀº¼ö
7077
ÆòÁ¡
   
Ç¥½Ã¿É¼Ç
HTML»ç¿ë | ÀÚµ¿BRűנ| °ø¹é¹®ÀÚÇã¿ë | °¡¿îµ¥Á¤·Ä | °íÁ¤Æø±Û²Ã | ÀÚµ¿URL¸µÅ© | ¸¶¿ì½º¼±ÅÃ
°ü·Ã¸µÅ©01
http://stackoverflow.com/questions/23011547/webservice-client-generation-error-with-jdk8 
°ü·Ã¸µÅ©02
http://cxf.apache.org/docs/wsdl-to-java.html 
¾Æ·¡¿Í °°ÀÌ wsdl2java ¸í·É¾î¸¦ ÅëÇØ wsdl ¿¡ ´ëÀÀÇÏ´Â java code ¸¦ »ý¼ºÇÏ·Á°í ÇÒ ¶§
Failed to read schema document 'xjc.xsd', because 'file' access is not allowed
¿¡·¯ ¸Þ½ÃÁö°¡ Ãâ·ÂµÇ´Â °æ¿ì°¡ ÀÖ´Ù.
$ wsdl2java \
-verbose -client -defaultValues \
-impl -validate \
-encoding UTF-8 \
-fe jaxws21 \
-p stub \
-wsdlLocation http://localhost:8080/services/contentStoreCxf?wsdl \
contentStore.wsdl
»ó¼¼ÇÑ ¿À·ù ¸Þ½ÃÁö´Â ¾Æ·¡¿Í °°´Ù.
¿µ¹®À¸·Î ¿À·ù ³»¿ëÀ» °Ë»öÇÒ ¶§ »ç¿ëÇϱâ À§ÇØ ¿µ¹® ¹öÀüµµ ÷ºÎÇÑ´Ù.
¡Ü ¿À·ù ³»¿ë (ÇѱÛ)
Exception in thread "main" java.lang.AssertionError: org.xml.sax.SAXParseException;
...
Caused by: org.xml.sax.SAXParseException;
systemId: jar:file:/Zany/DevTools/apache-cxf-2.7.18/lib/jaxb-xjc-2.2.6.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd;
lineNumber: 52; columnNumber: 88; schema_reference:
accessExternalSchema ¼Ó¼ºÀ¸·Î ¼³Á¤µÈ Á¦ÇÑÀ¸·Î ÀÎÇØ 'file' ¾×¼¼½º°¡ Çã¿ëµÇÁö ¾ÊÀ¸¹Ç·Î ½ºÅ°¸¶ ¹®¼­ 'xjc.xsd' Àб⸦
½ÇÆÐÇß½À´Ï´Ù.
¡Ü ¿À·ù ³»¿ë (¿µ¹®)
java.lang.AssertionError: org.xml.sax.SAXParseException;
systemId: jar:file:/path/to/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 due to restriction
set by the accessExternalSchema property.
¡Ü JDK Version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


¿ÜºÎ ½ºÅ°¸¶ ¿¢¼¼½º ±ÇÇÑÀÌ ¾ø¾î¼­ ¹ß»ýÇÏ´Â ¹®Á¦·Î, ¸µÅ©µÈ stackoverflow ¿Í Oracle JDK javax.xml.XMLConstants °ø½Ä
¹®¼­¿¡ µû¸£¸é, $JAVA_HOME/lib/jaxp.properties ÆÄÀÏ¿¡(¾øÀ¸¸é ¸¸µé¾î¼­) javax.xml.accessExternalSchema = all
°ú °°ÀÌ ¸í½ÃÇØÁÖ¸é µÈ´Ù°í ÇÔ.

½ÇÁ¦·Î ÇØ´ç properties ÆÄÀÏÀ» ¸¸µé¾î¼­ »ý¼ºÇغ¸´Ï ¹®Á¦¾øÀÌ »ý¼ºµÊ.
$JAVA_HOME/lib/jaxp.properties ¿¡ ³Ö¾î¼­ ¾ÈµÇ¸é,
$JAVA_HOME/jre/lib/jaxp.properties ·Î ¸¸µé¸é µÊ...

 °Ô½ÃÆÇ ±Û ¸ñ·Ï
No Subject Poster Hits Posted
13729 helix 8028 2016-09-27 10:12:57
13724 helix 2393 2016-09-26 17:35:48
13573 helix 8818 2016-07-28 09:49:13
13553 helix 3542 2016-07-25 10:20:44
13379 helix 1714 2016-05-19 10:03:11
helix 7077 2016-05-16 10:59:59
13157 helix 2428 2016-01-19 18:39:12
12975 helix 6552 2015-12-14 13:46:03
11339 helix 4101 2015-04-28 12:44:52
11320 helix 6330 2015-04-27 13:07:56
9771 helix 4545 2014-11-19 08:55:32
´ñ±Û ¸ñ·Ï
    No : | Writer : ¤·¤· | RegDate : 2017-12-08 14:10:35    
¿Í... ¸·¸·Çߴµ¥ ´öÅÿ¡ Àß ÇØ°áÇß½À´Ï´Ù. °¨»çÇÕ´Ï´Ù. 
ÄÚ¸àÆ®
ÀÛ¼ºÀÚ
                       
 
zany.kr
  Copyright ¨Ï 2002-2010 Zany's Programming Lab. All Rights Not Reserved.
temporary This Page loads on 0.000 Secs