Hi all
When I created a web service operation and deploy to the GlassFish v3-Prelude in NetBenas 6.5, WSGEN Failure has occured.
The interface of service operation is below :
@WebMethod(operationName = "putFile")
public PutFileForm putFile(@WebParam(name = "fileName")
final String fileName, @WebParam(name = "file")
final DataHandler file)
The JDK is "Java for Mac OS X 10.4, Release 6".(java 1.5.0_13)
I think that this JDK may be the reason of this problem.
Because, this version is not compatible with JavaSE6.
So, I upgraded the Mac OS X from Tiger to Leopard, and installed the "Java for Mac OS X 10.5 Update 2".
I could resolve this problem.
If you want to use WebParam with javax.activation.DataHandler, need to take care for this matter.
May be I think so.
Thanks
Jack