Hi,
I am using JAX-WS 2.0. When I run wsgen on an implementation class in
which one of the method has a return type of javax.management.MBeanInfo,
I am seing the following error.
[echo] Invoking WsGen task
[wsgen] error: javax.management.MBeanInfo does not have a no-arg default
constructor
[wsgen] this problem is related to the following location:
[wsgen] at javax.management.MBeanInfo (Unknown Source)
[wsgen] at
com.sun.enterprise.management.agent.ws.jaxws.GetMBeanInfoResponse._return(GetMBeanInfoResponse.java:18)
[wsgen] at
com.sun.enterprise.management.agent.ws.jaxws.GetMBeanInfoResponse(GetMBeanInfoResponse.java:15)
[wsgen] error: javax.management.MBeanInfo does not have a no-arg default
constructor
[wsgen] this problem is related to the following location:
[wsgen] at javax.management.MBeanInfo (Unknown Source)
[wsgen] at
com.sun.enterprise.management.agent.ws.jaxws.GetMBeanInfoResponse._return(GetMBeanInfoResponse.java:18)
[wsgen] at
com.sun.enterprise.management.agent.ws.jaxws.GetMBeanInfoResponse(GetMBeanInfoResponse.java:15)
Is it necessary to have the return type to always have a default
constructor? In this case I dont have control on
javax.management.MBeanInfo class as it is part of JDK? What would be
the workaround in this situation?
Here is the signature of method I have in my interface.
public MBeanInfo getMBeanInfo(String name) throws RemoteException;
Thanks
Prakash