2 Replies Latest reply on Apr 29, 2006 1:28 PM by Thomas Diesler

    wstools: Duplicate namspace binding error?

    Brian Call Newbie

      Hi WS Gurus,

      I'm trying to generate the artifacts for a very simple webservice interface and I'm seeing some odd behavior from wstools. It appears to be trying to create two namespaces under the same name.

      I've been using wstools to generate aritfacts for several days now with great success. Only now that I made what *seemed* to be a fairly innocuous change to my interface did this problem manifest itself. I remove the custom exceptions from the interface methods. Big change, huh?

      Here's the error and stack:

      [wstools] [Fatal Error] :1:420: Attribute "ns1" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "definitions".
      [wstools] org.jboss.ws.WSException: Cannot generate wsdl from: interface com.ghx.console.server.tjvm.ws.AggregateTjvmDataServiceIF
      [wstools] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:339)
      [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:132)
      [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:119)
      [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:109)
      [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
      [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)

      I'm generating everything from scratch each time I run a build for our project so I'm not sure why it is complaining that somthing already exists.

      Any thoughts? I've never seen this one before. Thanks in advance,

      Brian