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 123205 - [60cat] ant task Wscompile cannot be found in NB 6
Summary: [60cat] ant task Wscompile cannot be found in NB 6
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 20:08 UTC by mariso
Modified: 2010-09-28 11:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mariso 2007-12-01 20:08:59 UTC
[ 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>
Comment 1 kidvid 2007-12-18 17:11:30 UTC
I've also encountered this bug.  Adding name to CC.  I have not found a workaround.
Comment 2 Milan Kuchtiak 2008-01-21 09:39:53 UTC
The issue is caused by the fact that JAXRPC support is not part of standard 6.0 distribution.
Comment 3 bhate 2008-01-31 18:22:46 UTC
You need to install the JAXRPC plugin from plugin manager for NB 6.0.
Comment 4 Lukas Jungmann 2008-03-21 00:53:42 UTC
reported also on nbusers: http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=113330 with some steps to reproduce
Comment 5 bhate 2008-03-21 20:28:26 UTC
This is going to be a difficult fix. I will see if we can show user warning about the missing ant task.
Comment 6 bhate 2008-03-26 19:04:46 UTC
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
Comment 7 Jaroslav Pospisil 2008-04-07 12:26:29 UTC
v.
Comment 8 konstantinl 2008-09-24 10:12:05 UTC
Unfortunately, the previous behavior are back in NB 6.1 . ( IDE are reinstalled, all available updates are applied)

Comment 9 slowhog 2009-01-16 07:24:48 UTC
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
Comment 10 slowhog 2009-01-16 07:31:28 UTC
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}
Comment 11 roti 2009-12-11 10:13:43 UTC
same problem with 6.8
the last fix worked
Comment 12 squeek_14 2010-02-17 22:05:06 UTC
(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}
Comment 13 Jaroslav Pospisil 2010-06-01 08:57:48 UTC
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.