RE: deploy war file

2004-11-03 Thread Steve Kirk
do you have a context.xml in the war file or the webapps folder?  See
comments re context xml files in 4th para in page below - the para beginning
In addition to nesting Context elements inside a Host element  
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html 

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Sent: Monday 01 November 2004 19:42
 To: [EMAIL PROTECTED]
 Subject: deploy war file
 
 
 Hello,
  
 I am using Tomcat 4.1 on Win2000. I have a web application 
 that has been running for a while that has an entry in the 
 server.xml file for reloading etc.
 Anyway, I am beginning to create a .
 warfileforthecode,usingant.Ihave read the docs, and it seems 
 easy that one should put the .war file under the webapps 
 directory and restart the server. I do this, but get no luck. 
 The war file is good, I can extract the components from it, 
 and the path structure is good.
  
 Am I missing a step?
  
 Here is the server.xml for info:
  Context path=/merchant docBase=merchant debug=0 
 reloadable=true /
 and
 !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps 
unpackWARs=true autoDeploy=true
  
 So it looks like the server is configured to extract the 
 merchant.war file?
  
 Thanks,
 Scott
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: deploy war file

2004-11-01 Thread Wendy Smoak
From: Scott Purcell [EMAIL PROTECTED]
 Anyway, I am beginning to create a .war file for the code, using ant. I
have read the docs, and it seems easy that
 one should put the .war file under the webapps directory and restart the
server. I do this, but get no luck.

IME, Tomcat will not auto-expand the .war file if the directory structure
already exists.  I use the Manager app to remove the existing webapp, (which
deletes the .war file and the directory structure,) then deploy the new .war
file, which expands and starts.

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deploy war file

2004-11-01 Thread Scott Purcell
Thanks Wendy for the response.

I have removed the full directory structure under my merchant.jar so (merchant) 
directory and restarted, but it did not work either.  I am not familiar with the 
manager app, I would like to try that. I looked under programs but do not seen an 
entry for it. Do I call it from the cmd line?

Thanks,
Scott

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, November 01, 2004 2:05 PM
To: Tomcat Users List
Subject: Re: deploy war file


From: Scott Purcell [EMAIL PROTECTED]
 Anyway, I am beginning to create a .war file for the code, using ant. I
have read the docs, and it seems easy that
 one should put the .war file under the webapps directory and restart the
server. I do this, but get no luck.

IME, Tomcat will not auto-expand the .war file if the directory structure
already exists.  I use the Manager app to remove the existing webapp, (which
deletes the .war file and the directory structure,) then deploy the new .war
file, which expands and starts.

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deploy war file

2004-11-01 Thread Ben Souther
Go to:
http://localhost:8080/manager/html

But before you do that, open TOMCAT_HOME/conf/tomcat-users.xml
and add a username/password with manager role.



On Mon, 2004-11-01 at 15:20, Scott Purcell wrote:
 Thanks Wendy for the response.
 
 I have removed the full directory structure under my merchant.jar so (merchant) 
 directory and restarted, but it did not work either.  I am not familiar with the 
 manager app, I would like to try that. I looked under programs but do not seen an 
 entry for it. Do I call it from the cmd line?
 
 Thanks,
 Scott
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 01, 2004 2:05 PM
 To: Tomcat Users List
 Subject: Re: deploy war file
 
 
 From: Scott Purcell [EMAIL PROTECTED]
  Anyway, I am beginning to create a .war file for the code, using ant. I
 have read the docs, and it seems easy that
  one should put the .war file under the webapps directory and restart the
 server. I do this, but get no luck.
 
 IME, Tomcat will not auto-expand the .war file if the directory structure
 already exists.  I use the Manager app to remove the existing webapp, (which
 deletes the .war file and the directory structure,) then deploy the new .war
 file, which expands and starts.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: deploy war file

2004-11-01 Thread Wendy Smoak
From: Scott Purcell [EMAIL PROTECTED]
 I have removed the full directory structure under my merchant.jar so
(merchant) directory and restarted,
 but it did not work either.

If you stop Tomcat, remove the entire directory structure under webapps, and
restart with a .war file present in webapps, it ought to deploy itself,
assuming you're configured correctly.

  I am not familiar with the manager app, I would like to try that. I
looked
 under programs but do not seen an entry for it. Do I call it from the cmd
line?

I use the Ant tasks on my development machine, and the web interface to
deploy to the production server.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/html-manager-howto.html

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]