WSO2 ESB on Carbon 4.2 - Did not find the desired Transport phase when deploying the POXSecurityHandler handler

I am new to WSO2 ESB and would like to try it for some external integrations. I installed the WSO2 Carbon 4.2 server and installed the ESB 4.8.1 function. After rebooting, I get some errors as below. Any advice or suggestions would be greatly appreciated.

Thank.

[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)
+4
source share
3 answers

For the second exception -

"org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'."

This is because the "Transport" phase is missing in the "OutFaultFlow" for the 2.xml axis. This is the latest addition, therefore it is not available when installing the feature. To resolve this issue,

  • OutFaultFlow /conf/axis 2/axis2.xml
  • , "", ""

.

<phase name="Transport"/>
+2

, WSO2 Carbon P2, .

ESB , , . , ESB.

.

  • org.apache.synapse.SynapseException: synapse.xml././     . /repository/deployment/server/synapse -configs/default

, synapse.xml /repository/deployment/server/synapse-configs/default. , .

  • org.apache.axis2.phaseresolver.PhaseException: "" "POXSecurityHandler".

, , , Axis2 "" , . "" ESB 4.8.1 axis2.xml.

, , ESB- WSO2 Carbon. , ESB.

, . , WSO2.

, .

+1

For the first exception, see the error comment at https://wso2.org/jira/browse/ESBJAVA-776

I also copied synapsis.xml from the ESB distribution provided by Isuru

0
source

Source: https://habr.com/ru/post/1530463/


All Articles