Mailing List
Home
Forum Home
Cocoon - MVC web framework based on XML/XSL
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database, Microsoft SQL server ...
MySQL - an open source database
Red Hat Linux Installation and Config discussions ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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 Source code of 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>&nbsp;</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 Source code of 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>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>&nbsp;&lt;target
name="axis.init"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=199232418-20012004>&nbsp;&nbsp;
&lt;taskdef resource="axis-tasks.properties"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;classpath refid="<FONT
color=#008080><STRONG>project.lib.classpath</STRONG></FONT>"/&gt;<BR>&nbsp;
&nbsp;&lt;/taskdef&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=199232418-20012004>&nbsp;&lt;/target&gt;<BR>&nbsp;<BR>&nbsp;&lt;target
name="wsdl2java" depends="axis.init"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=199232418-20012004>&nbsp;&nbsp;&lt;axis-wsdl2java
<BR>&nbsp;&nbsp;&nbsp;output="${project.output}"
<BR>&nbsp;&nbsp;&nbsp;deployScope="Application"<BR>&nbsp;&nbsp;&nbsp;verbose=
"true"<BR>&nbsp;&nbsp;&nbsp;serverSide="true"<BR>&nbsp;&nbsp;&nbsp;url="<A
href="http://myservices/...">http://myservices/...</A>"&gt;<BR>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
&lt;mapping<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; namespace="<A
href="http://axis.apache.org/...">http://axis.apache.org/...</A>"<BR>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
package="test.temp"
/&gt;<BR>&nbsp;&nbsp;&lt;/axis-wsdl2java&gt;&nbsp;<BR>&nbsp;&lt;/target&gt;<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>&nbsp;</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>&nbsp;</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>&nbsp;An Outsourced
Contractor Time and Cost Tracking Service.</FONT></FONT><BR><FONT
face=Arial><FONT
size=2>&nbsp;-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
-- ---- ---- ---- -----</FONT></FONT><BR><FONT
face=Arial><FONT size=2>tel: 780.413.1521&nbsp; fax:
780.413.0474</FONT></FONT><BR><FONT face=Arial><FONT size=2>&nbsp;<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>&nbsp;-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
-- ---- ---- ---- -----</FONT></FONT><BR><FONT
face=Arial><FONT size=2>&nbsp;This message and attached files, if any, is (are)
intended&nbsp;only for the addressee(s)
and&nbsp;may&nbsp;</FONT></FONT><BR><FONT face=Arial><FONT size=2>&nbsp;contain
privileged or&nbsp;confidential&nbsp;information. Any unauthorized disclosure
is&nbsp;strictly prohibited.&nbsp;</FONT></FONT><BR><FONT face=Arial><FONT
size=2>&nbsp;If destined to our legal counsel, this&nbsp;transmission is
privileged communication as between an&nbsp;</FONT></FONT><BR><FONT
face=Arial><FONT size=2>&nbsp;attorney&nbsp;and its
client.</FONT></FONT><BR><FONT face=Arial><FONT size=2>&nbsp;If you have
received this message in error, please notify&nbsp;us immediately so that we
may
correct&nbsp;</FONT></FONT><BR><FONT face=Arial><FONT
size=2>&nbsp;our&nbsp;internal&nbsp;records. Please then delete the original
message. Thank you.</FONT></FONT></P>
<P><!-- $MVD$:spaceretainer() -->&nbsp;<BR><FONT face=Arial><FONT
size=2>&nbsp;</FONT></FONT> </P>
<DIV>&nbsp;</DIV></BODY></HTML>