首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建carbon组件时出错

构建carbon组件时出错
EN

Stack Overflow用户
提问于 2014-12-05 03:52:55
回答 1查看 118关注 0票数 0

我一直在做http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/,但是当我使用wsdl文件创建客户端时,我得到了这个错误。我该如何解决这个问题。

代码语言:javascript
复制
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building WSO2 Carbon - Student Manager Stub 4.2.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ org.wso2.carbon.student.mgt.stub ---
    [INFO] Source directory: /home/jobs/wso2/Carbon/Old/org.wso2.carbon.student.mgt.stub/target/generated-code/src added.
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ org.wso2.carbon.student.mgt.stub ---
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 1 resource
    [INFO] 
    [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ org.wso2.carbon.student.mgt.stub ---
    [INFO] Executing tasks
    [java] Retrieving document at 'src/main/resources/StudentManager.wsdl'.
    [java] Dec 05, 2014 1:05:42 AM org.apache.axis2.schema.SchemaCompiler compile
    [java] WARNING: No schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd; compilation may fail
    [INFO] Executed tasks
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ org.wso2.carbon.student.mgt.stub ---
    [INFO] Changes detected - recompiling the module!
    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
    [INFO] Compiling 8 source files to /home/jobs/wso2/Carbon/Old/org.wso2.carbon.student.mgt.stub/target/classes

这个警告到底是什么意思呢?这是我不能理解的地方..

代码语言:javascript
复制
[java] WARNING: No schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd; compilation may fail
EN

回答 1

Stack Overflow用户

发布于 2014-12-18 23:01:54

看起来目标代码中的../data/xsd目录中的域类尚未更新。我怀疑后端组件已更新,wsdl已更改,但存根尚未更新/创建。因此,客户端组件并不知道这些修改。我建议您可以更新存根资源中的wsdl文件,重新构建存根和客户端可能会解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27302835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档