File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes AXIS-JAVA2WSDL  ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS-JAVA2WSDL  ClassNotFoundException" Watch "AXIS-JAVA2WSDL  ClassNotFoundException" New topic

AXIS-JAVA2WSDL ClassNotFoundException

B Baker

Joined: Jan 26, 2005
Posts: 1
Hi all,
I have been read looking at this for 3 days and can�t seem to see my error.

Here is the verbose output:

[axis-java2wsdl] Using CLASSPATH C:\Work\ws\build [axis-java2wsdl] Running Java2WsdlAntTask with parameters:
[axis-java2wsdl] namespace:urn:JISR
[axis-java2wsdl] PkgtoNS:{}
[axis-java2wsdl] location:http://localhost:7070/axis/services/CurrentIntelProvidersService
[axis-java2wsdl] output:C:\Work\ws\build\CurrentIntelProviders.wsdl
[axis-java2wsdl] importSchema:null
[axis-java2wsdl] input:null
[axis-java2wsdl] className:com\ngc\jisr\webservices\CurrentIntelProviders

[axis-java2wsdl] servicePortName:null
[axis-java2wsdl] portTypeName:null
[axis-java2wsdl] bindingName:null
[axis-java2wsdl] implClass:null
[axis-java2wsdl] inheritance:false
[axis-java2wsdl] excluded:null
[axis-java2wsdl] stopClasses:null
[axis-java2wsdl] typeMappingVersion:1.1
[axis-java2wsdl] style:wrapped
[axis-java2wsdl] outputImpl:null
[axis-java2wsdl] use:null
[axis-java2wsdl] namespaceImpl:null
[axis-java2wsdl] locationImport:null
[axis-java2wsdl] serviceElementName:null
[axis-java2wsdl] methods:null
[axis-java2wsdl] extraClasses:null
[axis-java2wsdl] soapAction:null
[axis-java2wsdl] :classpathC:\Work\ws\build
[axis-java2wsdl] Java2WSDL com\ngc\jisr\webservices\CurrentIntelProviders
[axis-java2wsdl] java.lang.ClassNotFoundException: com\ngc\jisr\webservices\CurrentIntelProviders
[axis-java2wsdl] at org.apache.axis.utils.ClassUtils.loadClass(
[axis-java2wsdl] at org.apache.axis.utils.ClassUtils.forName(
[axis-java2wsdl] at org.apache.axis.wsdl.fromJava.Emitter.setCls(

First why does it have :classpathC:\Work\ws\build and not classpath:C:\Work\ws\build ??? All the other elements are name:value but this is :namevalue.

Here is my ant buil.xml snippet:
<property name="wsdl.class" value="CurrentIntelProviders"/>
<property name="" value="${wsdl.class}.wsdl"/>
<property name="namespace" value="urn:JISR"/>
<property name="" value="CurrentIntelProvidersService"/>
<property name="ws.prefix" value="com\ngc\jisr\webservices"/>

<!-- Compile the web service interface -->
<target name="compile-interface" depends="init">

<!-- Compile the WSDL from java interface -->
<target name="generate-wsdl" depends="compile-interface">
<taskdef resource="" >
<fileset dir="${axis.lib}">
<include name="*.jar"/>
<pathelement location="${build.dir}"/>

Thanks for the help,
Kamlesh Sangani

Joined: Feb 28, 2004
Posts: 22
i use the -X VM classpath argument for java2wsdl. did u try that???

Lets Java !<br />Kamlesh
I agree. Here's the link:
subject: AXIS-JAVA2WSDL ClassNotFoundException
Similar Threads
Problem in ServiceGen task
Error using java2wsdl ant task
Java2WsdlAntTask cannot be found using the classloader AntClassLoader
Error with XDoclet In Hibernate
AXIS 1, ant, java2wsdl in NetBeans 5.5