axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4635) extraClasses are not used for generating WSDL in the Java2WSDLTask
Date Mon, 01 Mar 2010 21:30:05 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen resolved AXIS2-4635.
------------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.5.1)
                   1.6
         Assignee: Andreas Veithen

Duplicate of AXIS2-4382.

> extraClasses are not used for generating WSDL in the Java2WSDLTask
> ------------------------------------------------------------------
>
>                 Key: AXIS2-4635
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4635
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.1
>         Environment: OpenSuse 11.2, JDK1.6.0
>            Reporter: Vy Ho
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>         Attachments: DefaultSchemaGenerator.diff
>
>
> This attribute is not used to generate the schema for class type definition other than
the org.apache.axis2.jaxbri.JaxbSchemaGenerator
> In this class, line 72 to 76, there are code for doing that (method generateSchemaForParameters):
>         if (extraClasses != null) {
>             for (Object extraClass : extraClasses) {
>                 classes.add(Loader.loadClass(classLoader, (String) extraClass));
>             }
>         }
> To temporary fix this issue, I added the following code into org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.java
>         if (extraClasses != null) {
>             for (Object extraClass : extraClasses) {
>                 Class clazz = classLoader.loadClass((String) extraClass);
>                 generateSchema(clazz);
>             }
>         }
> Please the attached diff.  Since I am not familiar with the code, this may not be the
right fix, but it's a start.  I also tested and it appears to work for my case.
> The option is document and literal (not bare).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message