[
https://issues.apache.org/jira/browse/AXIS2-5276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236513#comment-13236513
]
Jose L Martinez-Avial commented on AXIS2-5276:
----------------------------------------------
That's weird. I just run the following command on windows, and I got the same
faulty class.
C:\axis2-1.6.1\bin>wsdl2java -u -uri C:\TEMP\TEST.WSDL
Using AXIS2_HOME: C:\axis2-1.6.1
Using JAVA_HOME: C:\Java\jdk1.6.0_27
Retrieving document at 'C:\TEMP\TEST.WSDL'.
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
C:\axis2-1.6.1\bin>
/**
* AdminServiceException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.1 Built on : Aug 31, 2011 (12:23:23 CEST)
*/
package com.rsa.csd.ws.admin;
/**
* AdminServiceException bean class
*/
@SuppressWarnings({"unchecked","unused"})
public class AdminServiceException
implements org.apache.axis2.databinding.ADBBean{
/* This type was generated from the piece of schema that had
name = AdminServiceException
Namespace URI = http://admin.ws.csd.rsa.com
Namespace Prefix = ns1
*/
> Exception class created using WSDL2Java with unpackclasses does not extend
> java.lang.Exception
> ----------------------------------------------------------------------------------------------
>
> Key: AXIS2-5276
> URL: https://issues.apache.org/jira/browse/AXIS2-5276
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.6.1, nightly
> Reporter: Jose L Martinez-Avial
> Assignee: Sagara Gunathunga
> Attachments: test.wsdl
>
>
> The attached WSDL includes a customized Exception(AdminServiceException).
> When the client code is generated for that WSDL using WSDL2Java, using the
> option to unpack the classes, the class AdminServiceException does not extend
> from java.lang.Exception, so the methods on the Service and Stub, which
> throws that exception, can't be compiled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]