You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Brad Baker (JIRA)" <ax...@ws.apache.org> on 2005/01/26 21:16:17 UTC
[jira] Created: (AXIS-1783) ant task class path error leads to a ClassNotFoundException
ant task class path error leads to a ClassNotFoundException
-----------------------------------------------------------
Key: AXIS-1783
URL: http://issues.apache.org/jira/browse/AXIS-1783
Project: Axis
Type: Bug
Components: WSDL processing
Versions: current (nightly)
Environment: Windows xp sp 1
Reporter: Brad Baker
I have been read looking at this for 3 days and cant seem to see my error and yes I have read the list server for the past 6 months seeing if this has been already answered. Many similar questions, no solutions. =(
Here is the verbose output:
generate-wsdl:
[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(ClassUtils.java:203)
[axis-java2wsdl] at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
[axis-java2wsdl] at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2070)
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="wsdl.name" value="${wsdl.class}.wsdl"/>
<property name="namespace" value="urn:JISR"/>
<property name="service.name" value="CurrentIntelProvidersService"/>
<property name="ws.prefix" value="com\ngc\jisr\webservices"/>
<!-- Compile the web service interface -->
<target name="compile-interface" depends="init">
<javac
srcdir="${src.ws.dir}"
destdir="${build.dir}"
includes="${src.includes}"
/>
</target>
<!-- Compile the WSDL from java interface -->
<target name="generate-wsdl" depends="compile-interface">
<taskdef resource="axis-tasks.properties" >
<classpath>
<fileset dir="${axis.lib}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<axis-java2wsdl
output="${build.dir}\${wsdl.name}"
classname="${ws.prefix}\${wsdl.class}"
style="wrapped"
namespace="${namespace}"
location="http://${host.ip}:${host.port}/axis/services/${service.name}"
>
<classpath>
<pathelement location="${build.dir}"/>
</classpath>
</axis-java2wsdl>
</target>
Thanks for the help,
Brad
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS-1783) ant task class path error leads to a ClassNotFoundException
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1783?page=history ]
Davanum Srinivas resolved AXIS-1783:
------------------------------------
Resolution: Fixed
Fixed in latest CVS.
thanks,
dims
> ant task class path error leads to a ClassNotFoundException
> -----------------------------------------------------------
>
> Key: AXIS-1783
> URL: http://issues.apache.org/jira/browse/AXIS-1783
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: current (nightly)
> Environment: Windows xp sp 1
> Reporter: Brad Baker
>
> I have been read looking at this for 3 days and cant seem to see my error and yes I have read the list server for the past 6 months seeing if this has been already answered. Many similar questions, no solutions. =(
> Here is the verbose output:
> generate-wsdl:
> [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(ClassUtils.java:203)
> [axis-java2wsdl] at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
> [axis-java2wsdl] at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2070)
>
> 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="wsdl.name" value="${wsdl.class}.wsdl"/>
> <property name="namespace" value="urn:JISR"/>
> <property name="service.name" value="CurrentIntelProvidersService"/>
> <property name="ws.prefix" value="com\ngc\jisr\webservices"/>
>
> <!-- Compile the web service interface -->
> <target name="compile-interface" depends="init">
> <javac
> srcdir="${src.ws.dir}"
> destdir="${build.dir}"
> includes="${src.includes}"
> />
> </target>
>
> <!-- Compile the WSDL from java interface -->
> <target name="generate-wsdl" depends="compile-interface">
> <taskdef resource="axis-tasks.properties" >
> <classpath>
> <fileset dir="${axis.lib}">
> <include name="*.jar"/>
> </fileset>
> </classpath>
> </taskdef>
> <axis-java2wsdl
> output="${build.dir}\${wsdl.name}"
> classname="${ws.prefix}\${wsdl.class}"
> style="wrapped"
> namespace="${namespace}"
> location="http://${host.ip}:${host.port}/axis/services/${service.name}"
> >
> <classpath>
> <pathelement location="${build.dir}"/>
> </classpath>
> </axis-java2wsdl>
> </target>
>
> Thanks for the help,
> Brad
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira