axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Kester" <jan.kes...@puntoseguro.com>
Subject RE: Ant problem with axis-wsdl2java task
Date Tue, 02 Dec 2003 17:02:07 GMT
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:p_alexander_harvey@yahoo.com]
  Enviado el: martes, 02 de diciembre de 2003 18:01
  Para: axis-user@ws.apache.org
  Asunto: Ant problem with axis-wsdl2java task


  Hi,

  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\xerc
es-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_2alph
a\lib\axis-ant.jar;C:\bin\axis-1_2alpha\lib\axis.jar;C:\bin\axis-1_2alpha\li
b\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(Jav
aGeneratorFactory.java:163)
  [axis-wsdl2java]  at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addGenerators(JavaGenerator
Factory.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.jav
a: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?WSDL
  Total time: 1 second



----------------------------------------------------------------------------
--
  Do you Yahoo!?
  Free Pop-Up Blocker - Get it now

Mime
View raw message