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.

Bug 86396 - Cannot run ws client handler
Summary: Cannot run ws client handler
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-03 17:21 UTC by Roderico Cruz
Modified: 2006-10-06 16:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff file (3.34 KB, text/plain)
2006-10-05 05:00 UTC, Roderico Cruz
Details
diff file (1.94 KB, text/plain)
2006-10-05 05:01 UTC, Roderico Cruz
Details
Diff file (3.39 KB, text/plain)
2006-10-05 05:01 UTC, Roderico Cruz
Details
Diff file (1.02 KB, text/plain)
2006-10-05 05:02 UTC, Roderico Cruz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roderico Cruz 2006-10-03 17:21:07 UTC
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.
Comment 1 Lukas Jungmann 2006-10-04 13:57:58 UTC
Just a note: this needs to be fixed in web, ejb, appclient and j2se project types
Comment 2 Roderico Cruz 2006-10-04 17:45:02 UTC
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. 
Comment 3 Roderico Cruz 2006-10-05 01:54:45 UTC
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.
Comment 4 Roderico Cruz 2006-10-05 05:00:40 UTC
Created attachment 34891 [details]
diff file
Comment 5 Roderico Cruz 2006-10-05 05:01:12 UTC
Created attachment 34892 [details]
diff file
Comment 6 Roderico Cruz 2006-10-05 05:01:41 UTC
Created attachment 34893 [details]
Diff file
Comment 7 Roderico Cruz 2006-10-05 05:02:05 UTC
Created attachment 34894 [details]
Diff file
Comment 8 Milan Kuchtiak 2006-10-05 09:19:34 UTC
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.

Comment 9 Petr Jiricka 2006-10-05 10:15:01 UTC
Adding the 55_HR_FIX keyword.
Comment 10 Lukas Jungmann 2006-10-05 11:50:24 UTC
v. in release55_dev branch. Merge the fix also into the release55 branch,
please. Thanks.
Comment 11 Roderico Cruz 2006-10-05 23:46:09 UTC
Merged in release55 branch.
Comment 12 Lukas Jungmann 2006-10-06 16:33:25 UTC
v. in release55
Comment 13 Lukas Jungmann 2006-10-06 16:47:04 UTC
BTW: I've filed issue 86697 to track an issue in appclient