部署汽车文件时,我收到以下错误。
Ť
ID: [-1234] [] [2016-04-05 16:09:22,548] INFO {org.wso2.carbon.application.deployer.internal.ApplicationManager} - Deploying Carbon Application : FirstCARProject_1.0.0.car... {org.wso2.carbon.application.deployer.internal.ApplicationManager}
TID: [-1234] [] [2016-04-05 16:09:22,564] WARN {org.wso2.carbon.application.deployer.internal.ApplicationManager} - No artifacts found to be deployed in this server. Ignoring Carbon Application : FirstCARProject_1.0.0.car {org.wso2.carbon.application.deployer.internal.ApplicationManager}
我正在WSO2 ESB 4.9.0上做这个poc
答案 0 :(得分:1)
当artifiact.xml
文件在artifact name
和file path
中出现不一致时,就会发生这种情况。这两者都应该具有相同的名称。像:
<artifact name="GetCustomerInSequence" groupId="com.test.uab.customeraccounts.wso2.sequence" version="1.0.0" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/GetCustomerInSequence.xml</file>
</artifact>
但如果file
和artifact
名称不相同,那么您将面对error
。我已经重现了该方案。
[2016-04-06 08:57:19,297] INFO - ApplicationManager Deploying Carbon Application : CustomerServiceCA_1.0.0.car...
[2016-04-06 08:57:19,312] WARN - ApplicationManager No artifacts found to be deployed in this server. Ignoring Carbon Application : CustomerServiceCA_1.0.0.car
错误的工件文件:
<artifact name="GetCustomerInSequence" groupId="com.test.uab.customeraccounts.wso2.sequence" version="1.0.0" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/GetCustomerInSequence-232.xml</file>
</artifact>
正如您所见,<artifact name="GetCustomerInSequence"
和src / main / synapse-config / sequences / GetCustomerInSequence-232
。xml是不同的。请检查文件系统上的ESB
artifact.xml
文件。
希望这样能解决你的问题。您可以在artifact.xml
项目下的Developer studio工作区中找到ESB_CONFIG
(您无法在开发人员工作室内看到)。见sreenshot。
答案 1 :(得分:0)
The role creation had solved the problem.
This error means the Server Roles of the C-App Artifacts found in your Carbon Application Archive (CAR), does not match the Server Role of the ESB.
答案 2 :(得分:0)
当服务器角色与服务器不匹配时,会出现此问题。为了避免这种情况,我们必须在创建CApp之前检查在复合pom.xml中为工件定义的服务器角色。
相关问题https://github.com/wso2/product-ei/issues/1428已在Developer Studio 6.2.0中修复。