You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Black <jb...@ieee.org> on 2004/10/07 20:34:34 UTC
re: problem getting java2wsdl ant task to be created
I don't know what I am doing wrong, so I thought I would ask, and
hopefully someone can help me understand what may have happened. Thanx.
I get this error:
BUILD FAILED /export2/home/jblack/src/java/build.xml:82: Could not create
task or type of type: java2wsdl.
When I ran it with -verbose here is what I got for info:
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/jdk1.5.0/jre
Detected OS: SunOS
parsing buildfile /export2/home/jblack/src/java/build.xml with URI =
file:///export2/home/jblack/src/java/build.xml
Project base dir set to:/export2/home/jblack/src/java
Build sequence for target `generate_securitywsdl' is [generate_securitywsdl]
and here is my snippet from the ant file, where all of my external jar files are in lib.dir:
<path id="axis.classpath">
<fileset dir="${lib.dir}">
<include name="axis-ant.jar"/>
<include name="axis.jar"/>
<include name="commons-discovery.jar"/>
<include name="commons-logging.jar"/>
<include name="jaxrpc.jar"/>
<include name="log4j-1.2.8.jar"/>
<include name="saaj.jar"/>
<include name="wsdl4j.jar"/>
</fileset>
</path>
<taskdef resource="axis-tasks.properties"
classpathref="axis.classpath"/>
<target name="generate_securitywsdl">
<delete file="dist/wsdl/securityserver.wsdl"/>
<java2wsdl
implclass="edu.usf.acomp.axis.SecurityStub"
location="${axis.html.url}/Security"
namespace="http://localhost/axis/services/Security"
output="dist/wsdl/securityserver.wsdl"
useinheritedmethods="false"
classname="edu.usf.acomp.axis.Security"
typemappingversion="1.2">
<mapping
namespace="http://localhost/axis/services/Security"
package="edu.usf.acomp.axis"/>
<classpath>
<pathelement location="classes"/>
</classpath>
</java2wsdl>
</target>
--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black james@usf.edu
Where is the session id or object stored in the Client side.
Posted by Dacheng <dc...@comp.leeds.ac.uk>.
Hi, everybody:
I am reading the source code of org.apache.axis.client.*. I tried to find
out where the session id is stored so that the client side can insert
session id into MessageContext object when the message is sent out.
Unfortunately I still cannot find out which class is used to handle it. Can
anybody help me?
Thanks in advance
Dacheng
Re: problem getting java2wsdl ant task to be created
Posted by Peter Smith <pe...@fast.fujitsu.com.au>.
I think the task is called "axis-java2wsdl"; not "java2wsdl".
Refer to the axis-tasks.properties file in your axis-ant.jar and/or the
documentation in <axis>/docs/ant
Cheers,
Peter.
----- Original Message -----
From: "James Black" <jb...@ieee.org>
To: <ax...@ws.apache.org>
Sent: Friday, October 08, 2004 4:34 AM
Subject: re: problem getting java2wsdl ant task to be created
> I don't know what I am doing wrong, so I thought I would ask, and
> hopefully someone can help me understand what may have happened. Thanx.
>
> I get this error:
>
> BUILD FAILED /export2/home/jblack/src/java/build.xml:82: Could not create
> task or type of type: java2wsdl.
>
> When I ran it with -verbose here is what I got for info:
> Apache Ant version 1.6.2 compiled on July 16 2004
> Buildfile: build.xml
> Detected Java version: 1.5 in: /usr/jdk1.5.0/jre
> Detected OS: SunOS
> parsing buildfile /export2/home/jblack/src/java/build.xml with URI =
> file:///export2/home/jblack/src/java/build.xml
> Project base dir set to:/export2/home/jblack/src/java
> Build sequence for target `generate_securitywsdl' is
[generate_securitywsdl]
>
> and here is my snippet from the ant file, where all of my external jar
files are in lib.dir:
> <path id="axis.classpath">
> <fileset dir="${lib.dir}">
> <include name="axis-ant.jar"/>
> <include name="axis.jar"/>
> <include name="commons-discovery.jar"/>
> <include name="commons-logging.jar"/>
> <include name="jaxrpc.jar"/>
> <include name="log4j-1.2.8.jar"/>
> <include name="saaj.jar"/>
> <include name="wsdl4j.jar"/>
> </fileset>
> </path>
>
> <taskdef resource="axis-tasks.properties"
> classpathref="axis.classpath"/>
>
> <target name="generate_securitywsdl">
> <delete file="dist/wsdl/securityserver.wsdl"/>
> <java2wsdl
> implclass="edu.usf.acomp.axis.SecurityStub"
> location="${axis.html.url}/Security"
> namespace="http://localhost/axis/services/Security"
> output="dist/wsdl/securityserver.wsdl"
> useinheritedmethods="false"
> classname="edu.usf.acomp.axis.Security"
> typemappingversion="1.2">
> <mapping
> namespace="http://localhost/axis/services/Security"
> package="edu.usf.acomp.axis"/>
> <classpath>
> <pathelement location="classes"/>
> </classpath>
> </java2wsdl>
> </target>
>
>
>
> --
> "Love is mutual self-giving that ends in self-recovery." Fulton Sheen
> James Black james@usf.edu
>
This is an email from Fujitsu Australia Software Technology Pty Ltd, ABN 27 003 693 481. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you.
If you do not wish to receive commercial email messages from Fujitsu Australia Software Technology Pty Ltd, please email unsubscribe@fast.fujitsu.com.au