RE: unpacking of WAR

2002-08-10 Thread Andrew

Craig, I was under the impression that the WAR would only be expanded if
there was no existing Context of that name.  Is this correct?

- Andrew

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, August 10, 2002 1:01 AM
 To: Tomcat Users List
 Subject: Re: unpacking of WAR
 
 
 
 
 On Fri, 9 Aug 2002, Paul Phillips wrote:
 
  Date: Fri, 09 Aug 2002 22:49:00 -0500
  From: Paul Phillips [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: unpacking of WAR
 
  I worked on deploying my first webapp to another server today.  I 
  packaged it up as a war, transferred it to the other tomcat server, 
  added the one line context element in the server.xml, and 
 restarted.  
  Nothing - the logs said that the webapp that was referenced by the 
  context statement was not available or in a readable 
 format.  In fact, 
  the war did not expand into the file system.
 
  So, I removed the context element, and restarted.  With the context 
  gone, the WAR expanded properly.  Then I added the context back in, 
  and it worked fine.
 
  Is this normal?
 
 
 Depends on what you specified for the docBase parameter in 
 the Context element.  This needs to be the absolute or relative (to
 $CATALINA_HOME/webapps) name of the WAR file.
 
 Craig
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: unpacking of WAR

2002-08-10 Thread Craig R. McClanahan



On Sat, 10 Aug 2002, Andrew wrote:

 Date: Sat, 10 Aug 2002 12:18:50 -0400
 From: Andrew [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: unpacking of WAR

 Craig, I was under the impression that the WAR would only be expanded if
 there was no existing Context of that name.  Is this correct?


That's true.  And any auto-expanded directory will *not* be modified if
you update the WAR and restart Tomcat.  That's because people would still
modify the deployed files (in the expanded directory) instead of going
back to their original sources, and get annoyed when their in-place
updates got wiped out.

Personally, I never use the webapps directory any more -- the custom Ant
install and deploy tasks (Tomcat 4.1.x) are really cool.  My normal
development cycle for a webapp:

* Start Tomcat and just leave it running (if not already started)

* Run ant compile to build my webapp into a build/webapp subdirectory

* Run ant install to dynamically install it on Tomcat, passing the
  directory name of my build/webapp directory.

* If I need to modify something, I do it and run ant compile reload
  to reload the app.

* To clean up, ant remove.

There's a fully worked out build.xml file that supports all of this in the
Application Developer's Guide document that ships with Tomcat 4.1.

  http://localhost:8080/tomcat-docs/appdev/

The 4.1.x codebase is nearing release quality; you should really start
playing with the new features if you haven't yet.  You'll never go back to
the webapps directory again :-).

 - Andrew


Craig


  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, August 10, 2002 1:01 AM
  To: Tomcat Users List
  Subject: Re: unpacking of WAR
 
 
 
 
  On Fri, 9 Aug 2002, Paul Phillips wrote:
 
   Date: Fri, 09 Aug 2002 22:49:00 -0500
   From: Paul Phillips [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: unpacking of WAR
  
   I worked on deploying my first webapp to another server today.  I
   packaged it up as a war, transferred it to the other tomcat server,
   added the one line context element in the server.xml, and
  restarted.
   Nothing - the logs said that the webapp that was referenced by the
   context statement was not available or in a readable
  format.  In fact,
   the war did not expand into the file system.
  
   So, I removed the context element, and restarted.  With the context
   gone, the WAR expanded properly.  Then I added the context back in,
   and it worked fine.
  
   Is this normal?
  
 
  Depends on what you specified for the docBase parameter in
  the Context element.  This needs to be the absolute or relative (to
  $CATALINA_HOME/webapps) name of the WAR file.
 
  Craig
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 


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




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




unpacking of WAR

2002-08-09 Thread Paul Phillips

I worked on deploying my first webapp to another server today.  I packaged 
it up as a war, transferred it to the other tomcat server, added the one 
line context element in the server.xml, and restarted.  Nothing - the logs 
said that the webapp that was referenced by the context statement was not 
available or in a readable format.  In fact, the war did not expand into 
the file system.

So, I removed the context element, and restarted.  With the context gone, 
the WAR expanded properly.  Then I added the context back in, and it worked 
fine.

Is this normal?

Thanks
Paul Phillips

PS - the context element in the server.xml is just there to pass in a 
parameter containing the location of a data directory.

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




Re: unpacking of WAR

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Paul Phillips wrote:

 Date: Fri, 09 Aug 2002 22:49:00 -0500
 From: Paul Phillips [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: unpacking of WAR

 I worked on deploying my first webapp to another server today.  I packaged
 it up as a war, transferred it to the other tomcat server, added the one
 line context element in the server.xml, and restarted.  Nothing - the logs
 said that the webapp that was referenced by the context statement was not
 available or in a readable format.  In fact, the war did not expand into
 the file system.

 So, I removed the context element, and restarted.  With the context gone,
 the WAR expanded properly.  Then I added the context back in, and it worked
 fine.

 Is this normal?


Depends on what you specified for the docBase parameter in the Context
element.  This needs to be the absolute or relative (to
$CATALINA_HOME/webapps) name of the WAR file.

Craig



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




Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Jeff Larsen

Tomcat 4.0.3 is NOT unpacking my WAR file and my application
is not getting loaded. Is this a bug or is there a configuration
issue that I am missing.

If I run without unpacking the war (i.e., docBase=online.war), the 
application runs just fine, but then I can't have Apache httpd serve
my static html and images.

Here's the Host section of my server.xml

Host name=localhost debug=0 appBase=webapps unpackWARs=true
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=access. suffix=.log
 pattern=common timestamp=true/

  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost. suffix=.log
  timestamp=false/

  Context path=/online docBase=online debug=0
   reloadable=false crossContext=false useNaming=false
Logger className=org.apache.catalina.logger.FileLogger
prefix=online. suffix=.log timestamp=true/
  /Context
/Host


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Daniel Bruce Lynes

On March 21, 2002 08:02 am, you wrote:

 Tomcat 4.0.3 is NOT unpacking my WAR file and my application
 is not getting loaded. Is this a bug or is there a configuration
 issue that I am missing.

It'll only do this if the server is restarted.  Tomcat doesn't support 
on-the-fly deploy yet.   I've also noticed that if the directory already 
exists for the web application in question, that it never extracts the war 
file.  This seems to be the behaviour on all of the Tomcat versions I've 
tried recently (3.2.1,3.2.3,3.3rc1,4.0.1).

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Jeff Larsen

Let me clarify: Tomcat NEVER unpacks the war, not when it's restarted,
and even if the directory is not there. On restart, Tomcat complains
that it can't start the application, because the directory does not
exists.

- Original Message - 
From: Daniel Bruce Lynes [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 10:09 AM
Subject: Re: Tomcat 4.0.3. is not unpacking my WAR file


 On March 21, 2002 08:02 am, you wrote:
 
  Tomcat 4.0.3 is NOT unpacking my WAR file and my application
  is not getting loaded. Is this a bug or is there a configuration
  issue that I am missing.
 
 It'll only do this if the server is restarted.  Tomcat doesn't support 
 on-the-fly deploy yet.   I've also noticed that if the directory already 
 exists for the web application in question, that it never extracts the war 
 file.  This seems to be the behaviour on all of the Tomcat versions I've 
 tried recently (3.2.1,3.2.3,3.3rc1,4.0.1).
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]