If the ws-eventing-2004-08.wsdl file is not in the
same directory as the primary wsdl then you need to
fully qualify the schemaLocation in the import
statement.  Something more like:

      <xsd:import
schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/eventing/eventing.xsd";
/>

Also if you need to go through a proxy, you may need
to set ant options:

ANT_OPTS="-Dhttp.proxyHost=yourproxyserver.com
-Dhttp.proxyPort=8888"



--- "Cobery, Marc (Marc)" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am having a problem generating my stubs from a
> WSDL with multiple
> imported schema and one imported WSDL.  I have
> included the stack trace
> from the ant task and attached the WSDL.  Any
> suggestions?
> 
> Regards,
> Marc
> 
> The ant task output:
> genXFire:
>     [wsgen] - Generating code for WSDL at
>
file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryServicePort.wsdl
> with a base URI of
>
file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryServicePort.wsdl
>     [wsgen] Retrieving document at
> 'ws-eventing-2004-08.wsdl', relative
> to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryServicePort.wsd
> l'.
>     [wsgen] Retrieving schema at
> 'ws-eventing-2004-08.xsd', relative to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/ws-eventing-2004-08.wsd
> l'.
>     [wsgen] Retrieving schema at 'xml.xsd', relative
> to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/ws-eventing-2004-08.xsd
> '.
>     [wsgen] Retrieving schema at
> 'ws-addressing-2004-08.xsd', relative
> to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/ws-eventing-2004-08.xsd
> '.
>     [wsgen] Retrieving schema at
> 'AdvisoryService.xsd', relative to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryServicePort.wsd
> l'.
>     [wsgen] Retrieving schema at
> 'external-common.xsd', relative to
>
'file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryService.xsd'.
>     [wsgen] - Adding wsdl definition
> ws-eventing-2004-08.wsdl with
> baseURI of
>
file:/E:/accurev/integration/DiamondPortal/wsdl/AdvisoryServicePort.wsdl
> 
> BUILD FAILED
> E:\accurev\integration\DiamondPortal\build.xml:244:
> java.lang.NullPointerException
>         at
>
org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:70)
>         at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at
> org.apache.tools.ant.Task.perform(Task.java:364)
>         at
> org.apache.tools.ant.Target.execute(Target.java:341)
>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
>
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:40)
>         at
>
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at
> org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.lang.NullPointerException
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBui
> lder.java:450)
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBui
> lder.java:400)
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBui
> lder.java:193)
>         at
>
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:130
> )
>         at
>
org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:66)
>         ... 12 more
> --- Nested Exception ---
> java.lang.NullPointerException
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBui
> lder.java:450)
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBui
> lder.java:400)
>         at
>
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBui
> lder.java:193)
>         at
>
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:130
> )
>         at
>
org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:66)
>         at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at
> org.apache.tools.ant.Task.perform(Task.java:364)
>         at
> org.apache.tools.ant.Target.execute(Target.java:341)
>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
>
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:40)
>         at
>
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at
> org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> 
> Total time: 3 seconds
> >
---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


Matthew Good
[EMAIL PROTECTED]
720-320-8376

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to