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 f....@gmx.de on 2006/04/21 21:21:23 UTC

Userguide Logging Module does not work

Hi!

I tried to get the logging module working as described in
http://ws.apache.org/axis2/0_95/userguide4.html. Unforunately it does not
work. I get the following error:

Invalid service  MyService1.jar due to Invalid phases please recheck
axis2.xml loggingPhase for the handler InFlowLogHandler

I added the tag <phase name="loggingPhase"/> in the axis2.xml and used the
LoggingModule.mar provided with the userguide samples.

Can somebody help me here.

Thanks!!

P.S. Is the SOAP-Monitor already useable for Axis2?   




 <!-- ================================================= -->
    <!-- Phases  -->
    <!-- ================================================= -->
    <phaseOrder type="inflow">
        <!--  System pre defined phases       -->
        <phase name="TransportIn"/>
        <phase name="PreDispatch"/>
        <phase name="Dispatch"
class="org.apache.axis2.engine.DispatchPhase">
            <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="AddressingBasedDispatcher"
                    
class="org.apache.axis2.engine.AddressingBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>

            <handler name="SOAPMessageBodyBasedDispatcher"
                    
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>
            <handler name="InstanceDispatcher"
                     class="org.apache.axis2.engine.InstanceDispatcher">
                <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="loggingPhase"/>
        <phase name="OperationInPhase"/>
    </phaseOrder>
    <phaseOrder type="outflow">
        <!--      user can add his own phases to this area  -->
        <phase name="OperationOutPhase"/>
        <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="loggingPhase"/>
        <phase name="OperationFaultInPhase"/>
    </phaseOrder>
    <phaseOrder type="Outfaultflow">
        <!--      user can add his own phases to this area  -->
        <phase name="loggingPhase"/>
        <phase name="OperationOutPhase"/>
        <phase name="PolicyDetermination"/>
        <phase name="MessageOut"/>
    </phaseOrder>

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl


-- 
GMX Produkte empfehlen und ganz einfach Geld verdienen!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

Re: Userguide Logging Module does not work

Posted by robert lazarski <ro...@gmail.com>.
Post your axis2.xml and maybe we can help. Posting the relevant logs by
putting the logger into debug would also help track the problem down.

Robert,
http://www.braziloutsource.com

On 4/21/06, f.linz@gmx.de <f....@gmx.de> wrote:
>
> Hi!
>
> That's interesting. I already tried that out but it did not work.
>
> Fabian
>
> robert lazarski wrote, On 21.04.2006 22:30:
> > This is fixed in the latest svn - simply renaming LoggingModule.mar to
> > logging.mar should make it to work.
> >
> > HTH,
> > Robert
> > http://www.braziloutsource.com
> >
> > On 4/21/06, *f.linz@gmx.de <ma...@gmx.de>* < f.linz@gmx.de
> > <ma...@gmx.de>> wrote:
> >
> >     Hi!
> >
> >     I tried to get the logging module working as described in
> >     http://ws.apache.org/axis2/0_95/userguide4.html. Unforunately it
> >     does not
> >     work. I get the following error:
> >
> >     Invalid service  MyService1.jar due to Invalid phases please recheck
> >     axis2.xml loggingPhase for the handler InFlowLogHandler
> >
> >     I added the tag <phase name="loggingPhase"/> in the axis2.xml and
> >     used the
> >     LoggingModule.mar provided with the userguide samples.
> >
> >     Can somebody help me here.
> >
> >     Thanks!!
> >
> >     P.S. Is the SOAP-Monitor already useable for Axis2?
> >
> >
> >
> >
> >     <!-- ================================================= -->
> >         <!-- Phases  -->
> >         <!-- ================================================= -->
> >         <phaseOrder type="inflow">
> >             <!--  System pre defined phases       -->
> >             <phase name="TransportIn"/>
> >             <phase name="PreDispatch"/>
> >             <phase name="Dispatch"
> >     class="org.apache.axis2.engine.DispatchPhase ">
> >                 <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="AddressingBasedDispatcher"
> >
> >     class="org.apache.axis2.engine.AddressingBasedDispatcher">
> >                     <order phase="Dispatch"/>
> >                 </handler>
> >
> >                 <handler name="SOAPMessageBodyBasedDispatcher"
> >
> >     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
> >                     <order phase="Dispatch"/>
> >                 </handler>
> >                 <handler name="InstanceDispatcher"
> >
> >     class="org.apache.axis2.engine.InstanceDispatcher">
> >                     <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="loggingPhase"/>
> >             <phase name="OperationInPhase"/>
> >         </phaseOrder>
> >         <phaseOrder type="outflow">
> >             <!--      user can add his own phases to this area  -->
> >             <phase name="OperationOutPhase"/>
> >             <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="loggingPhase"/>
> >             <phase name="OperationFaultInPhase"/>
> >         </phaseOrder>
> >         <phaseOrder type="Outfaultflow">
> >             <!--      user can add his own phases to this area  -->
> >             <phase name="loggingPhase"/>
> >             <phase name="OperationOutPhase"/>
> >             <phase name="PolicyDetermination"/>
> >             <phase name="MessageOut"/>
> >         </phaseOrder>
> >
> >     --
> >     Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> >     "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
> >     <http://www.gmx.net/de/go/dsl>
> >
> >
> >     --
> >     GMX Produkte empfehlen und ganz einfach Geld verdienen!
> >     Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
> >
> >
>
> --
> Fabian Linz
>
> Robert-Koch-Str. 4 B
> 33102 Paderborn
>
> Tel.:   + 49 - 5251 - 87 80 699
> Mobil:  + 49 - 177  - 32 74 882
>
>

Re: Userguide Logging Module does not work

Posted by f....@gmx.de.
Hi!

That's interesting. I already tried that out but it did not work.

Fabian

robert lazarski wrote, On 21.04.2006 22:30:
> This is fixed in the latest svn - simply renaming LoggingModule.mar to 
> logging.mar should make it to work.
>
> HTH,
> Robert
> http://www.braziloutsource.com
>
> On 4/21/06, *f.linz@gmx.de <ma...@gmx.de>* < f.linz@gmx.de 
> <ma...@gmx.de>> wrote:
>
>     Hi!
>
>     I tried to get the logging module working as described in
>     http://ws.apache.org/axis2/0_95/userguide4.html. Unforunately it
>     does not
>     work. I get the following error:
>
>     Invalid service  MyService1.jar due to Invalid phases please recheck
>     axis2.xml loggingPhase for the handler InFlowLogHandler
>
>     I added the tag <phase name="loggingPhase"/> in the axis2.xml and
>     used the
>     LoggingModule.mar provided with the userguide samples.
>
>     Can somebody help me here.
>
>     Thanks!!
>
>     P.S. Is the SOAP-Monitor already useable for Axis2?
>
>
>
>
>     <!-- ================================================= -->
>         <!-- Phases  -->
>         <!-- ================================================= -->
>         <phaseOrder type="inflow">
>             <!--  System pre defined phases       -->
>             <phase name="TransportIn"/>
>             <phase name="PreDispatch"/>
>             <phase name="Dispatch"
>     class="org.apache.axis2.engine.DispatchPhase ">
>                 <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="AddressingBasedDispatcher"
>
>     class="org.apache.axis2.engine.AddressingBasedDispatcher">
>                     <order phase="Dispatch"/>
>                 </handler>
>
>                 <handler name="SOAPMessageBodyBasedDispatcher"
>
>     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
>                     <order phase="Dispatch"/>
>                 </handler>
>                 <handler name="InstanceDispatcher"
>                         
>     class="org.apache.axis2.engine.InstanceDispatcher">
>                     <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="loggingPhase"/>
>             <phase name="OperationInPhase"/>
>         </phaseOrder>
>         <phaseOrder type="outflow">
>             <!--      user can add his own phases to this area  -->
>             <phase name="OperationOutPhase"/>
>             <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="loggingPhase"/>
>             <phase name="OperationFaultInPhase"/>
>         </phaseOrder>
>         <phaseOrder type="Outfaultflow">
>             <!--      user can add his own phases to this area  -->
>             <phase name="loggingPhase"/>
>             <phase name="OperationOutPhase"/>
>             <phase name="PolicyDetermination"/>
>             <phase name="MessageOut"/>
>         </phaseOrder>
>
>     --
>     Echte DSL-Flatrate dauerhaft für 0,- Euro*!
>     "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
>     <http://www.gmx.net/de/go/dsl>
>
>
>     --
>     GMX Produkte empfehlen und ganz einfach Geld verdienen!
>     Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>
>

-- 
Fabian Linz

Robert-Koch-Str. 4 B
33102 Paderborn

Tel.: 	+ 49 - 5251 - 87 80 699
Mobil:  + 49 - 177  - 32 74 882


Re: Userguide Logging Module does not work

Posted by robert lazarski <ro...@gmail.com>.
This is fixed in the latest svn - simply renaming LoggingModule.mar to
logging.mar should make it to work.

HTH,
Robert
http://www.braziloutsource.com

On 4/21/06, f.linz@gmx.de <f....@gmx.de> wrote:
>
> Hi!
>
> I tried to get the logging module working as described in
> http://ws.apache.org/axis2/0_95/userguide4.html. Unforunately it does not
> work. I get the following error:
>
> Invalid service  MyService1.jar due to Invalid phases please recheck
> axis2.xml loggingPhase for the handler InFlowLogHandler
>
> I added the tag <phase name="loggingPhase"/> in the axis2.xml and used the
> LoggingModule.mar provided with the userguide samples.
>
> Can somebody help me here.
>
> Thanks!!
>
> P.S. Is the SOAP-Monitor already useable for Axis2?
>
>
>
>
> <!-- ================================================= -->
>     <!-- Phases  -->
>     <!-- ================================================= -->
>     <phaseOrder type="inflow">
>         <!--  System pre defined phases       -->
>         <phase name="TransportIn"/>
>         <phase name="PreDispatch"/>
>         <phase name="Dispatch"
> class="org.apache.axis2.engine.DispatchPhase">
>             <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="AddressingBasedDispatcher"
>
> class="org.apache.axis2.engine.AddressingBasedDispatcher">
>                 <order phase="Dispatch"/>
>             </handler>
>
>             <handler name="SOAPMessageBodyBasedDispatcher"
>
> class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
>                 <order phase="Dispatch"/>
>             </handler>
>             <handler name="InstanceDispatcher"
>                      class="org.apache.axis2.engine.InstanceDispatcher">
>                 <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="loggingPhase"/>
>         <phase name="OperationInPhase"/>
>     </phaseOrder>
>     <phaseOrder type="outflow">
>         <!--      user can add his own phases to this area  -->
>         <phase name="OperationOutPhase"/>
>         <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="loggingPhase"/>
>         <phase name="OperationFaultInPhase"/>
>     </phaseOrder>
>     <phaseOrder type="Outfaultflow">
>         <!--      user can add his own phases to this area  -->
>         <phase name="loggingPhase"/>
>         <phase name="OperationOutPhase"/>
>         <phase name="PolicyDetermination"/>
>         <phase name="MessageOut"/>
>     </phaseOrder>
>
> --
> Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
>
>
> --
> GMX Produkte empfehlen und ganz einfach Geld verdienen!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>