首页 文章

未发现在此服务器中部署的工件 . 忽视碳应用

提问于
浏览
1
  • 我已经通过将其指向现有的synapse-config文件夹创建了ESB Config项目

  • 然后我通过选择所需的工件在上面创建了复合应用程序项目

  • 最后通过右键单击并选择导出复合应用程序项目,在复合应用程序项目上创建CAR文件

  • 验证了工件上的EnterpriseServiceBus角色

部署汽车文件时,我收到以下错误 .

Ť

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

3 回答

  • 1

    artifiact.xml 文件在 artifact namefile 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>
    

    但如果 fileartifact 名称不相同,那么您将面对 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 (您无法在开发人员工作室内看到) . 看到sreenshot .
    enter image description here

  • 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.
    
  • 0

    当服务器角色与服务器不匹配时,会发生此问题 . 为了避免这种情况,我们必须在创建CApp之前检查在复合pom.xml中为工件定义的服务器角色 .

    相关问题https://github.com/wso2/product-ei/issues/1428,已在Developer Studio 6.2.0中修复 .

相关问题