Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2877

wsdl2java ant task fails to load custom GeneratorFactory from <classpath>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.4.1
    • WSDL processing
    • None

    Description

      The wsdl2java ant task fails to load a custom GeneratorFactory (specified using the "factory" attribute) from the class path specified using a nested <classpath> element. This is caused by the following code in Wsdl2javaAntTask:

      if (factory != null)

      { emitter.setFactory(factory); }

      ...
      if (classpath != null)

      { AntClassLoader cl = new AntClassLoader( getClass().getClassLoader(), getProject(), classpath, false); log("Using CLASSPATH " + cl.getClasspath(), Project.MSG_VERBOSE); ClassUtils.setDefaultClassLoader(cl); }

      Axis attempts to load the custom GeneratorFactory in the Emitter#setFactory method, but the class loader (for the nested <classpath> element) is only set up later.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: