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 90381

Summary: JBoss and Creating Web Services from WSDL
Product: serverplugins Reporter: jcampbell <jcampbell>
Component: JBossAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: blocker CC: jungi
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description jcampbell 2006-11-30 18:36:50 UTC
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">
        <mkdir dir="${build.generated.dir}/wsimport/service"/>
        <mkdir dir="${classes.dir}"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
            <classpath path="${j2ee.platform.wsimport.classpath}"/>
        </taskdef>
    </target>

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
server)

Work around (which is bad):
manually paste in the following line into my private.properties file

j2ee.platform.wsimport.classpath=C:\\Sun\\AppServer\\lib\\tools.jar:C:\\Sun\\AppServer\\lib\\appserv-jstl.jar:C:\\Sun\\AppServer\\lib\\javaee.jar:C:\\Sun\\AppServer\\lib\\appserv-ws.jar:C:\\Sun\\AppServer\\lib\\mail.jar:C:\\Sun\\AppServer\\lib\\activation.jar

If I do this then everything seems to work fine (at least till my
private.properties file gets overwritten...)

Steps to Reproduce:
Environment:
java 1.5.0_09
netbeans 5.5
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
error)
Comment 1 Milan Kuchtiak 2007-02-23 16:22:19 UTC
JBoss probably doesn't implement :
J2eePlatform.TOOL_WSIMPORT(J2eePlatform.TOOL_WSIMPORT)
Comment 2 Sherold Dev 2007-06-27 14:49:14 UTC
The issue is still reproducible.
Comment 3 Lukas Jungmann 2007-07-18 19:24:51 UTC
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
Comment 4 Lukas Jungmann 2007-07-18 19:25:27 UTC
*** Issue 87640 has been marked as a duplicate of this issue. ***
Comment 5 Sherold Dev 2007-08-02 14:00:53 UTC
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.
Comment 6 Vince Kraemer 2007-12-07 16:20:04 UTC
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.