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 211126 - wsimport utility can not create Web Service Client
Summary: wsimport utility can not create Web Service Client
Status: RESOLVED INCOMPLETE
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.1.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 04:10 UTC by edwmit0
Modified: 2012-04-16 14:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Web Service Client creation error (86.30 KB, image/tiff)
2012-04-13 04:10 UTC, edwmit0
Details
Detailed UI Steps (2.36 MB, application/msword)
2012-04-13 23:54 UTC, edwmit0
Details
Logs (4.73 KB, text/rtf)
2012-04-13 23:55 UTC, edwmit0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edwmit0 2012-04-13 04:10:23 UTC
Created attachment 118217 [details]
Web Service Client creation error

I am following the tutorial"Getting Started with JAX-WS Web Services.

I have successfully created the web service and tested using the "Test Web Service" function.

I then followed the instructions to create the "CalculatorWS_Client_Application. After Right clicking and selecting "New --> Web Service Client" I receive the attached error. Below is the available output.

CalculatorWSApplication (run-deploy)
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/web/WEB-INF/classes
Created dir: /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/web/META-INF
Copying 1 file to /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/web/META-INF
Copying 3 files to /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/web
library-inclusion-in-archive:
library-inclusion-in-manifest:
Created dir: /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/empty
Created dir: /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/generated-sources/ap-source-output
compile:
compile-jsps:
In-place deployment at /Users/edwmit0/NetBeansProjects/CalculatorWSApplication/build/web
Initializing...
run-deploy:
BUILD SUCCESSFUL (total time: 3 seconds)

GlassFish Server 3.1.2*
WARNING: Container org.glassfish.webservices.JAXWSContainer@7de2d2 doesn't support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
 CalculatorWSApplication  listening at address at http://mitch-edwardss-macbook-pro.local:8080/CalculatorWS/CalculatorWS
INFO: WEB0671: Loading application [CalculatorWSApplication] at [/CalculatorWSApplication]
INFO: CalculatorWSApplication was successfully deployed in 543 milliseconds.
INFO: parsing WSDL...

INFO: Generating code...

INFO: Compiling code...

INFO: Invoking wsimport with http://localhost:8080/CalculatorWS/CalculatorWS?WSDL
INFO: wsimport successful
INFO: parsing WSDL...

INFO: Generating code...

INFO: Compiling code...

INFO: Invoking wsimport with http://localhost:8080/CalculatorWS/CalculatorWS?WSDL
INFO: wsimport successful

Retriever Output

Apr 13, 2012 1:39:37 PM : Retrieving Location: http://localhost:8080/CalculatorWS/CalculatorWS?wsdl 

	Retrieved :    http://localhost:8080/CalculatorWS/CalculatorWS?wsdl 
	Saved at: /Users/edwmit0/NetBeansProjects/CalculatorWS_Client_Application/xml-resources/web-service-references/CalculatorWS/wsdl/localhost_8080/CalculatorWS/CalculatorWS.wsdl
Retrieving Location: http://localhost:8080/CalculatorWS/CalculatorWS?xsd=1 
	Found in document: http://localhost:8080/CalculatorWS/CalculatorWS?wsdl
	Retrieved :    http://localhost:8080/CalculatorWS/CalculatorWS?xsd=1 
	Saved at: /Users/edwmit0/NetBeansProjects/CalculatorWS_Client_Application/xml-resources/web-service-references/CalculatorWS/wsdl/localhost_8080/CalculatorWS/CalculatorWS.xsd_1.xsd
Comment 1 Denis Anisimov 2012-04-13 12:26:02 UTC
I'm not able to reproduce it with existing information.
WS client is successfully created.
Please provide detailed UI steps to reproduce if you still have a problem.
Comment 2 edwmit0 2012-04-13 23:54:56 UTC
Created attachment 118266 [details]
Detailed UI Steps

Detailed UI Steps as requested
Comment 3 edwmit0 2012-04-13 23:55:56 UTC
Created attachment 118267 [details]
Logs
Comment 4 Denis Anisimov 2012-04-16 08:03:07 UTC
Please don't use specific document formats ( like doc and rtf ) for providing
requested information. In most cases only text description of UI steps 
are enough. Please also don't use pictures when it is unnecessarily. 
Only first image is meaningful for the issue.
All other pictures in your documents are not required.

I cannot reproduce the issue on Win7 with JDK6.
It could be OS/JDK specific bug.

So I need more information about the issue. Please provide the following .
1) Your OS is Mac OS. Is it correct information ( you use in the original 
report ) ?  Please provide exact version.
2) Please provide information about your JDK.
3) Please remove your userdir ( .netbeans in your home dir ) and reproduce 
the issue once again with fresh userdir. Add the following line to NB 
command line :
-J-Dorg.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.level=0

The problem appears in the com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler 
class which is part of external JAX-WS library (jax-ws 2.2, jaxws-tools.jar ).
It is either SAXParseException or some different problem with  WsdlModeler
class. Probably it's environment specific.
So it's third-party library issue but exact details are required to submit 
the issue .
Comment 5 Denis Anisimov 2012-04-16 09:21:00 UTC
(In reply to comment #4)

> 3) Please remove your userdir ( .netbeans in your home dir ) and reproduce 
> the issue once again with fresh userdir. Add the following line to NB 
> command line :
> -J-Dorg.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.level=0
> 
I forgot to ask you attach the log file after reproduce attempt with NB started 
via mentioned command line.
Comment 6 Denis Anisimov 2012-04-16 14:43:09 UTC
Please use BZ to answer.

=====================================================================
Here is some requested information :

Java Version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

Mac OS X Info
System Version:	Mac OS X 10.7.3 (11D50)
Kernel Version:	Darwin 11.3.0
Boot Volume:	Macintosh HD
Boot Mode:	Normal
Secure Virtual Memory:	Enabled
64-bit Kernel and Extensions:	Yes

======================================================================

I don't see the messages.log of NB.
Information you sent contains only IDE output ( server and build  outputs ).
I've requested just NB messages.log . 
It should contain string like 
FINE [org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler]: xxxxxxxxxx