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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Gregg Sent: Thursday, June 20, 2002 6:47 PM To: [EMAIL PROTECTED] 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
