If you have JBoss as your application server (with EJB 3.0 support installed
into JBoss.... which then allows JBoss to be treated as a Java EE 5 server), and
you try to create a Web Services from an existing WSDL then you get the
following error when I build:
C:\dev\projects\intuit\jboss\labs\WS\nbproject\build-impl.xml:235: taskdef class
com.sun.tools.ws.ant.WsImport cannot be found
As I open the build-impl.xml file I find that the error is from the following task:
<target name="wsimport-init" depends="init">
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
I'm assuming this is bad is because I am NOT using Sun Application Server so
j2ee.platform.wsimport.classpath does NOT get added into my private.properties
file. (It gets added if I change my app server from JBoss to Sun Application
Work around (which is bad):
manually paste in the following line into my private.properties file
If I do this then everything seems to work fine (at least till my
private.properties file gets overwritten...)
Steps to Reproduce:
jboss 2.0.4 with EJB 3.0 installed
1. (From Netbeans) Create a new EJB Module.
2. Select JBoss as the application server and Java EE 5 as the EE version (you
will only be able to select EE 5 if JBoss has EJB 3.0 installed)
3. Create New "Web Service from WSDL..."
4. Select an existing wsdl file and hit finish
5. Netbeans will try to build the the files using wstools (which then causes the
JBoss probably doesn't implement :
The issue is still reproducible.
This sounds more like a RFE then a bug - setting J2eePlatform.TOOL_WSIMPORT property won't fix this, IMHO, since JBoss
uses different tools and a bit different approach for consuming web services then the one currently supported by the
IDE..., see http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide
*** Issue 87640 has been marked as a duplicate of this issue. ***
The problem is that the JBoss plugin does not support web services, marking this issue as enhancement.
The wizard should not let the user create the WS, unless the server supports it. I filed a separate issue 111739 for it.
please close this issue if you forgot to earlier. If this issue is still open,
please change the target milestone to reflect the current commitment.