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.
1. installed nb 4.1 2. created web project 3. created hello world web service 4. right clicked on project node, then run 5. received error.. (path omitted)\build-impl.xml:224: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found relevant part of build-impl.xml follows... <target name="wscompile-init"> <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile" name="wscompile"> <classpath path="${wscompile.classpath}"/> </taskdef> <mkdir dir="${build.web.dir.real}/WEB-INF/wsdl"/> <mkdir dir="${web.docbase.dir}/WEB-INF/wsdl"/> <mkdir dir="${build.classes.dir.real}"/> <mkdir dir="${build.generated.dir}/wssrc"/> </target> 6. modified build.xml by inserting the following (copied from build-impl.xml and added classpath).. <target name="wscompile-init"> <echo message="${wscompile.classpath}" /> <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile" name="wscompile"> <classpath> <fileset dir="C:/Java/AppServer/lib"> <include name="**/*.jar"/> </fileset> </classpath> </taskdef> <mkdir dir="${build.web.dir.real}/WEB-INF/wsdl"/> <mkdir dir="${web.docbase.dir}/WEB-INF/wsdl"/> <mkdir dir="${build.classes.dir.real}"/> <mkdir dir="${build.generated.dir}/wssrc"/> </target> 7. The echo statement above output the following.. C:\j2sdk1.4.2_08\jre\..\lib\tools.jar: 8. With the new build.xml I tried to run the project again with the following output... generateQuote_wscompile: command line: wscompile C:\j2sdk1.4.2_08\jre\bin\java.exe -classpath C:\j2sdk1.4.2_08\lib\tools.jar;C:\Brad\PdfGenerator\build\web\WEB-INF\classes com.sun.xml.rpc.tools.wscompile.Main -d (path omitted)\build\generated\wssrc -features:documentliteral -gen:server -keep -mapping (path omitted)\build\web\WEB-INF\wsdl\generateQuote-mapping.xml -nd (path omitted)\build\web\WEB-INF\wsdl -verbose -Xprintstacktrace (path omitted)\src\java\com\practiv\bupa\pdf\generateQuote-config.xml java.lang.NoClassDefFoundError: com/sun/xml/rpc/tools/wscompile/Main Exception in thread "main" (path omitted)\nbproject\build-impl.xml:233: wscompile failed
You should register appserver (Runtime tab -> Server, right-click ... Add server) when you want to work with web services as it provides the necessary libraries. The ui shoul not allow or at least warn when creating such broken projects.
User should not be able to create webservices if there's no application server registered in IDE (see issue #63919).
v.