Hi i am facing an issue with modules in Axis2 1.6.2.
As per the axis documentation, I have created a module.xml, also i have updated the phase in axis2.xml.
Now when i try to engage a module using
org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'myPhase' while deploying handler 'MyInFlowHandler'.
axis2.xml or services.xml or module.xml
Map<String, AxisModule> modules = serviceClient.getAxisConfiguration().getModules();
This was solved... Apparently the issue was no ServiceContext/ ConfigurationContext was found for the ServiceClient to load all the modules(mar's).
Creating a ServiceClient with a new custom ConfigurationContext did the trick.
ConfigurationContext CTX = new ConfigurationContext("path to axis2 repo","path to axis2.XML"); ServiceClient sender=new ServiceClient(CTX, null);