stop/start Axis to redeploy?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

stop/start Axis to redeploy?

Dave Overbeck
Hello,

I've been debugging a web service and have discovered that in order to
deploy a new version of the .class file, I have to stop Axis (in the
Tomcat Manager screen) and then start it again. I have a batch file that
undeploys, copies the class file, and then deploys, but that does not
have any effect.

Is this the expected behavior? I was banging my head for a while
yesterday until I figured out that I was running the same class file for
the last hour. I don't see anything in the docs that specifically says
either way.

Thanks,
Dave


Reply | Threaded
Open this post in threaded view
|

Re: stop/start Axis to redeploy?

mmalinos
Dave,

Yes, that is the correct behavior...not only for deploying new classes to
Axis, but for
any Web Application deployed to Tomcat.  Also, if you make any changes to
the server-config.wsdd
you need to stop and start Axis for the changes to be applied...

Hope this helps,
Mark A. Malinoski
AES/PHEAA
Technical Coordinator/Web Development
717-720-2413
[hidden email]




                                                                           
             Dave Overbeck                                                
             <[hidden email]                                            
             m>                                                         To
                                       axis-user <[hidden email]>
             05/06/2005 07:11                                           cc
             AM                                                            
                                                                   Subject
                                       stop/start Axis to redeploy?        
             Please respond to                                            
             [hidden email]                                            
                  he.org                                                  
                                                                           
                                                                           
                                                                           




Hello,

I've been debugging a web service and have discovered that in order to
deploy a new version of the .class file, I have to stop Axis (in the
Tomcat Manager screen) and then start it again. I have a batch file that
undeploys, copies the class file, and then deploys, but that does not
have any effect.

Is this the expected behavior? I was banging my head for a while
yesterday until I figured out that I was running the same class file for
the last hour. I don't see anything in the docs that specifically says
either way.

Thanks,
Dave




Reply | Threaded
Open this post in threaded view
|

Re: stop/start Axis to redeploy?

LiChung Liu
In reply to this post by Dave Overbeck
Hi, I've had similar experience.  Depends on the privilege of the user
you are running the batch, it may not be able to override the previous
code on the application server.

What has worked for me is, instead of copying the .class files into the
WEB-INF/classes, make the batch script to jar up the class files and
place/replace the jar in the WEB-INF/lib directory.

Hope this works for you.
-Will

On 5/6/05, Dave Overbeck <[hidden email]> wrote:

> Hello,
>
> I've been debugging a web service and have discovered that in order to
> deploy a new version of the .class file, I have to stop Axis (in the
> Tomcat Manager screen) and then start it again. I have a batch file that
> undeploys, copies the class file, and then deploys, but that does not
> have any effect.
>
> Is this the expected behavior? I was banging my head for a while
> yesterday until I figured out that I was running the same class file for
> the last hour. I don't see anything in the docs that specifically says
> either way.
>
> Thanks,
> Dave
>
>