My answer might be wrong, so no offence
- So if you recompile your class while your server run and then try to
access your servelt, they will be a Cast exception because the class files
(I thing is is in the class signatures) are not those that the tomcat
session firstly load.
So you must restart tomcat after you recompile.
which be the way makes me wonder if there is a way to reload a specific
webapp ?
hopes that helps
At 18:42 04/07/2001 +0530, you wrote:
>I was previously putting the classes in ROOT/web-inf/classes.
>Now when I put them in SOAP/web-inf/classes, tomcat loads my class
>automatically.
>I can call this service as many times, everything goes well.
>But if I recompile the service class, and try to call it, I get the
>following error on the server side.
>Any idea why's that so ?
>
>
>2001-07-04 06:29:59 - Ctx( /soap ): Exception in: R( /soap +
>/servlet/rpcrouter
>+ null) - java.lang.ClassCastException:
>org.apache.soap.server.ServiceManager
> at
>org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(Ser
>verHTTPUtils.java:111)
> at
>org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:21
>2)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
>7)
> at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:210)
> at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>----- Original Message -----
>From: "Tarun Garg" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Wednesday, July 04, 2001 3:53 PM
>Subject: soap service class.
>
>
> > When you want tomcat to automatically reload your servlets, you put them
>in
> > web-inf/classes directory.
> > Where can I put my classes which implement soap services ??
> > Presently I have to restart tomcat everytime I change the class.
> > Putting it in web-inf/classes doesn't help. tomcat cannot find it.
> >
> >