Hi Michele;
If you want to add a handler to axis2.xml , then that handler should be
available in context class loader. In simple term the handler class
should be available in the class path. As an example all the handlers
listed in axis2.xml available in system class path so context class
loader can pick them.

Engaging a module globally is nothing to do with axis2.xml handlers ,
and handlers in a module can not be access via context class loader, so
if you add a handler reference to axis2.xml while actual handler is in
the module you will get class not found exception.

So the correct way of adding handler to axis2.xml is by just add the
handler class in to class path and then add the handler entry into
axis2.xml . In the meantime with the use of phases and phase rules you
can add handler into any location by engaging module.




Michele Mazzucco wrote:

>Hi all,
>
>how should I change axis2.xml in order to add a custom handler to the
>Dispatch phase?
>Globally engaging the related module works only if I add a new phase,
>while, for instance, if I add
>
><phase name="Transport">
>            <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="ManagerInterceptorPhase">
>                               <order phase="Dispatch"/>
>                       </handler>
></phase>
>
>
>I get an error (invalid handler class name) as well as I add (class not
>found):
>
>
><phase name="Transport">
>            <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="ManagerInterceptorPhase"
>                                       
> class="ncl.qosp.modules.manager.RouterDispatcher">
>                               <order phase="Dispatch"/>
>                       </handler>
></phase>
>
>
>
>(ManagerInterceptorPhase is the module name, which is globally engaged).
>
>
>
>Thanks in advance,
>Michele
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to