Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

esb

wso2

I'm new to WSO2 ESB and would like to try it out for some external integrations. I've installed the WSO2 Carbon 4.2 server and installed the ESB feature 4.8.1. After a restart, I'm getting some errors as below. Any tips or suggestions would be gratefully accepted.

Thanks.

[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)
like image 749
user3385500 Avatar asked Oct 02 '22 09:10

user3385500


1 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' of the axis2.xml. This is a recent addition hence it's missing when you did the feature installation. To fix this issue,

  • Search for the OutFaultFlow in the repository/conf/axis2/axis2.xml
  • In there, just after the 'Security' phase add the new entry 'Transport' as follows

.

<phase name="Transport"/>
  • Restart the server
like image 195
Kasun Gajasinghe Avatar answered Nov 04 '22 18:11

Kasun Gajasinghe