I was trying to use Axis2 (1.4) + Rampart 1.4, with a policy file, and I got the following exception:
Exception in thread "main" org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Security' while deploying handler 'PolicyBasedSecurityInHandler'. 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:158) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:785) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:453) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:323) at org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:293) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:175) at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143) at ws.landslide.security.Axis2ClientWssePolicy.main(Axis2ClientWssePolicy.java:29) at these lines of code on my client side: String args1 = "C:/java/eclipse/workspace/Axis2Client"; ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(args1, null); ServiceClient client = new ServiceClient(ctx, null); It seems that the second parameter of "ConfigurationContextFactory.createConfigurationContextFromFileSystem(args1, null);" cannot be set null as it is shown here. The exception is thrown long before the code reaches the following 2 lines: String args2 = "policy.xml"; options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(args2)); Please advise how to resolve this error. Thanks! -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p17877253.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]