Olá pessoal,
Estou tentando extrair classes java de um modelo XSD, o modelo da ANS para o TISS 3.0.
Normalmente eu faria isso com um comando simples do JAXB, o xjc, mas esta dando erro, tentei fazer varias vezes de formas diferentes, até fiz um download do site da ANS, mas nada.
Eu tentei assim, vejam os erros:
D:\Documents\Raimundo\TISS_3.0\padrao_tiss_comunicacao030001>C:\"Program F
iles"\Java\jdk1.7.0_09\bin\xjc -p br.gov.ans.padroes.tiss.schemas tissV3_00_01.x
sd
parsing a schema...
[WARNING] schema_reference.4: Failed to read schema document 'xmldsig-core-schem
a.xsd', because 1) could not find the document; 2) the document could not be rea
d; 3) the root element of the document is not <xsd:schema>.
line 10 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
[ERROR] src-resolve: Cannot resolve the name 'ds:SignatureType' to a(n) 'type de
finition' component.
line 13 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
Failed to parse a schema.
ou assim:
D:\Documents\Raimundo\TISS_3.0\padrao_tiss_comunicacao030001>C:\"Program F
iles"\Java\jdk1.7.0_09\bin\xjc tissV3_00_01.xsd br.gov.ans.padroes.tiss.schemas
parsing a schema...
[WARNING] schema_reference.4: Failed to read schema document 'xmldsig-core-schem
a.xsd', because 1) could not find the document; 2) the document could not be rea
d; 3) the root element of the document is not <xsd:schema>.
line 10 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
[ERROR] src-resolve: Cannot resolve the name 'ds:SignatureType' to a(n) 'type de
finition' component.
line 13 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
[ERROR] schema_reference.4: Failed to read schema document 'file:/D:/Documents/R
aimundo/TISS_3.0/padrao_tiss_comunicacao030001/br.gov.ans.padroes.tiss.sch
emas', because 1) could not find the document; 2) the document could not be read
; 3) the root element of the document is not <xsd:schema>.
unknown location
Failed to parse a schema.
ou até:
D:\Documents\Raimundo\TISS_3.0\padrao_tiss_comunicacao030001>C:\"Program F
iles"\Java\jdk1.7.0_09\bin\xjc -d D:\ -p br.gov.ans.padroes.tiss.schema tissV3_0
0_01.xsd
parsing a schema...
[WARNING] schema_reference.4: Failed to read schema document 'xmldsig-core-schem
a.xsd', because 1) could not find the document; 2) the document could not be rea
d; 3) the root element of the document is not <xsd:schema>.
line 10 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
[ERROR] src-resolve: Cannot resolve the name 'ds:SignatureType' to a(n) 'type de
finition' component.
line 13 of file:/D:/Documents/Raimundo/TISS_3.0/padrao_tiss_comunicacao0
30001/tissAssinaturaDigital_v1.01.xsd
Failed to parse a schema.
D:\Documents\Raimundo\TISS_3.0\padrao_tiss_comunicacao030001>
alguma ideia pra resolver?
valew pela ajuda.