我一直在做http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/,但是当我使用wsdl文件创建客户端时,我得到了这个错误。我该如何解决这个问题。
[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这个警告到底是什么意思呢?这是我不能理解的地方..
[java] WARNING: No schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd; compilation may fail发布于 2014-12-18 23:01:54
看起来目标代码中的../data/xsd目录中的域类尚未更新。我怀疑后端组件已更新,wsdl已更改,但存根尚未更新/创建。因此,客户端组件并不知道这些修改。我建议您可以更新存根资源中的wsdl文件,重新构建存根和客户端可能会解决这个问题。
https://stackoverflow.com/questions/27302835
复制相似问题