[ http://issues.apache.org/jira/browse/AXIS2-1629?page=all ]

Deepal Jayasinghe resolved AXIS2-1629.
--------------------------------------

    Resolution: Fixed

fixed in the current SVN , there was no any source changes only the doc.

> Issues in modules.html
> ----------------------
>
>                 Key: AXIS2-1629
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1629
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 1.1
>         Environment: Win XP, Jdk 1.5
>            Reporter: Charitha Kankanamge
>         Assigned To: Srianth Perera
>
> I observed the following issues in modules.html. 
> LoggingModule.java
> ----------------------------
> 1. Follwoing methods of the LoggingModule class are not specified in the 
> document.
>  public void applyPolicy(Policy policy, AxisDescription axisDescription) 
> throws AxisFault {
>     }
>                  
>     public boolean canSupportAssertion(Assertion assertion) {
>         return true;
> }
> The above methods should be included in the LoggingModule.java
> 2. Method signature of the shutdown is given as shutdown(AxisConfiguration 
> axisSystem) in the document.
> When I used it, following error was thrown.
> "The type LoggingModule must implement the inherited abstract method 
> Module.shutdown (ConfigurationContext) 
> It should be corrected as follows.
>    
>  public void shutdown(ConfigurationContext configurationContext) throws 
> AxisFault {
>     }
> LogHandler.java
> -----------------------
> Following errors were noticed in the code given in modules.html
>   private Log log = LogFactory.getLog(getClass());
>     private QName name;
>     public QName getName() { ------> The return type is incompatible with 
> AbstractHandler.getName()
>         return name;
>     }
>     public void invoke(MessageContext msgContext) throws AxisFault { 
> --------> The return type is incompatible with Handler.invoke(MessageContext)
>         log.info(msgContext.getEnvelope().toString());
>     }
>    }
> In order to compile the code, I had to do the following changes in the 
> LogHandler.java
> private static final Log log = LogFactory.getLog(LogHandler.class);
>     private String name;
>     public String getName() {
>         return name;
>     }
>     public InvocationResponse invoke(MessageContext msgContext) throws 
> AxisFault {
>         log.info(msgContext.getEnvelope().toString());
>         return InvocationResponse.CONTINUE;        
>     }
>     public void revoke(MessageContext msgContext) {
>         log.info(msgContext.getEnvelope().toString());
>     }
>     public void setName(String name) {
>         this.name = name;
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to