我已经通过了wso2 doc: https://docs.wso2.com/display/Governance460/Changing+Storage+Location+of+Services
当我在regisrty.xml文件中更改服务的位置时。
<staticConfiguration>
<versioningProperties>true</versioningProperties>
<versioningComments>true</versioningComments>
<versioningTags>true</versioningTags>
<versioningRatings>true</versioningRatings>
<!-- Location you want to add service and default location will be /services/ -->
<servicePath>/trunk/services/mylocation</servicePath>
</staticConfiguration>
当试图注册抛出以下异常的服务时:
错误{org.wso2.carbon.governance.api.common.GovernanceArtifactManager} - 无法添加工件:工件ID:153b122e-5b4f-4e8e-bbe0-e7934da571d0,路径:/ trunk / services / mylocation / sample / com /为MyService。 path / _system / governance / trunk / services / sample / com中不存在资源 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:path / _system / governance / trunk / services / sample / com中不存在资源
如何解决错误
提前致谢...
答案 0 :(得分:0)
在rxt级别尝试,转到主页&gt;扩展程序&gt;配置&gt;神器类型&gt;工件源(选择工件类型)并通过更改以下行来更改存储路径
<storagePath>/trunk/services/@{namespace}/@{overview_version}/@{name}</storagePath>