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 111880 - Generation of Web Service Client fails with jdk 1.6.0_01
Summary: Generation of Web Service Client fails with jdk 1.6.0_01
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 13:01 UTC by Roman Mostyka
Modified: 2007-08-13 08:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Application (27.10 KB, application/octet-stream)
2007-08-03 14:18 UTC, Roman Mostyka
Details
Application (28.62 KB, application/octet-stream)
2007-08-03 17:40 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-08-03 13:01:12 UTC
1. Start IDE with jdk 1.6.0_01.
2. Create "Visual Web Application".
3. Rightclick application in Projects window and select "New > File/Folder...".
4. Select "Web Services" in Categories and "Web Service Client" in File Types. Click Next.
5. Enter http://www.webservicemart.com/uszip.asmx?WSDL for WSDL URL, select package and click Finish.

Result: Web Service Client's build fails with message:
"init:
wsimport-init:
Created dir: C:\Documents and Settings\rm153204.GRIF\WebApplication2\build\generated\wsimport\client
Created dir: C:\Documents and Settings\rm153204.GRIF\WebApplication2\build\generated\wsimport\binaries
wsimport-client-check-uszip.asmx:
wsimport-client-uszip.asmx:
C:\Documents and Settings\rm153204.GRIF\WebApplication2\nbproject\build-impl.xml:295: You are running on JDK6 which
comes with JAX-WS 2.0 API, but this tool requires JAX-WS 2.1 API. Use the endorsed standards override mechanism
(http://java.sun.com/javase/6/docs/technotes/guides/standards/), or set xendorsed="true" on <wsimport>. 
BUILD FAILED (total time: 2 seconds)"
Comment 1 Roman Mostyka 2007-08-03 13:04:39 UTC
Issue occurs for Java EE 5 project.
Comment 2 Roman Mostyka 2007-08-03 13:17:11 UTC
For J2EE 1.4 projects there is no build error, but Web Service Client is not generated and can be used. It's true for
"Java EE Container-generated static stub" and for "IDE-generated static stub".
Comment 3 Lukas Jungmann 2007-08-03 13:20:01 UTC
which target server do you use? It works fine for me with GlassFish-v2-b57...

BTW: did you update web project from hotfixes UC?
Comment 4 Lukas Jungmann 2007-08-03 13:22:12 UTC
also check whether it cannot be related to space in path to your project (ie create project in c:\tmp), please
Comment 5 Milan Kuchtiak 2007-08-03 13:32:31 UTC
Please, add information about Sun Java System Application Server version.
Please, attach also the build-impl.xml file to see the wsimport-client-uszip.asmx target.

Seems like a problem with endorsed mechanism.
Comment 6 Roman Mostyka 2007-08-03 13:39:13 UTC
I downloaded NetBeans 5.5.1 aтв VWP from http://www.netbeans.info/downloads/index.php.
Also downloaded СТВ pack from http://smetiste.czech.sun.com/builds/cnd/5.5.1u1/Build070731/installers.
I also use GlassFish V2-b57.
But I have spaces in project path. Is there filed bug for this?
Comment 7 Roman Mostyka 2007-08-03 13:49:22 UTC
It works fine with jdk 1.5.0_11.
Comment 8 Milan Kuchtiak 2007-08-03 13:54:51 UTC
Could you please also attach the build-impl.xml file.
Comment 9 Roman Mostyka 2007-08-03 14:18:46 UTC
Created attachment 46122 [details]
Application
Comment 10 Roman Mostyka 2007-08-03 14:20:27 UTC
Added application, which causes this issue. And I tried with path without spaces. The same result.
Comment 11 Milan Kuchtiak 2007-08-03 15:06:34 UTC
The issue is fixed in Netbeans 60 (by introducing an xendorsed attribute for wsimport).
Comment 12 Lukas Jungmann 2007-08-03 15:10:01 UTC
and the fix should be already available on the hotfix UC. We need confirmation from Roman...
Comment 13 Roman Mostyka 2007-08-03 17:36:24 UTC
I installed all HotFixes from UC, but still can reproduce this problem.
Comment 14 Roman Mostyka 2007-08-03 17:40:21 UTC
Created attachment 46134 [details]
Application
Comment 15 Lukas Jungmann 2007-08-03 18:36:52 UTC
The problem lies in Visual web project type's XSLT template for build-impl.xml - it is not taken care about JAX-WS 2.1
on JDK 6 related issues there. I'm not sure whether anything in that module was implemented by our team. Shouldn't this
be moved to some other place and evaluated by someone else? Milane, Petre B.?
Comment 16 Petr Blaha 2007-08-06 08:45:48 UTC
Milane, please evaluate the bug. In case the bug is in XSLT template for Visual Web project type assign the bug to
somebody from visual web team.
Comment 17 Milan Kuchtiak 2007-08-06 09:40:05 UTC
Yes, I got it. Though, the wsimport/wsgen in classical Web Application works correctly,
the wsimport/wsgen in Visual Web Appication didn't apply the endorsed mechanism for jax-ws APIs.

Please, apply the changes that were made in web/project :

1. add jaxws.endorsed.dir property to private.properties
 The property should point to directory with jax-ws 2.1 API jars (netbeans551_home/ide7/modules/ext/jaxws21/api)
 
2. add xendorsed="true" for wsimport ("wsimport-client-XYZ" target)

3. add xendorsed="true" and
<jvmarg value="-Djava.endorsed.dirs=${jaxws.endorsed.dir}"/>
for wsgen ("wsgen-XYZ-nonJSR109" target)

4. add the following line to "-init-macrodef-javac" target :
<compilerarg line="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"/>
Comment 18 Petr Blaha 2007-08-06 16:06:47 UTC
The bug not applied to NetBeans 6.0.
Comment 19 Quy Nguyen 2007-08-10 00:53:48 UTC
Passing to the visual web project type owner.
Comment 20 _ potingwu 2007-08-10 17:25:48 UTC
There is no plan to release patch for VWP 5.5.1. And this is fixed in NetBeans 6.0 that we are now focused on. As I
known from the management team, we will not fix it in VWP 5.5.1. We will ask users to use NetBeans 6.0 instead.

BTW, VWP 5.5 uses exactly the same copy of build-impl.xml as NetBeans web project. I guess NetBeans 5.5 web project
should have the same issue.
Comment 21 Petr Blaha 2007-08-13 08:43:27 UTC
You are right NB 5.5 web project has same issue but the bug is fixed in NB 5.5.1 web project.