----- Original Message -----
From: "Gene Chuang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 18:59
Subject: Re: axis ant task in netbeans
>
> Whoops, sorry about posting Classpath-related exceptions. After going
through the Ant manual, I rewrote my build.xml so now it looks like:
> <project>
> <path id="axisjars"\>
> <path id="xercesjar"\>
> <path id="project.classpath">
> <pathelement location="."/>
> <path refid="axisjars"/>
> <path refid="xercesjar"/>
> </path>
> <taskdef classpathref="axisjars" resource="axis-tasks.properties"/>
> <target depends="init" description="Generate WSDL from classes."
name="java2wsdl">
> <echo message="Building wsdl for ${my_service} at ${my_url}"/>
> <axis-java2wsdl extraclasses="" classname="${my_service}"
location="${my_url}">
> <classpath refid="project.classpath"/>
> </axis-java2wsdl>
> </target>
> </project>
> If I run ant java2wsdl task from NetBeans 3.4, I get:
> Java2WSDL com.overture.service.Advertiser
> java.io.FileNotFoundException: . (Access is denied)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> at
org.apache.axis.wsdl.fromJava.Emitter.prettyDocumentToFile(Emitter.java:1330
)
I'd try specifiying an output="some file name" attr, as that the netbeans
failure looks related to that (and where its notion of the current directory
is, I suspect). That might give you a consistent failure across both
invocation mechanisms.
> If I run "ant java2wsdl" from commandline, I get the following error:
> [axis-java2wsdl] [Fatal Error] :2:51: The value of the attribute
"prefix="xmlns" ,localpart="impl",rawname="xmlns:impl"" is invalid. Prefixed
namespace bindings
> may not be empty. [axis-java2wsdl] WSDLException: faultCode=PARSER_ERROR:
Problem parsing '- WSDL Document -'.: The value of the attribute
"prefix="xmlns",localpart="impl",rawname="xmlns:impl"" is invalid. Prefixed
namespace bindings may not be empty.: org.xml.sax.SAXParseException: The
value of the attribute
"prefix="xmlns",localpart="impl",rawname="xmlns:impl"" is invalid. Prefixed
namespace bindings may not be empty.
That I dont know.