You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "robert lazarski (JIRA)" <ax...@ws.apache.org> on 2019/02/24 18:46:00 UTC

[jira] [Commented] (AXIS-2877) wsdl2java ant task fails to load custom GeneratorFactory from

    [ https://issues.apache.org/jira/browse/AXIS-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16776357#comment-16776357 ] 

robert lazarski commented on AXIS-2877:
---------------------------------------

[~veithen] I am removing the StockQuoteService as discussed on the Axis mailing lists, for security reasons. 

I am commenting here because one of the files that would need to be tweaked, mentions this Jira in the comments.

See below, the sample.wsdl here is something I was planning on removing, do you want to provide an alternative wsdl or are you ok with removing this build.xml? 

         <wsdl2java url="src/test/wsdl/generatorfactory/sample.wsdl"
                   output="${project.build.directory}/work"
                   factory="org.apache.axis.tools.ant.wsdl.MyGeneratorFactory">
            <classpath>
                <path refid="maven.test.classpath"/>
            </classpath>
        </wsdl2java>

 

 

 

> wsdl2java ant task fails to load custom GeneratorFactory from <classpath>
> -------------------------------------------------------------------------
>
>                 Key: AXIS-2877
>                 URL: https://issues.apache.org/jira/browse/AXIS-2877
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.4.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org