axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robertlazarski ." <robertlazar...@gmail.com>
Subject Re: [Axis2] Exception in loading logging module
Date Wed, 14 May 2014 11:12:22 GMT
On Wed, May 14, 2014 at 6:33 AM, Manuela Vergerio <
manuela.vergerio@teaminformatica.ch> wrote:

> Caused by: org.apache.axis2.phaseresolver.PhaseException: Did not find the
> desired phase 'Logging' while deploying handler 'InFlowLogHandler'.
>
>         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:152)
>
>         at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>
>         at
> org.apache.axis2.description.AxisService.onEngage(AxisService.java:779)
>
>         at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>
>         at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
>
>         at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:361)
>
>         at
> ch.swissdec.samples.transmitter.AbstractTransmitter.configure(AbstractTransmitter.java:90)
>
>         ... 4 more
>
> Exception in thread "main" junit.framework.AssertionFailedError: Error
> loading logging module
>
>
I would try this outside JUnit since it makes the classloader messy. The
main issue though is it seems your axis2.xml in this case is missing '<phase
name="loggingPhase"/> '  . As a client you may be running a default
axis2.xml without the phase defined. See this link for an example of
setting up axis2.xml for logging:

http://axis.apache.org/axis2/java/core/docs/modules.html#MyService_with_a_Logging_Module

- R

Mime
View raw message