简体   繁体   English

部署碳归档时,WS02 GREG错误

[英]WS02 GREG ERROR when deploying carbon archive

I am trying to upload a carbon archive in the registry. 我正在尝试在注册表中上传碳档案。 Everything seems to be OK when I add a new application, but the log show the following error: 当我添加一个新的应用程序时,一切似乎都正常,但日志显示以下错误:

An error occurred while determining the latest version of the resource at the given path:
/_system/governance/trunk/wsdls/.... (path to the wsld deployed)
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to obtain the user realm for tenant: -1

I log with the admin user and everything that should be upload is in the registry. 我以管理员用户身份登录,应该上载的所有内容都在注册表中。

Any help? 有什么帮助吗?

Thanks, 谢谢,

I tried to reproduce this with WSO2 G-Reg 4.1.1 but unable to reproduce it. 我尝试使用WSO2 G-Reg 4.1.1重现此内容,但无法重现它。

Please indicate the G-Reg version you have tried out this scenario. 请指出您已尝试此方案的G-Reg版本。

When you upload the CAR file from Management Console, make sure to remove the previous version of the same CAR file before you upload the newer version. 从管理控制台上载CAR文件时,请确保先删除同一CAR文件的先前版本,然后再上载较新版本。

This error seems to be related versioning. 此错误似乎与版本控制有关。

Since you remove the previous version of the CAR file, the aforementioned suggestion will solve your problem. 由于您删除了CAR文件的先前版本,因此上述建议将解决您的问题。

Thanks and Regards, 谢谢并恭祝安康,

Harshana 哈沙那

WSDLs are stored in the /_system/governance/../trunk/wsdl/.. location if you upload them via management console or upload the resource from Developer Studio Registry Browser. 如果您通过管理控制台上传WSDL,或从Developer Studio注册表浏览器上传资源,则WSDL将存储在/_system/governance/../trunk/wsdl/ ..位置。

But when you deploy a WSDL via a C-App, when creating the registry resource from Developer Studio, you specify a location to deploy. 但是,当您通过C-App部署WSDL时,从Developer Studio创建注册表资源时,需要指定要部署的位置。 Hence the WSDLs deployed via C-Apps are deployed to this specified location but not the other location. 因此,通过C-App部署的WSDL将部署到此指定位置,而不是其他位置。

Therefore from your proxy service, you should refer the location you have mentioned to deploy your WSDL but not the default location. 因此,从代理服务中,您应该引用提到的位置来部署WSDL,而不是默认位置。

Once you fix this, your Proxy service will work fine. 解决此问题后,您的代理服务将正常运行。

Thanks and Regards, 谢谢并恭祝安康,

Harshana 哈沙那

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM