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.
Steps to Reproduce: Import Attached project(Which contains webapplications and is developed with NB 5.5.1) and build. The following exception is thrown. java.lang.NoClassDefFoundError: com/sun/tools/ws/WsImport Exception in thread "main" C:\JavaEESamples\FBCINOutEJBModule\nbproject\build-impl.xml:253: wsimport failed BUILD FAILED (total time: 0 seconds) Build: NetBeans IDE Dev (Build 200703191900) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 en_US (nb); Cp1252
Created attachment 39931 [details] ejb project created with NB 5.5.1 uses FileBC
Looks like a problem in the web services support.
I tested the project with latest GlassFish (V2 build 40) and with jdk1.5 and I found no problem. Please, add more information about the target server. Thank You.
Tested even with jdk1.6.
please download netbeans from the following location http://nephrite.russia.sun.com/nbi/daily-200703201103 . you will be able to reproduce the issue.
The issue was fixed already (issue 97132). Please, use latest Netbeans build, and don't use GlassFish V2 build 38. The fix is working from GlassFish V2 build 39. This is the right wsimport target : <target name="wsimport-service-FBCAddressWebService" depends="wsimport-init,wsimport-service-check-FBCAddressWebService" unless="wsimport-service-FBCAddressWebService.notRequired"> <wsimport xendorsed="true" sourcedestdir="${build.generated.dir}/wsimport/service" extension="true" verbose="true" destdir="${classes.dir}" wsdl="${basedir}/${meta.inf}/xml-resources/web-services/FBCAddressWebService/wsdl/FBCAddressWSDL.wsdl" catalog="catalog.xml"/> </target>
Created attachment 40044 [details] fixed sample
Attached is fixed sample created in/ported to NB 5.5.1 RC1 build - you have to use GlassFish-v2-b39 or above to be able to run it correctly otherwise it will always fail with error you described above. The only diff between original and fixed projects is in nbproject/build-impl.xml - see issue 97132 for details. Note: if you need to update build-impl.xml - delete it from the project, go to project properties and change some option there (eg. check the Report use of deprecated API checkbox), close the dialog and new build-impl.xml should be in place ;)
Setting correct TM; anyway it works fine for me in 5.5.1 RC1 and latest dev build of 6.0 with GlassFish-v2-b41-nightly-26_mar_2007.
I have taken the fixed sample attached in the qai(i.e.[id=40044]). Even then unable to build the Javaee project using log is attached. build# NetBeans IDE Dev (Build 200704031800) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 Windows XP version 5.1 running on x86 en_US (nb); Cp1252
Created attachment 40745 [details] cannot find symbol
What is a version/build number of GlassFish you use please? Anyway Jardo, can you check this on your WinXP, please? It works for me on Linux...
It works for me also on WinXP.I used last NB6.0 build and JDK1.6, Glassfish 9.1 b41
Check if build-impl.xml contains the line : <compilerarg line="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"/> (inside <target name="-init-macrodef-javac">) or if jaxws.endorsed.dir property is correctly specified in private.properties The issue was tested on both Windows and Linux with latest GlassFish builds.
Working fine with latest Hula build. Build# App Server details: App Server version = Sun Java System Application Server 9.1 (build b41a-beta2) App Server build date = Tue Apr 03 23:47:10 GMT+05:30 2007 JBI details: _______________________________________________________________________________ ________ Running at 12 April 2007 04:32:35 PM on Windows XP 5.1 [x86] using Java 1.6.0_01-b06 from C:\Progra~1\Java\jdk1.6.0_01\jre app server type = GLASSFISH (sub-type = DEVELOPER version = 91) app server domains = 1 (instances = 0 cluster = ) java.io.tmpdir = C:\WINDOWS\TEMP\ jbi port = 17888 (secure = false) installed runtime build = 070410 installed component build = 070410 installed product variant = Kenai installed product kit type = image JBI build details: JBI Framework build date = Tue Apr 10 07:24:26 GMT+05:30 2007 [source: C:/gf91/jbi/lib/jbi_framework.jar] HTTP SOAP Binding build date = Mon Apr 09 21:00:14 GMT+05:30 2007 [source: C:/gf91/jbi/components/sun-http-binding/httpsoa pbc.jar] BPEL Engine build date = Mon Apr 09 21:01:00 GMT+05:30 2007 [source: C:/gf91/addons/jbi-components/bpelserviceengine .jar] NetBeans build details: Netbeans IDE build = 070410_37 Netbeans IDE version = 200704101800 [source: C:/netbeans/6.0/build_info] Netbeans IDE build date = Wed Apr 11 02:31:14 GMT+05:30 2007 [source: C:/netbeans/6.0/platform7/core/core.jar] CAPS Modules build date = Tue Apr 10 22:20:10 GMT+05:30 2007 [source: C:/netbeans/6.0/soa1/modules/org-netbeans-modul es-compapp-projects-jbi.jar]
Closing the issue.