  | |  | axis-wsdl2java Ant Task usage | axis-wsdl2java Ant Task usage 2004-01-21 - By Ransel Lopez
Back Hi everyone, I am trying to execute an Ant Task to get java classes from my service. The problem is that I am having problem with the classpath, because when I execute my task I get java.lang.NoClassDefFoundError : javax.wsdl.Definition. I am following the steps to execute the task as I read in the documentation; my code looks like this: <target name="axis.init"> <taskdef resource="axis-tasks.properties"> <classpath refid="project.lib.classpath"/> </taskdef> </target> <target name="wsdl2java" depends="axis.init"> <axis-wsdl2java output="${project.output}" deployScope="Application" verbose="true" serverSide="true" url="http://myservices/..."> <mapping namespace="http://axis.apache.org/..." package="test.temp" /> </axis-wsdl2java> </target>
The path project.lib.classpath is already defined and include my necessary jar files (wsdl4j.jar is included there)... When I debug my code I can see that my classpath is right and it supposes to include my jar files, but something is happening because at the end my task doesn't find my classes... am I missing something??? any hints?? Thank you in advance
Ransel L?pez, Web Services Developer
Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- -- ---- --- tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com <http://www.timeindustrial.com/>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- -- ---- --- This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Verdana size=2> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>Hi everyone,</SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004></SPAN></FONT> </DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>I am trying to execute an Ant Task to get java classes from my service. The problem is that I am having problem with the classpath, because when I execute my task I get <FONT color=#ff0000>java.lang.NoClassDefFoundError : javax.wsdl.Definition</FONT><FONT color=#000000>. I am following the steps to execute the task as I read in the documentation; my code looks like this:</FONT></SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004></SPAN></FONT> </DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004> <target name="axis.init"></SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004> <taskdef resource="axis-tasks.properties"><BR> <classpath refid="<FONT color=#008080><STRONG>project.lib.classpath</STRONG></FONT>"/><BR> </taskdef></SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004> </target><BR> <BR> <target name="wsdl2java" depends="axis.init"></SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004> <axis-wsdl2java <BR> output="${project.output}" <BR> deployScope="Application"<BR> verbose= "true"<BR> serverSide="true"<BR> url="<A href="http://myservices/...">http://myservices/...</A>"><BR> <mapping<BR> namespace="<A href="http://axis.apache.org/...">http://axis.apache.org/...</A>"<BR> package="test.temp" /><BR> </axis-wsdl2java> <BR> </target><BR> </SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>The path <FONT color=#008080><STRONG>project.lib.classpath</STRONG></FONT><FONT color=#000000> is already defined and include my necessary jar files (wsdl4j.jar is included there)...</FONT></SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004> </DIV></SPAN></FONT> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>When I debug my code I can see that my classpath is right and it supposes to include my jar files, but something is happening because at the end my task doesn't find my classes... am I missing something??? any hints??</SPAN></FONT></DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004></SPAN></FONT> </DIV> <DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>Thank you in advance</SPAN></FONT></DIV></FONT></DIV> <DIV><BR><BR><FONT face=Arial><FONT size=2><B>Ransel L?pez</B>, Web Services Developer</FONT></FONT></DIV> <P align=left><FONT face=Arial><FONT size=2><B>Time Industrial, Inc.</B></FONT></FONT><BR><FONT face=Arial><FONT size=2> An Outsourced Contractor Time and Cost Tracking Service.</FONT></FONT><BR><FONT face=Arial><FONT size=2> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- -- ---- ---- ---- -----</FONT></FONT><BR><FONT face=Arial><FONT size=2>tel: 780.413.1521 fax: 780.413.0474</FONT></FONT><BR><FONT face=Arial><FONT size=2> <A href="http://www.timeindustrial.com/">http://www.TimeIndustrial.com</A> </FONT></FONT><BR><FONT face=Arial><FONT size=2></FONT></FONT><BR><FONT face=Arial><FONT size=2> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- -- ---- ---- ---- -----</FONT></FONT><BR><FONT face=Arial><FONT size=2> This message and attached files, if any, is (are) intended only for the addressee(s) and may </FONT></FONT><BR><FONT face=Arial><FONT size=2> contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. </FONT></FONT><BR><FONT face=Arial><FONT size=2> If destined to our legal counsel, this transmission is privileged communication as between an </FONT></FONT><BR><FONT face=Arial><FONT size=2> attorney and its client.</FONT></FONT><BR><FONT face=Arial><FONT size=2> If you have received this message in error, please notify us immediately so that we may correct </FONT></FONT><BR><FONT face=Arial><FONT size=2> our internal records. Please then delete the original message. Thank you.</FONT></FONT></P> <P><!-- $MVD$:spaceretainer() --> <BR><FONT face=Arial><FONT size=2> </FONT></FONT> </P> <DIV> </DIV></BODY></HTML>
|
|
|