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 99241 - Cannot create WS client against MS wsdls
Summary: Cannot create WS client against MS wsdls
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:
Depends on:
Blocks:
 
Reported: 2007-03-28 13:26 UTC by Martin Grebac
Modified: 2007-04-13 02:14 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (7.51 KB, patch)
2007-03-28 15:38 UTC, Martin Grebac
Details | Diff
New jax-ws binaries (to be placed to websvc/external) (5.89 MB, application/octet-stream)
2007-03-28 15:41 UTC, Martin Grebac
Details
Final patch for 551 (2.29 KB, patch)
2007-03-30 15:07 UTC, Martin Grebac
Details | Diff
Final patch for 551 - part2 (2.04 KB, patch)
2007-03-30 16:29 UTC, Martin Grebac
Details | Diff
Diff file for build-impl.xsl of the J2SE project (326 bytes, text/plain)
2007-04-06 07:15 UTC, Roderico Cruz
Details
New diff file for build-impl.xsl for web project (1.31 KB, text/plain)
2007-04-12 14:11 UTC, Roderico Cruz
Details
New diff file for build-impl.xsl for j2se project (539 bytes, text/plain)
2007-04-12 14:13 UTC, Roderico Cruz
Details
Error dialog (17.49 KB, image/png)
2007-04-12 17:18 UTC, Jaroslav Pospisil
Details
Diff file for build-impl.xsl of the J2EE app client project (825 bytes, text/plain)
2007-04-12 18:50 UTC, Roderico Cruz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2007-03-28 13:26:44 UTC
Try to create client against simple MS based wsdl:
http://wssc.india.sun.com/BankOrder/bankorder.svc?wsdl

It fails and requires real complicated intervention to make it working. There
are several issues:

 One problem is in JAX-WS which is not considering catalog files to detect
recursive imports (which is what MS does). This was tracked as 274 and is
supposed to be fixed in jax-ws:
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=274

 Other problem is that NetBeans points wsimport in build-impl.xml to local file
in the wsdl parameter.

 So, there are two fixes required for this:

 1. Update bundled JAX-WS libraries to latest with the fix included (so that the
client is represented in UI correctly)
 2. Fix 'wsdl' parameter given to the wsimport task for client to point to
http:// external url, not to downloaded files - in all projects
Comment 1 Martin Grebac 2007-03-28 15:38:58 UTC
Created attachment 40088 [details]
Patch
Comment 2 Martin Grebac 2007-03-28 15:41:14 UTC
Created attachment 40089 [details]
New jax-ws binaries (to be placed to websvc/external)
Comment 3 Martin Grebac 2007-03-29 16:43:26 UTC
Well, ignore the patch - with the jaxws fix, this change shouldn't be required.
This needs more investigation as command line seems to work fine, the only case
when it fails is when invoked via NB.
Comment 4 Martin Grebac 2007-03-29 20:15:12 UTC
It's finally fixed in jax-ws 2.1 hudson build #1998. 

So, basically what is required is:

- update the jars in netbeans 
- fix j2seproject to use 'external' option for wsimport

I'd really really really vote for this to get to 5.5.1
Comment 5 Roderico Cruz 2007-03-29 20:42:12 UTC
Ccing Milan, Petr Blaha and Petr Jiricka...
Comment 6 Petr Jiricka 2007-03-30 08:27:17 UTC
We can not use a non-FCS version of JAX-WS in the product.

BTW, what version do we use now? From java.net it sounds like JAX-WS 2.0 is the
latest FCS version of JAX-WS currently available: https://jax-ws.dev.java.net/2.1/
Comment 7 Martin Grebac 2007-03-30 08:35:23 UTC
 Agreed. We should find out what is the next FCS date for JAX-WS.

 We should however make sure we do deliver updates so that we are able to fix
high priority bugs in timely manner. 
I'd suggest to have a way to provide update of JAX-WS bundled libraries and
place them to beta/alpha whatever update centers, or start building these NB
library modules directly with JAX-WS builds at java.net.
 
 Or at least, document how to do it manually.
Comment 8 Milan Kuchtiak 2007-03-30 09:08:49 UTC
We use JAX-WS2.1 final release (2007/02/02) in Netbeans5.5.1.

Comment 9 Martin Grebac 2007-03-30 15:07:24 UTC
Created attachment 40194 [details]
Final patch for 551
Comment 10 Martin Grebac 2007-03-30 15:11:42 UTC
OK, I attached a patch with changes required for NB. The rest is replacing the
jax-ws libraries. It's just a matter of decision what to do with it. I think we
could get at least the NB part of the fix into release. It's trivial and isolated.
Comment 11 Martin Grebac 2007-03-30 16:29:11 UTC
Created attachment 40201 [details]
Final patch for 551 - part2
Comment 12 Srividhya Narayanan 2007-03-30 18:27:59 UTC
JAX-WS 2.1 is targetted for Appserver 9.1 beta 2 to be in FCS. Appserver 9.1
beta 2 is scheduled for javaone. We may have to get the latest jars in the IDE
close to M9 FF date. This is because the JAXWS Ri is going through testing in
the next couple of weeks and if they find any issues then we may have to upgrade.

We have already talked at length about delivering jaxws lib through update
center and such but unfortunately we cant do those until we have some stable
APIs from them which will help us remove the tie-ins we have with their private
APIs. But thats where we plan to go and have been tracking required RFE with the
jaxws team.
Comment 13 Srividhya Narayanan 2007-03-30 20:41:05 UTC
Yes, we need to fix this for 5.5.1 with proper jaxws fcs bits.
Comment 14 Roderico Cruz 2007-04-06 07:06:00 UTC
Applied the fixes from Martin Grebac in the 6.0 codeline. Diffs are attached.
Comment 16 Roderico Cruz 2007-04-06 07:15:03 UTC
Created attachment 40535 [details]
Diff file for build-impl.xsl of the J2SE project
Comment 17 Roderico Cruz 2007-04-06 07:21:47 UTC
btw, the JAXWS jars in the jaxws20 module have been updated to the 04/04/2007
nightly build version in NB 6.0, as required by the HRM process for changes to
551. This is in compliance to a request from QE in order to meet the
requirements of Sun Studio. When the jaxws FCS jars do come out, NB will be
refreshed again.
Comment 18 Martin Grebac 2007-04-06 09:18:50 UTC
The fix looks fine.
Comment 19 Jaroslav Pospisil 2007-04-06 13:31:17 UTC
Continuous build 20070406-102 of 6.0 seems to be O.K.
Fix works and web services functionality works fine.
Comment 20 Jaroslav Pospisil 2007-04-10 15:57:52 UTC
Fix is O.K. in 6.0 - could you commit the fix into 5.5.1, Rico?
Comment 21 Jaroslav Pospisil 2007-04-10 15:58:07 UTC
Fix is O.K. in 6.0 - could you please commit the fix into 5.5.1, Rico?
Comment 22 Roderico Cruz 2007-04-10 18:46:56 UTC
Will commit the fix to 5.5.1 tomorrow, April 11. The reason for this is we want
the latest jaxws bits as much as possible to accommodate the FCS date of Sun Studio.
Comment 23 Lukas Jungmann 2007-04-11 11:30:36 UTC
the patch for j2se project's build-impl.xsl is not correct - it does not solve
the problem of running the project (ws client generation) on jdk6 - the
'fork=true' must be replaced with 'xendorsed=true' in this case
Comment 24 Lukas Jungmann 2007-04-11 17:08:21 UTC
Another effect of the JAX-WS lib. upgrade is that one cannot build/deploy any
web project with web service and/or ws client to tomcat now if he runs ide on JDK6.
Comment 25 Roderico Cruz 2007-04-12 14:09:20 UTC
This has been fixed in the release551 codeline. For the Java project, xendorsed
was added to the wsimport invocation. For the web project, xendorsed replaced
the fork="true"/jvmarg options in the wsimport invocation for Tomcat. Diffs are
attached.
Comment 26 Roderico Cruz 2007-04-12 14:11:37 UTC
Created attachment 40820 [details]
New diff file for build-impl.xsl for web project
Comment 27 Roderico Cruz 2007-04-12 14:13:08 UTC
Created attachment 40822 [details]
New diff file for build-impl.xsl for j2se project
Comment 28 Milan Kuchtiak 2007-04-12 15:11:21 UTC
Shouldn't we also fix the wsimport in j2ee/clientproject ?

The diffs look fine.

Nevertheless, please, test thoroughly the wsimport/wsgen with Tomcat/GlassFish
V1/GlassFish V2 and jdk1.5/jdk1.6. 

- for all project types
Comment 29 Lukas Jungmann 2007-04-12 16:13:06 UTC
> Shouldn't we also fix the wsimport in j2ee/clientproject ?

Yes, we should. Thanks for catching this Milan.


I've build my own 5.5.1 build and replaced there jaxws jars with latest jax-ws
2.1 nightly (available at jax-ws.dev.java.net) - since this is near to what we
will have in our FCS.

Then I checked ws/ws from wsdl/ws client creation in web/ejb/j2se/app client
project for bundled tomcat/sjsas9.0ur1p1/gf-v2-b41a when IDE runs on
jdk1.5.0_11/jdk6 and everything works as it should (except of appclient project
type on jdk6 which needs to be fixed). I checked also deployment of created
projects and it works as well.
Comment 30 Jaroslav Pospisil 2007-04-12 16:21:43 UTC
I tested continuous build NetBeans-release551-20070412-1339,which according to
changelog should contain both fixes,but there's another problem - build of ws
client fails with same dialog, but also this exception:

C:\Documents and Settings\Telco\WebApplication5\nbproject\build-impl.xml:296:
The <wsimport> type doesn't support the "xendorsed" attribute.
        at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:389)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
        at org.apache.tools.ant.Task.maybeConfigure(Task.java:254)
        at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:189)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
        at org.apache.tools.ant.Task.perform(Task.java:363)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
BUILD FAILED (total time: 0 seconds)
Comment 31 Lukas Jungmann 2007-04-12 16:28:11 UTC
That's because that build still does not contain latest JAX-WS 2.1 bits.
Download them
(https://jax-ws.dev.java.net/files/documents/4202/55164/JAXWS2.1_nightly.zip)
and put jars into $NB_HOME/ide7/modules/ext/jaxws21/ and
$NB_HOME/ide7/modules/ext/jaxws21/api then it will work.
Comment 32 Jaroslav Pospisil 2007-04-12 16:54:18 UTC
I copied latest JAXWS2.1 bits and it works,but now I've original issue again as
if there's no fix.Hovewer when I do Refresh Client on broken websvc node,after
refreshing is client O.K. 
Comment 33 Jaroslav Pospisil 2007-04-12 17:15:47 UTC
Clarification - only error message appears. Broken ws node changes itself to
O.K. state after while and I can Call Web Service operation and such stuff.
Attaching error message. 
Comment 34 Jaroslav Pospisil 2007-04-12 17:18:27 UTC
Created attachment 40836 [details]
Error dialog
Comment 35 Lukas Jungmann 2007-04-12 17:30:51 UTC
That dialog is not nice (and maybe a bit confusing), but that's another (P3)
issue which can wait IMHO since everything else is working
Comment 36 Lukas Jungmann 2007-04-12 17:52:32 UTC
I filed issue 100824 to get rid of that error message.
Comment 37 Roderico Cruz 2007-04-12 18:48:33 UTC
Applied same fix to the J2EE app client project. Diffs attached.
Comment 38 Roderico Cruz 2007-04-12 18:50:14 UTC
Created attachment 40843 [details]
Diff file for build-impl.xsl of the J2EE app client project
Comment 39 Roderico Cruz 2007-04-12 19:19:37 UTC
Migrated changes to ProjectJAXWSClientSupport and WSDLModeler to 5.5.1.
Comment 40 Roderico Cruz 2007-04-12 20:39:03 UTC
Updated the jaxws jars to the jaxws 2.1.1 FCS version
Comment 41 Lukas Jungmann 2007-04-13 02:14:43 UTC
v. in 5.5.1 FCS build