[ http://jira.codehaus.org/browse/XFIRE-235?page=comments#action_78387 ] 
            
huanhuanzhang commented on XFIRE-235:
-------------------------------------

I still got the problem.I'm using XFire 1.2.2 with XmlSchema-1.1.jar, & want to 
generate server-side code of osga-dai(It uses Axis as its soap engine,& i think 
XFire is better.So i decide to modify it's server-side stub),it still throw the 
Exception"Couldn't find schema for part".
My build.xml:
<?xml version="1.0"?>
<project name="project" default="wsdl2java">
        <target name="wsdl2java" depends="init" description="">
        </target>
        <target name="init">
                <path id="xfire.classpath">
                        <fileset dir="D:\todo\WebService\XFire\xfire-1.2.2" 
id="id">
                                <include name="**/*.jar" />
                        </fileset>

                </path>
        </target>
        <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask"
                classpathref="xfire.classpath" />
        <wsgen outputDirectory="${basedir}/target/generated-source"
                wsdl="${basedir}/schema/ogsadai/wsi/data_service_port_type.wsdl"
                package="uk.org.ogsadai.types"
                overwrite="true"
                binding="xmlbeans"
        />
</project>

& the ant log is:

Detected Java version: 1.5 in: D:\soft\Green\jdk1.5.0_07\jre
Detected OS: Windows XP
parsing buildfile D:\soft\eclipse\workspace\xxx\build.xml with URI = 
file:///D:/soft/eclipse/workspace/xxx/build.xml
Project base dir set to: D:\soft\eclipse\workspace\xxx
    [wsgen] 2006-10-25 16:01:54 org.codehaus.xfire.gen.Wsdl11Generator generate
    [wsgen] &#20449;&#24687;: Generating code for WSDL at 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
 with a base URI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
    [wsgen] Retrieving document at 'perform_port_type.wsdl', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl'.
    [wsgen] Retrieving document at '../wsdl/dai_port_type.wsdl', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/perform_port_type.wsdl'.
    [wsgen] Retrieving schema wsdl:imported from 
'../types/dai_service_types.xsd', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/dai_port_type.wsdl'.
    [wsgen] Retrieving schema wsdl:imported from 
'../types/dai_service_faults.xsd', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/dai_port_type.wsdl'.
    [wsgen] Retrieving document at '../wsdl/perform_port_type.wsdl', relative 
to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/perform_port_type.wsdl'.
    [wsgen] Retrieving schema wsdl:imported from '../types/message_types.xsd', 
relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/perform_port_type.wsdl'.
    [wsgen] Retrieving document at 'dai_port_type.wsdl', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl'.
    [wsgen] Retrieving document at '../wsdl/transport_port_type.wsdl', relative 
to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl'.
    [wsgen] Retrieving schema wsdl:imported from '../types/message_types.xsd', 
relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/transport_port_type.wsdl'.
    [wsgen] Retrieving document at 'transport_port_type.wsdl', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl'.
    [wsgen] Retrieving document at 'ws_resource_properties_port_type.wsdl', 
relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl'.
    [wsgen] Retrieving schema at 'ws_resource_properties.xsd', relative to 
'file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/ws_resource_properties_port_type.wsdl'.
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition 
ws_resource_properties_port_type.wsdl with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition dai_port_type.wsdl with 
baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition ../wsdl/dai_port_type.wsdl 
with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/dai_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition 
../types/dai_service_faults.xsd with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/dai_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition 
../types/dai_service_types.xsd with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/dai_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition transport_port_type.wsdl 
with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition 
../wsdl/transport_port_type.wsdl with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/transport_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition ../types/message_types.xsd 
with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsdl/transport_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition perform_port_type.wsdl 
with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/data_service_port_type.wsdl
    [wsgen] 2006-10-25 16:01:55 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
    [wsgen] &#20449;&#24687;: Adding wsdl definition 
../wsdl/perform_port_type.wsdl with baseURI of 
file:/D:/soft/eclipse/workspace/xxx/schema/ogsadai/wsi/perform_port_type.wsdl

BUILD FAILED
D:\soft\eclipse\workspace\xxx\build.xml:41: 
org.codehaus.xfire.XFireRuntimeException: Couldn't find schema for part: 
{http://ogsadai.org.uk/namespaces/2005/10/service/perform/types}perform
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:45)
        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.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        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: org.codehaus.xfire.XFireRuntimeException: Couldn't find schema for 
part: {http://ogsadai.org.uk/namespaces/2005/10/service/perform/types}perform
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:521)
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:376)
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:187)
        at 
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:100)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41)
        ... 9 more
--- Nested Exception ---
org.codehaus.xfire.XFireRuntimeException: Couldn't find schema for part: 
{http://ogsadai.org.uk/namespaces/2005/10/service/perform/types}perform
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:521)
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:376)
        at 
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:187)
        at 
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:100)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41)
        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.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        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: 2 seconds


Is it a XFire's bug or osga-dai's bug?



> "Couldn't find schema for part:" exception when generating client code from 
> BookService wsdl
> --------------------------------------------------------------------------------------------
>
>                 Key: XFIRE-235
>                 URL: http://jira.codehaus.org/browse/XFIRE-235
>             Project: XFire
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 1.0-M6
>         Environment: Windows XP
> JDK 1.5.0_04
> ANT 1.6.5 compiled on June 2 2005
>            Reporter: Joseph Culjak
>         Assigned To: Mika Goeckel
>             Fix For: 1.0-RC
>
>         Attachments: BookService.wsdl
>
>
> An org.codehaus,xfire.XFireRuntimeException _: Couldn't find schema for part: 
> {http://xfire.codehaus.org/BookService}getBooks is throw when executing the 
> wsgen task in an ant build file.  Moreover, using xfire-all-1.0-SNAPSHOT.jar 
> (downloaded on Jan 16th) and also 
> http://dist.codehaus.org/xfire/jars/xfire-all-1.0-20060110.191103.jar 
> produced the same stacktrace.
> The wsdl used is attached.  It was created by saving 
> http://localhost:8080/sandbox/services/BookService.wsdl to a file and naming 
> it BookService.wsdl.  This is for the demo book service that comes with the 
> distribution.  When I run the WsGenTask the follow error happens:
> org.codehaus.xfire.XFireRuntimeException: Couldn't find schema for part: 
> {http://xfire.codehaus.org/BookService}getBooks
>         at 
> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:412)
>         at 
> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:265)
>         at 
> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.walkTree(WSDLServiceBuilder.java:160)
>         at 
> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:52)
>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:29)
>         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(DefaultExecutor.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)
> Here is the ant task snippet.
> <path id="wsgen.classpath">
> <fileset id="lib.xfire" dir="lib">
> <patternset>
>       <include name="xfire/1.0-M6a/xfire-all-1.0-M6a.jar" />
>       <include name="sun/jaf/jaf-1.0.2/activation.jar"/>
>       <include name="jakarta/commons/codec/1.3/commons-codec-1.3.jar" />
>       <include 
> name="xfire/1.0-M6a/libs/runtime/commons-httpclient-3.0-rc3.jar" />
>       <include name="jakarta/commons/logging/1.0.4/commons-logging.jar" />
>       <include name="jdom/1.0/jdom.jar" />
>       <include name="logging/log4j/1.2.9/dist/lib/log4j-1.2.9.jar" />
>       <include name="spring/1.2.6/dist/spring.jar" />
>       <include name="xfire/1.0-M6a/libs/runtime/stax-api-1.0.jar" />
>       <include name="webservices/wsdl4j-1_5_2/lib/wsdl4j.jar" />
>       <include name="jakarta/velocity/1.4/velocity-1.4.jar" />
>       <include name="xfire/1.0-M6a/libs/runtime/xbean-2.0.0-beta1.jar" />
>       <include name="xml/stax/woodstock/2.0.4/wstx-asl-2.0.4.jar" />
>       <include name="xfire/1.0-M6a/xfire-generator-1.0-M6a.jar" />
> </patternset>
> </fileset>
> </path>
> <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" 
> classpathref="wsgen.classpath" />
> <target name="genclient">
>       <wsgen outputdirectory="src-client" 
> wsdl="${build.dir}/BookService.wsdl" binding="xmlbeans"/>
> </target>

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

        

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

    http://xircles.codehaus.org/manage_email

Reply via email to