[ http://jira.codehaus.org/browse/XFIRE-374?page=comments#action_64714 ] 

Vjeran Marcinko commented on XFIRE-374:
---------------------------------------

Here is my lib directory:

xfire-all-1.1-RC1.jar
xfire-jsr181-api-1.0-M1.jar
wsdl4j-1.5.2.jar
XmlSchema-1.0.1.jar
activation-1.0.2.jar
commons-logging-1.0.4.jar
jaxb-api-2.0-ea3.jar
jaxb-impl-2.0-ea3.jar
jaxb-xjc-2.0-ea3.jar
jaxen-1.1-beta-8.jar
jdom-1.0.jar
mail-1.3.3_01.jar
servlet-api-2.3.jar
stax-api-1.0.jar
stax-utils-snapshot-20040917.jar
sun-jaxws-api-2.0-ea3.jar
sun-saaj-api-2.0-ea3.jar
sun-saaj-impl-2.0-ea3.jar
wstx-asl-2.9.jar

Here's the stack trace:

Buildfile: build.xml

wsdl2java:

BUILD FAILED
C:\IdeaProjects\xfiretest\build.xml:18: WSDLException (at 
/definitions/import[1]): faultCode=OTHER_ERROR: Unable to resolve imported 
document at 'osa.wsdl', relative to 'C:\IdeaProjects\xfiretest': This file was 
not found: file:/C:/IdeaProjects/xfiretest/osa.wsdl: 
java.io.FileNotFoundException: This file was not found: 
file:/C:/IdeaProjects/xfiretest/osa.wsdl
        at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.<init>(WSDLServiceBuilder.java:111)
        at 
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:67)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)


> Imported WSDLs are not searched in the same directory as specified (root) one
> -----------------------------------------------------------------------------
>
>          Key: XFIRE-374
>          URL: http://jira.codehaus.org/browse/XFIRE-374
>      Project: XFire
>         Type: Bug

>   Components: Generator
>     Versions: 1.1-RC1
>     Reporter: Vjeran Marcinko
>     Assignee: Dan Diephouse
>      Fix For: 1.1

>
>
> If one use wsgen task to generate classes from mywebservice.wsdl located in 
> ${source.dir}/wsdls, like this :
> <wsgen outputDirectory="${source.dir}/java" 
> wsdl="${source.dir}/wsdls/mywebservice.wsdl"/>
> WSDLs imported from that mywebservice.wsdl are not searched in the same 
> directory as specified WSDL, but in current directory where ant task is 
> called, which I guess will almost never be the case since most of people 
> place all related WSDLs in the same directory.
> I guess WsGenTask should as default pass this directory parameter to 
> underlying generation process.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to