You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by John Gregg <jo...@techarch.com> on 2002/06/21 01:46:31 UTC
ClassCastExceptoin with handler
Hi all.
I'm using a version of Axis that was built from CVS yesterday. I'm running
in Tomcat 4.0.4.
I'm trying to get a simple Handler going. I'm subclassing
javax.xml.rpc.handler.GenericHandler. My deploy.wsdd file contains this:
<handler name="test" type="java:axis.JohnsHandler"/>
and this under the appropriate service:
<requestFlow>
<handler type="test"/>
</requestFlow>
I'm getting a ClassCastException when the service is first invoked. For
brevity I'll omit the entire stacktrace, but in a nutshell it's happening
here:
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
yableItem.java:335)
The message of the CCE is "axis.JohnsHandler", which is my handler. I'm
familiar with how Tomcat's class loaders work and I've tried putting the
class under webapps/axis/web-inf/classes, classes, and common/classes (not
all at once). I get the same thing every time. Without the handler my
service works fine.
Suggestions?
thanks
john
RE: ClassCastExceptoin with handler
Posted by John Gregg <jo...@techarch.com>.
I discovered that WSDDDeployableItem expects my Handler to be an instance of
org.apache.axis.Handler when in fact it was an instance of
javax.xml.rpc.handler.GenericHandler. I'll take this up with the Axis-Dev
folks.
john
-----Original Message-----
From: axis-user-return-4612-john.gregg=techarch.com@xml.apache.org
[mailto:axis-user-return-4612-john.gregg=techarch.com@xml.apache.org]On
Behalf Of John Gregg
Sent: Thursday, June 20, 2002 6:47 PM
To: axis-user@xml.apache.org
Subject: ClassCastExceptoin with handler
Hi all.
I'm using a version of Axis that was built from CVS yesterday. I'm running
in Tomcat 4.0.4.
I'm trying to get a simple Handler going. I'm subclassing
javax.xml.rpc.handler.GenericHandler. My deploy.wsdd file contains this:
<handler name="test" type="java:axis.JohnsHandler"/>
and this under the appropriate service:
<requestFlow>
<handler type="test"/>
</requestFlow>
I'm getting a ClassCastException when the service is first invoked. For
brevity I'll omit the entire stacktrace, but in a nutshell it's happening
here:
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
yableItem.java:335)
The message of the CCE is "axis.JohnsHandler", which is my handler. I'm
familiar with how Tomcat's class loaders work and I've tried putting the
class under webapps/axis/web-inf/classes, classes, and common/classes (not
all at once). I get the same thing every time. Without the handler my
service works fine.
Suggestions?
thanks
john