Hi,

I work on a project under java and i need to use an AxisServlet with
specific transport (not http transport).
I add an axis2.xml configuration file in the /WEB-INF/conf/ directory.

I lauch my webapp with jetty.

When i start my webapp, the AxisServlet fail and give me this exception :

javax.servlet.ServletException: The "Dispatch" phase is not found on the
global "InFlow" phase of the axis2.xml file. Make sure the phase is within
the axis2.xml file.
     at org.mortbay.jetty.servlet.ServletHolder.initServlet(
ServletHolder.java:437)
     at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java
:256)
     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java
:40)

But, if i look at the axis2.xml i found the dispatch phase (I use the
default configuration ) :

<phaseOrder type="InFlow">
        <!--  System predefined phases       -->
        <phase name="Transport">
            <handler name="RequestURIBasedDispatcher" class="
org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
                <order phase="Transport"/>
            </handler>
            <handler name="SOAPActionBasedDispatcher" class="
org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
                <order phase="Transport"/>
            </handler>
        </phase>
        <phase name="Addressing">
             <handler name="AddressingBasedDispatcher" class="
org.apache.axis2.dispatchers.AddressingBasedDispatcher">
                 <order phase="Addressing"/>
            </handler>
        </phase>
        <phase name="Security"/>
        <phase name="PreDispatch"/>

        <!-- HERE -->
        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase
">
            <handler name="RequestURIBasedDispatcher" class="
org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
            <handler name="SOAPActionBasedDispatcher" class="
org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
            <handler name="RequestURIOperationDispatcher" class="
org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
            <handler name="SOAPMessageBodyBasedDispatcher" class="
org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
            <handler name="HTTPLocationBasedDispatcher" class="
org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
        </phase>

        <phase name="RMPhase"/>
        <!--  System predefined phases       -->
        <!--   After Postdispatch phase module author or service author can
add any phase he want      -->
        <phase name="OperationInPhase"/>
        <phase name="soapmonitorPhase"/>
    </phaseOrder>

  i don't know why the AxisServlet fail..... :(

if you have any idea ? (i use the jar axis-kernel-1.2)

thanks in advance,

Mat

Reply via email to