try to generate jax-ws wsdl file from a java application service through wsgen as ANT task. Ant's taskdef itself giving me lots of class not found exception. Every first time it gave class not fount for "com.sun.tools.ws.ant.WsGen" then added "jaxws-tools-2.1.7.jar" in class path. After this , it gave class not found for "com/sun/istack/tools/ProtectedTask" then added "istack-commons-tools-2.7.jar". Now it's giving class not found for "com/sun/tools/xjc/api/util/ToolsJarNotFoundException"
I am sure , I am not following right path.
here is build.xml
<?xml version="1.0"?>
<project name="Application Services" basedir="." default="compile">
<property file="build.properties"/>
<path id="external.projects">
<fileset dir="/scratch/softwares" includes="*.jar"/>
</path>
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" classpathref="external.projects">
</taskdef>
<target name="compile" depends="clean,init">
<javac destdir="${build.dir}" srcdir="${src.dir}" classpathref="external.projects"/>
</target>
<target name="packaging" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/application.services.jar" basedir="${build.dir}"/>
<wsgen
sei="webservice.interfaces.student.IStudentApplicationService"
destdir="${jar.dir}" cp="external.projects" resourcedestdir="${jar.dir}"
sourcedestdir="${jar.dir}" genwsdl="true"
/>
</target>
</project>