By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,011 Members | 1,000 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,011 IT Pros & Developers. It's quick & easy.

Error while deploying the web services file.

P: 1
Iam new to web services, Iam using net beans-5.5.1 IDE
whlie deploying the web service application the following error is occured.
can anyone help me..??? please.

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
wsgen-init-nonJSR109:
wsgen-wsadd-nonJSR109:
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
at com.sun.tools.ws.wscompile.WsgenTool.buildModel(Ws genTool.java:175)
at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool .java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:100)
at com.sun.tools.ws.WsGen.main(WsGen.java:38)
Command invoked: wsgen "C:\Program Files\Java\jdk1.5.0\jre\bin\java.exe" -Djava.endorsed.dirs=${jaxws.endorsed.dir} -classpath "C:\Program Files\Java\jdk1.5.0\lib\tools.jar;F:\laxmikumar\My Project\build\web\WEB-INF\classes;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\antlr.jar;F:\ netbeans-5.5.1\enterprise3\modules\ext\struts\commons-beanutils.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\commons-digester.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\commons-fileupload.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\commons-logging.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\commons-validator.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\jakarta-oro.jar;F:\netbeans-5.5.1\enterprise3\modules\ext\struts\struts.jar;F: \netbeans-5.5.1\ide7\modules\ext\jaxws21\activation.jar;F:\n etbeans-5.5.1\ide7\modules\ext\jaxws21\FastInfoset.jar;F:\ netbeans-5.5.1\ide7\modules\ext\jaxws21\http.jar;F:\netbean s-5.5.1\ide7\modules\ext\jaxws21\api\jaxb-api.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxb-impl.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxb-xjc.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jaxws-api.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxws-rt.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\jsr250-api.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\saaj-impl.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\sjsxp.jar;F:\netbea ns-5.5.1\ide7\modules\ext\jaxws21\resolver.jar;F:\net beans-5.5.1\ide7\modules\ext\jaxws21\stax-ex.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\streambuffer.jar;F: \netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxws-tools.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jsr173_api.jar; F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jsr181-api.jar;F:\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\saaj-api.jar" com.sun.tools.ws.WsGen -d F:\laxmikumar\MyProject\build\web\WEB-INF\classes -keep -wsdl -r F:\laxmikumar\MyProject\build\generated\wsgen\serv ice -s F:\laxmikumar\MyProject\build\generated\wsgen\serv ice com.myapp.struts.wsadd
F:\laxmikumar\MyProject\nbproject\build-impl.xml:303: wsgen failed
BUILD FAILED (total time: 0 seconds)



build.xml - line no.303 is

<wsgen fork="true" xendorsed="true" sourcedestdir="${build.generated.dir}/wsgen/service" resourcedestdir="${build.generated.dir}/wsgen/service" destdir="${build.classes.dir.real}" keep="false" genwsdl="true" sei="com.myapp.struts.wsadd">
<classpath path="${java.home}/../lib/tools.jar:${build.classes.dir.real}:${j2ee.platfor m.wsgen.classpath}:${javac.classpath}"/>
<jvmarg value="-Djava.endorsed.dirs=${jaxws.endorsed.dir}"/>
</wsgen>
Jul 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.