Hi iksrazal;
The simple reason is I can not see any logs in Message Context , because
MessageConetxt is a property bag and I think we do not need to log operation
in MessageConetxt.
Any way I will try to add some logs to Message Context if it is required.
Thanks,
Deepal
................................................................
~Future is Open~
----- Original Message -----
From: "iksrazal" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 22, 2005 7:26 PM
Subject: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'
Hi all,
I'm trying to add the Logging module to my app. This is my axis2.xml phase
order:
<phaseOrder type="inflow">
<!-- System pre defined phases -->
<phase name="TransportIn"/>
<phase name="PreDispatch"/>
<phase name="Dispatch">
<handler name="AddressingBasedDispatcher"
class="org.apache.axis2.engine.AddressingBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="RequestURIBasedDispatcher"
class="org.apache.axis2.engine.RequestURIBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="SOAPActionBasedDispatcher"
class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="SOAPMessageBodyBasedDispatcher"
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
<order phase="Dispatch"/>
</handler>
</phase>
<phase name="PostDispatch">
<handler name="DispatchPostConditionsEvaluator"
class="org.apache.axis2.engine.DispatchingChecker">
<order phase="PostDispatch"/>
</handler>
<handler name="InstanceDispatcher"
class="org.apache.axis2.engine.InstanceDispatcher">
<order phase="PostDispatch"/>
</handler>
<handler name="SOAPProcessingModelChecker"
class="org.apache.axis2.engine.SOAPProcessingModelChecker">
<order phase="PostDispatch"/>
</handler>
</phase>
<!-- System pre defined phases -->
<!-- After Postdispatch phase module author or or service author
can
add any phase he want -->
<phase name="userphase1"/>
<phase name="loggingPhase"/>
</phaseOrder>
<phaseOrder type="outflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="loggingPhase"/>
<!--system predefined phase-->
<!--these phase will run irrespective of the service-->
<phase name="PolicyDetermination"/>
<phase name="MessageOut"/>
</phaseOrder>
<phaseOrder type="INfaultflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="loggingPhase"/>
</phaseOrder>
<phaseOrder type="Outfaultflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="loggingPhase"/>
<phase name="PolicyDetermination"/>
<phase name="MessageOut"/>
</phaseOrder>
Here's my services.xml :
<!--Auto generated Axis Service XML-->
<service name="SWASmartEndpoint">
<module ref="logging"/>
<parameter locked="false"
name="ServiceClass">com.siemens.swa.webservices.foconet.SWASmartEndpointSkeleton</parameter>
<!--Mounting the method informarServicoList-->
<operation name="informarServicoList">
<messageReceiver
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method informarEquipamentoRetirado-->
<operation name="informarEquipamentoRetirado">
<messageReceiver
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method testService-->
<operation name="testService">
<messageReceiver
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method smartLogin-->
<operation name="smartLogin">
<messageReceiver
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method informarTecnicosList-->
<operation name="informarTecnicosList">
<messageReceiver
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
</service>
I have axis2 in 'debug' - I can see all of its messages, but no message
context messages are appearing. What I do see is:
005-12-22 11:18:50,651
[org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Checking for
Operation using SOAP message body's first child's local name : smartLogin
2005-12-22 11:18:50,652
[org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Found
AxisOperation : smartLogin
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking phase
"PostDispatch"
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler
'DispatchPostConditionsEvaluator' in Phase 'PostDispatch'
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler
'InstanceDispatcher' in Phase 'PostDispatch'
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler
'SOAPProcessingModelChecker' in Phase 'PostDispatch'
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
"userphase1"
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
"loggingPhase"
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler
'null' in Phase 'loggingPhase'
2005-12-22 11:18:50,685
[org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the
OMElelment user_nameBy the StaxSOAPModelBuilder
2005-12-22 11:18:50,685
[org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the
OMElelment user_passwordBy the StaxSOAPModelBuilder
2005-12-22 11:18:51,470 [org.apache.axis2.engine.AxisEngine] - Axis Engine
Started
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
"userphase1"
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
"loggingPhase"
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking Handler
'null' in Phase 'loggingPhase'
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
"PolicyDetermination"
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
"MessageOut"
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking Handler
'AddressingOutHandler' in Phase 'MessageOut'
Yet I can't see anything related to my the MessageContext of my service
smartLogin .
Please help,
iksrazal