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.
[ BUILD # : 200711201000 ] [ JDK VERSION : 1.6.0_02 ] I have a WEB services project (J2EE 1.4,JAXRPC) that works in NB 5.5. I can't compile it with NB 6.0 because of this error: build-impl.xml:330: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found <target depends="init" name="wscompile-init"> <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile" classpath="${wscompile.classpath}" name="wscompile"/> <taskdef classname="org.netbeans.modules.websvc.jaxrpc.ant.WsClientUpToDate" classpath="${wsclientuptodate.classpath}" name="wsclientuptodate"/> <mkdir dir="${build.web.dir}/WEB-INF/wsdl"/> <mkdir dir="${webinf.dir}/wsdl"/> <mkdir dir="${build.classes.dir}"/> <mkdir dir="${build.generated.dir}/wsclient"/> <mkdir dir="${build.generated.dir}/wsservice"/> <mkdir dir="${build.generated.dir}/wsbinary"/> </target>
I've also encountered this bug. Adding name to CC. I have not found a workaround.
The issue is caused by the fact that JAXRPC support is not part of standard 6.0 distribution.
You need to install the JAXRPC plugin from plugin manager for NB 6.0.
reported also on nbusers: http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=113330 with some steps to reproduce
This is going to be a difficult fix. I will see if we can show user warning about the missing ant task.
I have added a check in project open hook which checks if the project contains any jax-rpc services/clients and if jax-rpc plugin is installed. We show a warning to notify user about missing plugin in case any jax-rpc artifacts are found. changeset 75790 5f53246b8c77
v.
Unfortunately, the previous behavior are back in NB 6.1 . ( IDE are reinstalled, all available updates are applied)
I am seeing this in NB 6.5 with an WEB project, while a J2SE application works fine. taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found When import the WSDL I choose to use IDE generate the stub, not J2EE. Seems like the wscompile.classpath is not set correctly for the WEB project. From nbproject/project.properties The WEB is set to wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath} while the J2SE is set to wscompile.classpath=${wscompile.tools.classpath}:${javac.classpath} From ant -debug output, Property "j2ee.platform.wscompile.classpath" has not been setSetting project property: wscompile.classpath -> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\..\lib\tools.jar:${j2ee.platform.wscompile.classpath} While in the J2SE project, Setting project property: wscompile.classpath -> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\..\lib\tools.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/activation.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/FastInfoset.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jaxp-api.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jax-qname.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jaxrpc-api.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jaxrpc-impl.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jaxrpc-spi.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/jsr173_api.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/mail.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/relaxngDatatype.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/saaj-api.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/saaj-impl.jar:/Users/henryjen/.netbeans/6.5/modules/ext/jaxrpc16/xsdlib.jar
This maybe a work-around, not sure if there could be any problem. Anhow, by modifying the nbproject/project.properties to set wscompile.classpath, I can build the project successfully. wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath}:${javac.classpath}
same problem with 6.8 the last fix worked
(In reply to comment #11) > same problem with 6.8 > the last fix worked The same is happening to me: Product Version: NetBeans IDE 6.8 (Build 200912041610) Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13 The last fix worked. The Project Properties had: wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath} The Project Properties now has: wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath}:${javac.classpath}
I'm little bit confused - is this issue already fixed or not? If it is,shouldn't its status be changed? Anyway,I'm missing any comments for three months and without any further feedback I'll consider closing it.