Hi Charitha,
I already tried with logging.mar and also logging-1.1.mar.
It keep throwing the same exception, like it cannot understand the module
archive.
I have the followin structure:
logging.mar
--- META-INF
MANIFEST.MF
module.xml
--- userguide
--- loggingmodule
LoggingModule.java
LogHandler.java
this is packaged as logging.mar and put in axis2/WEB-INF/modules.
I get the java source files from the example dir.
Here it is the module.xml file:
<module name="logging" class="userguide.loggingmodule.LoggingModule">
<InFlow>
<handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler">
<order phase="loggingPhase"/>
</handler>
</InFlow>
<OutFlow>
<handler name="OutFlowLogHandler" class="userguide.loggingmodule.LogHandler
">
<order phase="loggingPhase"/>
</handler>
</OutFlow>
<OutFaultFlow>
<handler name="FaultOutFlowLogHandler" class="
userguide.loggingmodule.LogHandler">
<order phase="loggingPhase"/>
</handler>
</OutFaultFlow>
<InFaultFlow>
<handler name="FaultInFlowLogHandler" class="
userguide.loggingmodule.LogHandler">
<order phase="loggingPhase"/>
</handler>
</InFaultFlow>
</module>
Here it is the services.xml file:
<service name="MyServiceWithModule">
<description>
This is a sample Web Service with a logging module engaged.
</description>
<module ref="logging"/>
<parameter name="ServiceClass" locked="false">userguide.example2.MyService</
parameter>
<operation name="echo">
<messageReceiver class="
org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="ping">
<messageReceiver class="
org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service>
about axis2.xml i put :
<phase name="loggingPhase"/>
for every phaseOrder type.
I could ask:
1) shall i rename the module archive to logging-1.1.mar and if I do that,
should i reference it from the
configuration files like: <module ref="logging"/>
2) Did you engage the module at service level or at system level (<module
ref="logging"/> in axis2.xml)
thanks in advance,
nencho
2007/1/26, Charitha Kankanamge <[EMAIL PROTECTED]>:
Hi Nencho,
I got the same error when deploying the sample-MyServiceWithModule.aar.
This seems to be a bug in logging module sample.
As a workaround , can you please rename the 'sample-logging.mar' in to
'logging.mar' and try again?
regards
Charitha
Nencho Lupanov wrote:
> Hi axis-dev team,
>
> I am trying to run the userguide example,especially
> the logging module that comes with the binary distribution of axis2.1.1.
>
> I got the following error:
>
> org.apache.axis2.deployment.DeploymentException: logging module is
> invalid or has not been deployed;
>
> Is this a known issue, is there any workaround?
>
> thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]