You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tarun Garg <ta...@induslogic.com> on 2001/07/04 12:23:19 UTC

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.



Re: soap service class.

Posted by William Brogden <wb...@bga.com>.

Tarun Garg wrote:
> 
> 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.

 Tomcat only checks the date stamp on the servlet classes. It would
be preposterous to expect it to check the date stamp on every class
that might be called.

 Since rpcrouter does not change, of course it does not reload soap
classes. 

 You could try un-deploying and re-deploying the service, but I bet
you will find it faster to stop and restart Tomcat.
 

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Re: soap service class.

Posted by Kaneda K <ka...@dedaletechnology.com>.
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" <ta...@induslogic.com>
>To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
>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.
> >
> >


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
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" <ta...@induslogic.com>
To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
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.
>
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
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" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
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" <wa...@sm.sony.co.jp>
> > To: <so...@xml.apache.org>
> > 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" <ta...@induslogic.com>
> > > To: <so...@xml.apache.org>
> > > 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" <wa...@sm.sony.co.jp>
> > > > To: <so...@xml.apache.org>
> > > > Sent: Wednesday, July 04, 2001 4:26 PM
> > > > Subject: Re: soap service class.
> > > >
> > > >
> > > > > ----- Original Message -----
> > > > > From: "Tarun Garg" <ta...@induslogic.com>
> > > > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > > > 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.
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
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" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
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" <wa...@sm.sony.co.jp>
> > To: <so...@xml.apache.org>
> > 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" <ta...@induslogic.com>
> > > To: <so...@xml.apache.org>
> > > 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" <wa...@sm.sony.co.jp>
> > > > To: <so...@xml.apache.org>
> > > > Sent: Wednesday, July 04, 2001 4:26 PM
> > > > Subject: Re: soap service class.
> > > >
> > > >
> > > > > ----- Original Message -----
> > > > > From: "Tarun Garg" <ta...@induslogic.com>
> > > > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > > > 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.
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
> 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" <wa...@sm.sony.co.jp>
> To: <so...@xml.apache.org>
> 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" <ta...@induslogic.com>
> > To: <so...@xml.apache.org>
> > 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" <wa...@sm.sony.co.jp>
> > > To: <so...@xml.apache.org>
> > > Sent: Wednesday, July 04, 2001 4:26 PM
> > > Subject: Re: soap service class.
> > >
> > >
> > > > ----- Original Message -----
> > > > From: "Tarun Garg" <ta...@induslogic.com>
> > > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > > 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.
> > > >
> > > >
> > >
> >
>


Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
> 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" <wa...@sm.sony.co.jp>
> To: <so...@xml.apache.org>
> 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" <ta...@induslogic.com>
> > To: <so...@xml.apache.org>
> > 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" <wa...@sm.sony.co.jp>
> > > To: <so...@xml.apache.org>
> > > Sent: Wednesday, July 04, 2001 4:26 PM
> > > Subject: Re: soap service class.
> > >
> > >
> > > > ----- Original Message -----
> > > > From: "Tarun Garg" <ta...@induslogic.com>
> > > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > > 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.
> > > >
> > > >
> > >
> >
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
Thanks oh for replying.

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: "oh" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
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" <ta...@induslogic.com>
> To: <so...@xml.apache.org>
> 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" <wa...@sm.sony.co.jp>
> > To: <so...@xml.apache.org>
> > Sent: Wednesday, July 04, 2001 4:26 PM
> > Subject: Re: soap service class.
> >
> >
> > > ----- Original Message -----
> > > From: "Tarun Garg" <ta...@induslogic.com>
> > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > 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.
> > >
> > >
> >
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
Thanks oh for replying.

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: "oh" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
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" <ta...@induslogic.com>
> To: <so...@xml.apache.org>
> 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" <wa...@sm.sony.co.jp>
> > To: <so...@xml.apache.org>
> > Sent: Wednesday, July 04, 2001 4:26 PM
> > Subject: Re: soap service class.
> >
> >
> > > ----- Original Message -----
> > > From: "Tarun Garg" <ta...@induslogic.com>
> > > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > > 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.
> > >
> > >
> >
>


Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
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" <ta...@induslogic.com>
To: <so...@xml.apache.org>
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" <wa...@sm.sony.co.jp>
> To: <so...@xml.apache.org>
> Sent: Wednesday, July 04, 2001 4:26 PM
> Subject: Re: soap service class.
>
>
> > ----- Original Message -----
> > From: "Tarun Garg" <ta...@induslogic.com>
> > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > 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.
> >
> >
>


Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
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" <ta...@induslogic.com>
To: <so...@xml.apache.org>
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" <wa...@sm.sony.co.jp>
> To: <so...@xml.apache.org>
> Sent: Wednesday, July 04, 2001 4:26 PM
> Subject: Re: soap service class.
>
>
> > ----- Original Message -----
> > From: "Tarun Garg" <ta...@induslogic.com>
> > To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> > 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.
> >
> >
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
How should I put the rpcrouter into "web.xml" ???


----- Original Message -----
From: "oh" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
Sent: Wednesday, July 04, 2001 4:26 PM
Subject: Re: soap service class.


> ----- Original Message -----
> From: "Tarun Garg" <ta...@induslogic.com>
> To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> 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.
>
>


Re: soap service class.

Posted by Tarun Garg <ta...@induslogic.com>.
How should I put the rpcrouter into "web.xml" ???


----- Original Message -----
From: "oh" <wa...@sm.sony.co.jp>
To: <so...@xml.apache.org>
Sent: Wednesday, July 04, 2001 4:26 PM
Subject: Re: soap service class.


> ----- Original Message -----
> From: "Tarun Garg" <ta...@induslogic.com>
> To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
> 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.
>
>


Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
----- Original Message -----
From: "Tarun Garg" <ta...@induslogic.com>
To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
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.



Re: soap service class.

Posted by William Brogden <wb...@bga.com>.

Tarun Garg wrote:
> 
> 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.

 Tomcat only checks the date stamp on the servlet classes. It would
be preposterous to expect it to check the date stamp on every class
that might be called.

 Since rpcrouter does not change, of course it does not reload soap
classes. 

 You could try un-deploying and re-deploying the service, but I bet
you will find it faster to stop and restart Tomcat.
 

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Re: soap service class.

Posted by oh <wa...@sm.sony.co.jp>.
----- Original Message -----
From: "Tarun Garg" <ta...@induslogic.com>
To: <to...@jakarta.apache.org>; <so...@xml.apache.org>
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.