Jan,
Thanks for your help. This is the output I am getting now. Apparently the axis-wsdl2java task does not support a classpath element. Also attached my Ant task.
If classpath should be a subelement in the axis-wsdl2java task then the ant.html in the docs should change. IT does not show this in the sample.
Thanks,
-Alex
<target name="myusg">
<!-- <pathconvert targetos="windows" property="temp" refid="axis.classpath"/> -->
<axis-wsdl2java
output="src"
testcase="true"
verbose="true"
url=""http://myxyz.xyzdev.com/secure/user.asmx?WSDL">http://myxyz.xyzdev.com/secure/user.asmx?WSDL" >
<mapping
namespace="http://axis.apache.org/ns/interop"
package="interop" />
<classpath>
<path refid="axis.classpath" />
</classpath>
</axis-wsdl2java>
</target>
<!-- <pathconvert targetos="windows" property="temp" refid="axis.classpath"/> -->
<axis-wsdl2java
output="src"
testcase="true"
verbose="true"
url=""http://myxyz.xyzdev.com/secure/user.asmx?WSDL">http://myxyz.xyzdev.com/secure/user.asmx?WSDL" >
<mapping
namespace="http://axis.apache.org/ns/interop"
package="interop" />
<classpath>
<path refid="axis.classpath" />
</classpath>
</axis-wsdl2java>
</target>
Detected Java version: 1.4 in: c:\bea\jdk141_03\jre
Detected OS: Windows XP
parsing buildfile build.xml with URI = file:C:/dev/xyz-domain/build.xml
Project base dir set to: C:\dev\xyz-domain
[property] Loading C:\dev\xyz-domain\build.properties
[property] Unable to find property file: C:\dev\xyz-domain\build.properties
[property] Loading C:\dev\xyz-domain\common.properties
[property] Loading C:\Documents and Settings\aharvey\.ant.properties
[property] Unable to find property file: C:\Documents and Settings\aharvey\.ant.properties
Override ignored for property name
Override ignored for property src.dir
resolving systemId: file:./config/database/oracle.xml
[property] Loading Environment env.
[taskdef] Loading definitions from resource axis-tasks.properties
Detected OS: Windows XP
parsing buildfile build.xml with URI = file:C:/dev/xyz-domain/build.xml
Project base dir set to: C:\dev\xyz-domain
[property] Loading C:\dev\xyz-domain\build.properties
[property] Unable to find property file: C:\dev\xyz-domain\build.properties
[property] Loading C:\dev\xyz-domain\common.properties
[property] Loading C:\Documents and Settings\aharvey\.ant.properties
[property] Unable to find property file: C:\Documents and Settings\aharvey\.ant.properties
Override ignored for property name
Override ignored for property src.dir
resolving systemId: file:./config/database/oracle.xml
[property] Loading Environment env.
[taskdef] Loading definitions from resource axis-tasks.properties
BUILD FAILED
file:C:/dev/xyz-domain/build.xml:282: The <axis-wsdl2java> task doesn't support the nested "classpath" element.
at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:521)
at org.apache.tools.ant.helper.ProjectHelperImpl$NestedElementHandler.init(ProjectHelperImpl.java:960)
at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.startElement(ProjectHelperImpl.java:870)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
at org.apache.tools.ant.Main.runBuild(Main.java:596)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
file:C:/dev/xyz-domain/build.xml:282: The <axis-wsdl2java> task doesn't support the nested "classpath" element.
at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:521)
at org.apache.tools.ant.helper.ProjectHelperImpl$NestedElementHandler.init(ProjectHelperImpl.java:960)
at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.startElement(ProjectHelperImpl.java:870)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
at org.apache.tools.ant.Main.runBuild(Main.java:596)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 1 second
Jan Kester <[EMAIL PROTECTED]> wrote:
Jan Kester <[EMAIL PROTECTED]> wrote:
The taskdef is found, that is not the problem.Inside the wsdl2java task you will need to add a <classpath> sub element.Like:<classpath><path refid="axis.classpath" /><path refid="your.classpath.refid.for.wsdl.lib" /></classpath>Can you also try running ant with -v option?Good luck,Jan-----Mensaje original-----
De: Alex Harvey [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de diciembre de 2003 18:37
Para: [EMAIL PROTECTED]
Asunto: RE: Ant problem with axis-wsdl2java taskclasspath and task are defined as follows. The inclusion of wsdl4j and xerces are temporary. I'm having the exact same problem only including the Axis home dir.<path id="axis.classpath">
<fileset dir="${wsdl4j.home}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${xerces.home}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${axis.home.lib}">
<include name="**/*.jar" />
</fileset>
</path><taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" />
Jan Kester <[EMAIL PROTECTED]> wrote:Are you sure that the classpath is visible inside the axis-wsdl2java task? I think you will need to add it to this task with a <classpath /> subelement.Instead of printing a <echo message="${classpath}" /> you can better run ant with -v to see the classpath inside the task.How does your task look like?Regards, Jan-----Mensaje original-----
De: Alex Harvey [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de diciembre de 2003 18:01
Para: [EMAIL PROTECTED]
Asunto: Ant problem with axis-wsdl2java taskHi,I've been having a problem running the axis-wsdl2java task with Ant 1.5.4. I get a ClassNotFoundException from javax.wsdl.Definition. I've pretty much followed exactly the docs and even put the wsdl4j.jar directly in the classpath in front of the axis jars to no avail. Here's my Ant output. Do I need to try an earlier version of Ant?
myxyz:
[echo] axis.classpath: C:\bin\wsdl4j-1_4\lib\qname.jar;C:\bin\wsdl4j-1_4\lib\wsdl4j.jar;C:\bin\xerces-2_6_0\xercesImpl.jar;C:\bin\xerces-2_6_0\xercesSamples.jar;C:\bin\xerces-2_6_0\xml-apis.jar;C:\bin\xerces-2_6_0\xmlParserAPIs.jar;C:\bin\axis-1_2alpha\lib\axis-ant.jar;C:\bin\axis-1_2alpha\lib\axis.jar;C:\bin\axis-1_2alpha\lib\commons-discovery.jar;C:\bin\axis-1_2alpha\lib\commons-logging.jar;C:\bin\axis-1_2alpha\lib\jaxrpc.jar;C:\bin\axis-1_2alpha\lib\log4j-1.2.8.jar;C:\bin\axis-1_2alpha\lib\saaj.jar;C:\bin\axis-1_2alpha\lib\wsdl4j.jar
[axis-wsdl2java] Running Wsdl2javaAntTask with parameters:
[axis-wsdl2java] verbose:true
[axis-wsdl2java] debug:false
[axis-wsdl2java] server-side:false
[axis-wsdl2java] skeletonDeploy:false
[axis-wsdl2java] helperGen:false
[axis-wsdl2java] factory:null
[axis-wsdl2java] testCase:true
[axis-wsdl2java] noImports:false
[axis-wsdl2java] NStoPkg:{}
[axis-wsdl2java] output:C:\dev\xyz-domain\src
[axis-wsdl2java] protocolHandlerPkgs:
[axis-wsdl2java] deployScope:
[axis-wsdl2java] URL:http://myxyz.xyzdev.com/secure/user.asmx?WSDL
[axis-wsdl2java] all:false
[axis-wsdl2java] typeMappingVersion:1.1
[axis-wsdl2java] timeout:45000
[axis-wsdl2java] failOnNetworkErrors:false
[axis-wsdl2java] printStackTraceOnFailure:true
[axis-wsdl2java] namespaceMappingFile:null
[axis-wsdl2java] username:null
[axis-wsdl2java] :passwordnull
[axis-wsdl2java] :noWrappedfalse
[axis-wsdl2java] :classpathnull
[axis-wsdl2java] http.proxyHost=null
[axis-wsdl2java] http.proxyPort=null
[axis-wsdl2java] http.proxyUser=null
[axis-wsdl2java] http.proxyPassword=null
[axis-wsdl2java] socks.proxyHost=null
[axis-wsdl2java] socks.proxyPort=null
[axis-wsdl2java] java.lang.NoClassDefFoundError: javax.wsdl.Definition
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.class$(JavaGeneratorFactory.java:163)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addDefinitionGenerators(JavaGeneratorFactory.java:163)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addGenerators(JavaGeneratorFactory.java:133)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.<init>(JavaGeneratorFactory.java:120)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:120)
[axis-wsdl2java] at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:213)
[axis-wsdl2java] at org.apache.tools.ant.Task.perform(Task.java:341)
[axis-wsdl2java] at org.apache.tools.ant.Target.execute(Target.java:309)
[axis-wsdl2java] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[axis-wsdl2java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[axis-wsdl2java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[axis-wsdl2java] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[axis-wsdl2java] at org.apache.tools.ant.Main.start(Main.java:196)
[axis-wsdl2java] at org.apache.tools.ant.Main.main(Main.java:235)BUILD FAILED
file:C:/dev/xyz-domain/build.xml:278: Error while processing WSDL in Wsdl2javaAntTask for http://myxyz.xyzdev.com/secure/user.asmx?WSDLTotal time: 1 second
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Do you Yahoo!?
Free Pop-Up Blocker - Get it now