Hello,
I'm still trying to deploy the sample logging module, server-side. Unfortunately no-one has answered my previous post.. I'll try to state my questions very briefly and clear, hopefully someone has some answers :
- where can I find a description of exactly what is the meaning of, and relation between, each module-, phase- and handler-related element in axis2.xml, modules.xml and services.xml ? What does it mean, for example, if the class attribute in the module or in the phase elements is absent / present ?
- if you get an error message such as
"[11 Jul 2006 13:36:43] ERROR org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid service MyService.aar due to Invalid phases please recheck axis2.xml
loggingPhase for the handler InFlowLogHandler", how can you best go about analyzing what's causing it ?
- when I just (1) add the logging.mar from the distribution to the modules directory; (2) add the line <module ref="logging"/> to my
services.xml; and (3) put <phase name="loggingPhase"/> in to each of the four phaseOrders in axis2.xml, I get no errors during deployment. However the logging does not work (with my log4j.properties having DEBUG level for all), and I see the following lines in the server console, which seems not right, this "null" :
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingFinalInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingSubmissionInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingOutHandler added to Phase MessageOut
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingFinalInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingSubmissionInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingOutHandler added to Phase MessageOut
Surely it should be easy to add server-side handlers to an Axis2-run web service ? What is it that I'm missing ?
I greatly appreciate your feedback.
- Re: [Axis2] Plz help adding logging module server-side heikki
