axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal jayasinghe <deep...@gmail.com>
Subject Re: Axis2 1.6 - New Handler - ClassCast Exception
Date Mon, 23 Apr 2012 19:05:58 GMT
Have you implement handler interface or extended abstract handler ? if
not you need to do that.

Deepal
> Exception: org.apache.axis2.deployment.DeploymentException:
> com.alacriti.axis2.util.MsgHandler cannot be cast to
> org.apache.axis2.engine.Handler at
> org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:151) at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:547)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:578)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:148)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
> at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.(WarBasedAxisConfigurator.java:156)
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)*Source
> Code:* package com.alacriti.axis2.util; import
> org.apache.axis2.AxisFault; import
> org.apache.axis2.context.MessageContext; import
> org.apache.axis2.engine.Handler; import
> org.apache.axis2.handlers.AbstractHandler; import
> com.alacriti.yaf.logger.Logger; public class MsgHandler extends
> AbstractHandler implements Handler { private static Logger log =
> Logger.getLogger(MsgHandler.class); public InvocationResponse
> invoke(MessageContext ctx) throws AxisFault { log.info(null,"Message =
> "+ctx.getEnvelope().toString()); return InvocationResponse.CONTINUE; }
> }axis2.xml <http://old.nabble.com/file/p33732542/axis2.xml>
> ------------------------------------------------------------------------
> View this message in context: Axis2 1.6 - New Handler - ClassCast
> Exception
> <http://old.nabble.com/Axis2-1.6---New-Handler---ClassCast-Exception-tp33732542p33732542.html>
> Sent from the Axis - User mailing list archive
> <http://old.nabble.com/Axis---User-f232.html> at Nabble.com.


Mime
View raw message