碳4.2上的WSO2 ESB-未找到所需的相';运输';部署处理程序时';POXSecurityHandler&x27;

碳4.2上的WSO2 ESB-未找到所需的相';运输';部署处理程序时';POXSecurityHandler&x27;,wso2,esb,wso2carbon,Wso2,Esb,Wso2carbon,我是WSO2 ESB的新手,希望尝试一些外部集成。 我已经安装了WSO2 Carbon 4.2服务器,并安装了ESB功能部件4.8.1。 重新启动后,我得到一些错误,如下所示。 任何提示或建议都将被感激地接受 谢谢 [2014-03-06 10:01:08,521] INFO {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} - Initializing Apache Synapse... [2014-03-06 10

我是WSO2 ESB的新手,希望尝试一些外部集成。 我已经安装了WSO2 Carbon 4.2服务器,并安装了ESB功能部件4.8.1。 重新启动后,我得到一些错误,如下所示。 任何提示或建议都将被感激地接受

谢谢

[2014-03-06 10:01:08,521]  INFO {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Initializing Apache Synapse...
[2014-03-06 10:01:08,525] FATAL {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Couldn't initialize the ESB...
org.apache.synapse.SynapseException: The synapse.xml location ././
        ./repository/deployment/server/synapse-configs
    /default doesn't exist
    at org.apache.synapse.SynapseControllerFactory.handleFatal(SynapseControllerFactory.java:121)
    at org.apache.synapse.SynapseControllerFactory.validatePath(SynapseControllerFactory.java:113)
    at org.apache.synapse.SynapseControllerFactory.validate(SynapseControllerFactory.java:88)
    at org.apache.synapse.SynapseControllerFactory.createSynapseController(SynapseControllerFactory.java:44)
    at org.apache.synapse.ServerManager.init(ServerManager.java:102)
    at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceBusInitializer.java:423)
    at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:182)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
...
...
...
[2014-03-06 10:01:08,531]  INFO {org.wso2.carbon.rule.kernel.internal.ds.RuleEngineConfigDS} -  Successfully registered the Rule Config service
[2014-03-06 10:01:08,553] ERROR {org.wso2.carbon.security.internal.SecurityMgtServiceComponent} -  Failed to activate SecurityMgtServiceComponent
org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'.
    at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
    at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
    at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
    at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
    at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
    at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
    at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
    at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
    at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)

尽管WSO2 Carbon支持通过P2进行任何功能安装,但仍有一些配置不是通过功能安装实现的

如果将该产品与您拥有的定制产品进行比较,您将看到配置文件中存在许多差异。请看一看

您的案例中有两个错误

  • org.apache.synapse.SynapseException:synapse.xml位置/ ./repository/deployment/server/synapse configs/default不存在

  • 这意味着它在
    /repository/deployment/server/synapse configs/default
    中找不到synapse.xml。这在产品分销中是缺失的

  • org.apache.axis2.phaseresolver.PhaseException:在部署处理程序“POXSecurityHandler”时未找到所需的阶段“Transport”

  • 这可能意味着Axis2无法找到安全组件所需的“传输”阶段。“运输”阶段在中提供

    总之,我个人的观点是,您不应该尝试在WSO2上安装ESB功能。如果我需要一个具有多个特性的产品,我会首先从ESB开始

    虽然功能安装为您提供了更大的灵活性,但它并不总是能够顺利工作。然而,我们可以在WSO2产品上安装许多有用的功能


    我希望这能有所帮助。

    对于第二个例外-

    "org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'."
    
    这是因为axis2.xml的“OutFaultFlow”中缺少“Transport”阶段。这是最近添加的功能,因此在安装功能时丢失了它。为了解决这个问题

    • 在repository/conf/axis2/axis2.xml中搜索OutFaultFlow
    • 在这里,在“安全”阶段之后添加新条目“Transport”,如下所示

    
    
    • 重新启动服务器

    有关第一个例外情况,请参阅


    我还从Isuru提供的ESB发行版中复制了synapsis.xml文件,感谢您的回复。我能够下载并运行WSO2 ESB发行版。因此,如果我理解正确,我应该首先使用WSO2 ESB发行版,然后向该发行版添加功能?我还对API Manager和Data Services Server等其他组件感兴趣,并将很快试用。是的。我在ESB上成功地使用了DSS特性,这是一个常见的用例。但是,我不确定API Manager。仅链接的答案不如包含链接的答案有用,但请继续解释链接内容的相关部分,这样,如果链接出现问题,答案仍然是可行的。好的-请参阅当前版本WSO2 Carbon中的synapsis.xml文件
    <phase name="Transport"/>