error: Duplicate type name with wscompile

From: Vishwajit Pantvaidya <>
Date: Tue, 11 Jan 2005 16:00:35 -0800


I am trying to deploy and consume a webservice using JWSDP1.5. I have been
able to generate the classes from the WSDL. But looking at the 1.2 tutorial,
it seemed that the next step is to generate the model.gz file using the
generated SEI. So I issued the command

wscompile -define -model model.gz .\config-interface.xml

but got the error

error: Duplicate type name "{urn:Foo}ArrayOfBAPIPAREX" for Java type
"websvc.BAPIPAREX[]" found

- The above wscompile command uses the classes generated by wscompile itself
earlier - so why does it give this error?
- Later when I referred to the newer docs, it seems that model.gz generation
may not be required - I just need to create jaxrpc-ri.xml file, bundle it
and other files into a war file and then use wsdeploy.
So do I not need to create model.gz?
- Even in that case, what is the reason for the errors I am getting?



To unsubscribe, e-mail:
For additional commands, e-mail: