Bom dia Pessoal,
Estou gerando as classes stub responsáveis para criação do XML com o utilitário xjc, bem gerei quase todas as classes menos a de consulta da Situação Atual do CTe (consSitCte_v1.01.xsd) , segue abaixo comando e erro:
xjc -d W:\ -p br.com.schema.situacao consSitCteTiposBasico_v1.01.xsd consSitCte_v1.01.xsd
Erro:
parsing a schema...
[ERROR] 'TCodUfIBGE' is already defined
line 37 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 3 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TCodMunIBGE' is already defined
line 45 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 37 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TChNFe' is already defined
line 53 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 45 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TProt' is already defined
line 61 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 53 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TRec' is already defined
line 69 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 61 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TStat' is already defined
line 77 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] 'TMed' is already defined
line 387 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 379 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TString' is already defined
line 396 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 387 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TData' is already defined
line 405 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCte_v1.02.xsd
[ERROR] (related to above error) the first definition appears here
line 396 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/tiposBasicoCTe_v1.02.xsd
[ERROR] 'TConsSitCTe' is already defined
line 33 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCTeTiposBasico_v1.01.xsd
[ERROR] (related to above error) the first definition appears here
line 8 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCteTiposBasico_v1.01.xsd
[ERROR] 'TRetConsSitCTe' is already defined
line 72 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCTeTiposBasico_v1.01.xsd
[ERROR] (related to above error) the first definition appears here
line 33 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCteTiposBasico_v1.01.xsd
[ERROR] 'TVerConsSitCTe' is already defined
line 80 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCTeTiposBasico_v1.01.xsd
[ERROR] (related to above error) the first definition appears here
line 72 of file:/C:/Arquivos%20de%20programas/Java/jdk1.6.0_07/bin/consSitCteTiposBasico_v1.01.xsd
Failed to parse a schema.
Tentei gerar a partir do eclipse com o plugin JAXB mas o erro continua.
Alguém ja passou por isso?
Grato
[ ]'s