You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vadim Dribinsky <di...@gmail.com> on 2007/09/10 04:03:43 UTC

Problenm engaging addresing module

I am getting the following exception when trying to engage addressing
module:

[9/7/07 18:02:32:461 EDT] 00000055 SystemErr R
_org.apache.axis2.phaseresolver.PhaseException_: Invalid phases please
recheck axis2.xml Addressing for the handler AddressingFinalInHandler
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(_PhaseHolder.java:66_)
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(_PhaseResolver.java:191_)
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.description.AxisOperation.engageModuleToOperation(_AxisOperation.java:151_)
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.description.AxisOperation.engageModule(_AxisOperation.java:125_)
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.description.AxisService.engageModule(_AxisService.java:525_)
[9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java)

Here's the code that is called:

ConfigurationContext configContext =
ConfigurationContextFactory./createEmptyConfigurationContext/();
configContext.setAxisConfiguration(axisConfiguration); //
axisConfiguration is obtained inside a servlet through War configuration.
ServiceWSServiceStub stub = *new* ServiceWSServiceStub(configContext,
"https://ws.location.net/webservices/ServiceWS");
Options options = stub._getServiceClient().getOptions();
stub._getServiceClient().engageModule(*new* QName("addressing"));

During initialization (earlier) I get the message that addressing-1.3 module is
deployed.

Vadim

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problenm engaging addresing module

Posted by Deepal jayasinghe <de...@gmail.com>.
Hi Vadim,
As I can see you are trying to use old axis2.xml file with new
addressing module. In new addressing module we changed its module.xml
file to add handlers in to a phase called "addressing" so you need to
have that phase in you axis2.xml. So please either add that phase to
your axis2.xml or use new axis2.xml

Thanks
Deepal
> I am getting the following exception when trying to engage addressing
> module:
>
> [9/7/07 18:02:32:461 EDT] 00000055 SystemErr R
> _org.apache.axis2.phaseresolver.PhaseException_: Invalid phases please
> recheck axis2.xml Addressing for the handler AddressingFinalInHandler
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(_PhaseHolder.java:66_)
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(_PhaseResolver.java:191_)
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.description.AxisOperation.engageModuleToOperation(_AxisOperation.java:151_)
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.description.AxisOperation.engageModule(_AxisOperation.java:125_)
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.description.AxisService.engageModule(_AxisService.java:525_)
> [9/7/07 18:02:32:773 EDT] 00000055 SystemErr R at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java)
>
> Here's the code that is called:
>
> ConfigurationContext configContext =
> ConfigurationContextFactory./createEmptyConfigurationContext/();
> configContext.setAxisConfiguration(axisConfiguration); //
> axisConfiguration is obtained inside a servlet through War configuration.
> ServiceWSServiceStub stub = *new* ServiceWSServiceStub(configContext,
> "https://ws.location.net/webservices/ServiceWS");
> Options options = stub._getServiceClient().getOptions();
> stub._getServiceClient().engageModule(*new* QName("addressing"));
>
> During initialization (earlier) I get the message that addressing-1.3 module is
> deployed.
>
> Vadim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org