Hi Kristian and Danilo,
i'm experiencing exactly the same problem and i can confirm that it's glassfish related.
In my case I've tried to generate wsdl and xsd from the same classes that cause this behavior with maven, using the jaxws-maven-plugin (goal:wsgen) without any kind of problem.
As suggested here
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=504 by ramapulavarthi, another valid workaround is to annotate each web method in your SLSB with @RequestWrapper,@ResponseWrapper.
In this case Glassfish seem capable to resolve the xml type clash
Best regards,
Domenico
[Message sent by forum member 'domgif' (domgif)]
http://forums.java.net/jive/thread.jspa?messageID=293006