https://jax-ws.dev.java.net/issues/show_bug.cgi?id=588 Issue #|588
Summary|Generate incorrect metadata for user defined exception
| if it do not have instance attribute defined
Component|jax-ws
Version|2.1.4
Platform|All
OS/Version|Windows XP
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P1
Subcomponent|wsgen
Assigned to|issues@jax-ws
Reported by|xliu
------- Additional comments from
xliu@... Wed Jun 25 17:44:47 +0000 2008 -------
The wsgen version 2.1.3/2.1.4 can not generate the correct metadata for user
defined exception if it does not have instance attribute. For example
public class UserException extends Exception {
private static final long serialVersionUID = 1L;
public UserException() {super();}
public UserException(final String msg, final Throwable cause)
{super(msg,cause);}
public UserException(final String msg) { super(msg);}
public UserException(final Throwable cause) { super(cause); }
}
Instead generate the following metadata:
@XmlRootElement(name = "NotificationException", namespace =
"
http://service.notification.westernasset.com/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationException", namespace =
"
http://service.notification.westernasset.com/", propOrder = {
"message"
})
public class UserExceptionBean {...}
It generate the following:
@XmlRootElement(name = "NotificationException", namespace =
"
http://service.notification.westernasset.com/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationException", namespace =
"
http://service.notification.westernasset.com/")
public class NotificationExceptionBean {...}
It cause the issue during the server startup (on JBOSS4.2.2.GA and native ms
version 3.0.2.GA).
Please help, Thanks.
Louie
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...