This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Handlers that are configured in web service clients fail to run. The cause is that the generated handler configuration file is not added to the deployed archive. This was a regression when we changed the destdir of the wsimport invovation from ${build.classes.dir.real} to ${{build.generated.dir}}/wsimport/binaries. The client will build and deploy properly, but will not run successfully. The fix is to add a <copy> directive after the wsimport invocation in the build-impl.xml of the module, as follows: <copy todir="${{build.classes.dir.real}}" <fileset dir="${{build.generated.dir}}/wsimport/binaries"includes="**/*.xml"/ </copy> I believe this is a showstopper. The fix is straightforward and low-risk.
Just a note: this needs to be fixed in web, ejb, appclient and j2se project types
Yes thanks. Also, there is a bug in the JSR 109 implementation, in the appclient. If the client program uses resource injection to instantiate the Service, the HandlerChain annotation in the Service class is ignored at runtime. The user will have to perform one additional step, i.e. add the annotation into his/her program. We will have to document this.
Fixed by adding a copy directive after the wsimport invocation to copy the generated handler configuration files to the archive. This fix was applied to the web, jse, ejb, and appclient projects. Diffs are attached.
Created attachment 34891 [details] diff file
Created attachment 34892 [details] diff file
Created attachment 34893 [details] Diff file
Created attachment 34894 [details] Diff file
The fixes looks correct. The copying of xml files to {build.classes.dir.real} is performed only when wsimport task is performed. That's correct.
Adding the 55_HR_FIX keyword.
v. in release55_dev branch. Merge the fix also into the release55 branch, please. Thanks.
Merged in release55 branch.
v. in release55
BTW: I've filed issue 86697 to track an issue in appclient