thanks Oh for replying.
yes, I have a tomcat server of my own.
It was just that I was being lazy to restart it.
But I got the message...:)))
----- Original Message -----
From: "oh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 8:05 AM
Subject: Re: soap service class.
> > 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 ?
>
>
> If the life cycle of your service program is "Session",
> it will not be dead until the end of the session which loadded it.
> But when you only changed your service program(no servlet),
> tomcat would not reload any classes. you will get ClassCastException,
> this often happens when developping servlet/jsp/bean programs.
>
> Restart tomcat is not so bad in developing phrase, I think.
> Maybe you should setup your own tomcat server which will not be
> used by others.
>
> good luck,
> Huimin Wang
> Globus Inc,Japan
>
>
> >
> > 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: "oh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 04, 2001 5:53 PM
> > Subject: Re: soap service class.
> >
> >
> > > It's simple, just put the definition of rpcrouter(servlet) in the
> web.xml
> > of
> > > your web application.
> > >
> > > Note: you can get the definition of rpcrouter from Apche Soap's
web.xml.
> > >
> > > good luck,
> > > Huimin Wang
> > > Globus,Inc Japan
> > >
> > >
> > > ----- Original Message -----
> > > From: "Tarun Garg" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 04, 2001 8:27 PM
> > > Subject: Re: soap service class.
> > >
> > >
> > > > How should I put the rpcrouter into "web.xml" ???
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "oh" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 04, 2001 4:26 PM
> > > > Subject: Re: soap service class.
> > > >
> > > >
> > > > > ----- Original Message -----
> > > > > From: "Tarun Garg" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, July 04, 2001 7:23 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.
> > > > > >
> > > > >
> > > > > You can put the rpcrouter into your "web.xml" and
> > > > > put your service programs in web-inf/classes.
> > > > > Hope this help.
> > > > >
> > > > > Huimin Wang,
> > > > > Globus Inc, Japan.
> > > > >
> > > > >
> > > >
> > >
> >
>