Hi,
I tried to deploy a custom module even it is engaging in AXIS2 ,it gives errors 
related to phases.
We use latest AXIS2-SNAPSHOT (01/11/2006 nightly build).


We modified sample Module in the AXIS user guide.AXIS gives following error 
also we 
listed our service.xml,module.xml,axis2.xml below.
What could be the problem?

thanks 
sagara

------------------------------Error 
Report--------------------------------------------
INFO: Deploying module : MyModule
**************** Module initialized
[EMAIL PROTECTED]
--------------- Module engaged
--------------- Module engaged
Nov 2, 2006 3:27:18 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
SEVERE: Invalid service  SimpleService3 due to Invalid phases please recheck axi
s2.xml myPhase for the handler InFlowMyHandler
org.apache.axis2.phaseresolver.PhaseException: Invalid phases please recheck axi
s2.xml myPhase for the handler InFlowMyHandler
        at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.jav
a:66)
        at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(
PhaseResolver.java:191)
        at org.apache.axis2.description.AxisOperation.engageModuleToOperation(Ax
isOperation.java:154)
        at org.apache.axis2.description.AxisOperation.engageModule(AxisOperation
.java:128)
        at org.apache.axis2.description.AxisService.engageModule(AxisService.jav
a:508)
        at org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(Deploym
entEngine.java:416)
        at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(Deployme
ntEngine.java:356)
        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin
e.java:532)
        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL
ist.java:196)
        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe
ner.java:227)
        at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito
ryListener.java:174)
        at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentE
ngine.java:88)
        at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileS
ystemConfigurator.java:129)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:72)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:180)
        at org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServe
r.java:157)


--------------------module.xml---------------------------------------------
<module name="MyModule"  class="MyModule">
    <InFlow>
        <handler name="InFlowMyHandler" class="MyHandler">
            <order phase="myPhase"/>
        </handler>
    </InFlow>

    <OutFlow>
        <handler name="OutFlowMyHandler" class="MyHandler">
            <order phase="myPhase"/>
        </handler>
    </OutFlow>

    <OutFaultFlow>
        <handler name="FaultOutFlowMyHandler" class="MyHandler">
            <order phase="myPhase"/>
        </handler>
    </OutFaultFlow>

    <INfaultflow>
        <handler name="FaultInFlowMyHandler" class="MyHandler">
            <order phase="myPhase"/>
        </handler>
    </INfaultflow>
</module>

--------------Here are the modifications in 
axis2.xml----------------------------------
----------------
..
..
..

          <!--  System pre defined phases       -->
          <!--   After Postdispatch phase module author or or service author 
can add 
any phase he want      -->
        <phase name="OperationInPhase"/>
        <phase name="soapmonitorPhase"/>
             <phase name="myPhase"/>     <------------------------------our 
phase
    </phaseOrder>
...
...
..
 <phaseOrder type="OutFlow">
        <!--      user can add his own phases to this area  -->
        <phase name="soapmonitorPhase"/>
        <phase name="OperationOutPhase"/>
        <!--system predefined phase-->
        <!--these phase will run irrespective of the service-->
        <phase name="myPhase"/>             <-------------------------- our 
phase
        <phase name="PolicyDetermination"/>
        <phase name="MessageOut"/>
        <phase name="Security"/>

    </phaseOrder>
..
..
..
..
------------------------------------------------------------------------------



--
Open WebMail Project (http://openwebmail.org)


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

Reply via email to