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.
Summary: | taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found | ||
---|---|---|---|
Product: | webservices | Reporter: | Petr Blaha <blaha> |
Component: | Code | Assignee: | Roderico Cruz <rcruz> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | athompson |
Priority: | P2 | Keywords: | RELNOTE |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | test project |
Description
Petr Blaha
2004-09-24 09:09:21 UTC
Created attachment 17856 [details]
test project
Rico - Due to my latest change to the web service / client build system, this bug probably will manifest differently, namely that Javac.class won't be found. Assuming I'm correct, the solution is unclear. The remaining entry in userdir\build.properties is for tools.jar and is designed to be user-modifiable for EA1 so that we don't mess up Mac people in case they need to change it to something else. any new status on this one? Not EA1? or not reproducible This is reproducible, but is not for EA1. As indicated in Peter's comment, due to the change in the build system, the bug now manifests itself differently, namely, javac could not be found. Have to dig some more for a solution to this. Remove all issues from temporary component. Workaround for now, if you have this error: ... [wscompile] error : com.sun.tools.javac.Main is not available in the classpath.. [wscompile] error: compilation failed, errors should have been reported The workaround is to create a new web project and build and then try build your previous project. This will restore in the file $HOME/build.properties, the attribute "wscompile.tools.classpath" which is not updated with the proper information until the ide creates a new service. WORKAROUND NOTE: create a new web project, add to new project web service and build and then try build previous project. User must create new project with web service. *** Issue 51104 has been marked as a duplicate of this issue. *** Fixed. RELNOTE keyword applies only to EA2. --lukas v. 200502170805 i'm getting this same error now if i try to compile any web app with web services and the server set to tomcat. if the server is set to sun app server it compiles fine. jdk-1.5 linux daily 25 july 2005 Please read the in-product help system before creating an issue. There is a fairly large help section on Web Services. In the topic "Preparing to Develop Web Services and Clients", you will find the following: "The IDE uses the wscompile tool to compile web services and web service clients. The wscompile tool is bundled with the Sun Java System Application Server (SJS Application Server). You cannot compile a web service or a web service client unless the SJS Application Server is the target server for the project." i'm sorry; i thought i did a good job of searching for an anwer to this problem (that's how i found this issue), but i missed that. i am unfortunately not an expert of this stuff but that brings up the obvious point: if you can't compile web services for tomcat, why does netbeans allow you to add them? is there something i'm not understanding? i could have sworn i remembered there was a tutorial for this in 4.0. i'm sorry for wasting your time, but i need to create a web service for tomcat and i'm lost. any documentation you can point me to would be greatly appreciated. if you point me in the right direction, i'll send you a 6-pack of your choice of inexpensive beer! That tutorial you've mentioned is still there, just point your browser at http://www.netbeans.org/kb/articles/tutorial-webservice-40.html :) I'm using verion 200508251800 build and I'm getting the same problem after targeting a jBoss server. I looked at the URL listed and couldn't find any mention of the 'wscompile' requirements, except for the modification to build.xml. In that build file, the target points to com.sun.xml.rpc... Is there any way to point the IDE to a wscompile that it part of the required WSDP? I have added the mentioned libraries to a newly created 'JAX-RPC' library, and the build still fails. The actual error is: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found BUILD FAILED (total time: 0 seconds) As mentioned, this did work with Sun App Server. I'm trying to switch to jBoss, because the relative time it takes to reload a changed class with JAS is just too much. I am unable to find a solution. "Use Sun App Server" is no solution. It defeats the purpose of supporting other containers. Hi, Jboss plugin doesn't support web service yet. We filed a new enhancement, see #63326. or add following target to your build.xml: <target name="-pre-init"> <!-- property libs.jaxrpc16.classpath is defined in $USERDIR/build.properties --> <property name="j2ee.platform.wscompile.classpath" value="${libs.jaxrpc16.classpath}"/> </target> and copy JAXRPC libraries to your server's lib dir The above solution is probably the best for now. Here's another one: http://blogs.sun.com/roller/page/geertjan/?anchor=deploying_web_service_clients_to Original issue was fixed and verified in b. 200502170805 |