找不到要部署在此服务器中的工件。忽略碳应用
No artifacts found to be deployed in this server. Ignoring Carbon Application
- 我通过将它指向现有的 synapse-config 文件夹创建了 ESB Config 项目
- 然后我通过选择所需的工件在上面创建了复合应用程序项目
- 通过右键单击并选择“导出复合应用程序项目”,最终在复合应用程序项目上创建了 CAR 文件
- 已验证工件上的 EnterpriseServiceBus 角色
部署汽车文件时出现以下错误。
T
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
当 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
文件。
希望它能解决你的问题。您可以在 ESB_CONFIG
项目下的 Developer studio 工作区中找到 artifact.xml
(在 developer studio 中看不到)。见截图。
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.
当服务器角色与服务器不匹配时会出现此问题。为了避免这种情况,我们必须在创建 CApp 之前检查在复合 pom.xml 中为工件定义的服务器角色。
相关问题 https://github.com/wso2/product-ei/issues/1428 已在 Developer Studio 6.2.0 中修复。
- 我通过将它指向现有的 synapse-config 文件夹创建了 ESB Config 项目
- 然后我通过选择所需的工件在上面创建了复合应用程序项目
- 通过右键单击并选择“导出复合应用程序项目”,最终在复合应用程序项目上创建了 CAR 文件
- 已验证工件上的 EnterpriseServiceBus 角色
部署汽车文件时出现以下错误。
T
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
当 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
文件。
希望它能解决你的问题。您可以在 ESB_CONFIG
项目下的 Developer studio 工作区中找到 artifact.xml
(在 developer studio 中看不到)。见截图。
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.
当服务器角色与服务器不匹配时会出现此问题。为了避免这种情况,我们必须在创建 CApp 之前检查在复合 pom.xml 中为工件定义的服务器角色。
相关问题 https://github.com/wso2/product-ei/issues/1428 已在 Developer Studio 6.2.0 中修复。