>I'd try specifiying an output="some file name" attr
Yup, that did the trick, at least when running the task in NetBeans.  The wsdl was generated after the "BUILD SUCCESSFUL" message, although subsequently NB pops an Exception window with a StackOverflow message:

Annotation:  Exception occurred in Request Processor
java.lang.StackOverflowError
  at java.util.HashMap.hash(HashMap.java:257)
  at java.util.HashMap.get(HashMap.java:313)
  at java.util.Collections$SynchronizedMap.get(Collections.java:1938)
  at org.apache.tools.ant.module.api.lIntrospectedInfo.isKnown(IntrospectedInfo.java:244)
  at org.apache.tools.ant.module.api.lIntrospectedInfo.analyze(IntrospectedInfo.java:386)
  at org.apache.tools.ant.module.api.lIntrospectedInfo.analyze(IntrospectedInfo.java:452)
  at org.apache.tools.ant.module.api.lIntrospectedInfo.analyze(IntrospectedInfo.java:452)
  ...

Oh well, I got the wsdl finally from the Ant, so I'm not gonna worry too much about this.  However, with the output="file" attr, running Ant from commandline still gets me the WSDLException faultCode=PARSER_ERROR.  I'm not sure why the two runs are going through different codepaths, unless this is still a classpath issue... 

I'm also surprised that the the standalone Java2WSDL and ant-task Java2Wsdl do not use the same code for attribute processing;  this accounts for the majority of the stumbling blocks I'm going through, having to plug in default values that I assume will be supplied to me.  Hopefully this will change in the next release?

Gene

 Steve Loughran <[EMAIL PROTECTED]> wrote:


----- 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:
>
>
>
>
>
>
>
>

>
> name="java2wsdl">
>
> location="${my_url}">
>
>

>

>


> 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.(FileOutputStream.java:176)
> at java.io.FileOutputStream.(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.

Reply via email to