RE: War File Deployment Problem in Windows

2005-06-09 Thread Marquez, Omar

Hey thanks Matt,


right on, with your information I found out that what I need to do was to
include a META-INF/context.xml file in my application defining a context and
using the settings to prevent library locking, something like:

Context
path=/OES2 
  antiResourceLocking=true antiJARLocking=true 
  WatchedResource/usr/local/tomcat/conf/context.xml/WatchedResource
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context


this solved my problem.

Thanks again,

Omar

-Original Message-
From: Matt Tucker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 4:13 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: War File Deployment Problem in Windows


Omar,

Yeah, I had the same problem earlier this week when I upgraded. I got no 
response from this list because I'm sure the question has been posted a 
thousand times. But I will have mercy on you because I feel your pain. 
It's a problem with file locking on Windows. In my case, some of the 
JARs in my WEB-INF/lib directory were being locked so when the WAR was 
undeployed by tomcat, it wasn't able to delete them and my redeploy 
failed. In any case, check out this FAQ:

http://jakarta.apache.org/tomcat/faq/windows.html#lock

Matt Tucker
thoughtbot

cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com



Marquez, Omar wrote:

Hi,
 
I'm using tomcat 5.5.9 in Linux and Windows . For some reason when I
redeploy a war file to the Windows Tomcat instance I need to restart tomcat
and then deploy again before being able to access the new version of the
war
file app. I don't have this problem with the Linux version, the server
configurations are the same as far as I can see
 
Any idea why windows is giving me this trouble???
 
 
Regards,
Omar

  


The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above.  If you are not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited.   If you have received this communication in error,
please notify the sender and delete/destroy the original message and any
copy of it from your computer or paper files.

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



War File Deployment Problem in Windows

2005-06-08 Thread Marquez, Omar
Hi,
 
I'm using tomcat 5.5.9 in Linux and Windows . For some reason when I
redeploy a war file to the Windows Tomcat instance I need to restart tomcat
and then deploy again before being able to access the new version of the war
file app. I don't have this problem with the Linux version, the server
configurations are the same as far as I can see
 
Any idea why windows is giving me this trouble???
 
 
Regards,
Omar

-- 
Omar Marquez 

Software Engineer  / Chicago
Telf. 312 894 7689
E-Mail: [EMAIL PROTECTED] 

 
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above.  If you are not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited.   If you have received this communication in error,
please notify the sender and delete/destroy the original message and any
copy of it from your computer or paper files.


Re: War File Deployment Problem in Windows

2005-06-08 Thread Matt Tucker

Omar,

Yeah, I had the same problem earlier this week when I upgraded. I got no 
response from this list because I'm sure the question has been posted a 
thousand times. But I will have mercy on you because I feel your pain. 
It's a problem with file locking on Windows. In my case, some of the 
JARs in my WEB-INF/lib directory were being locked so when the WAR was 
undeployed by tomcat, it wasn't able to delete them and my redeploy 
failed. In any case, check out this FAQ:


http://jakarta.apache.org/tomcat/faq/windows.html#lock

Matt Tucker
thoughtbot

cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com



Marquez, Omar wrote:


Hi,

I'm using tomcat 5.5.9 in Linux and Windows . For some reason when I
redeploy a war file to the Windows Tomcat instance I need to restart tomcat
and then deploy again before being able to access the new version of the war
file app. I don't have this problem with the Linux version, the server
configurations are the same as far as I can see

Any idea why windows is giving me this trouble???


Regards,
Omar

 





war file deployment problem

2002-09-06 Thread Dave Robbins

Hello All,
kindof a newbie here so be gentle
I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
a link that calls a servlet which does a database lookup and spews out some 
data. It works fine with the built in copy of Tomcat that comes with Forte.
I build a war file and try to deploy it on another machine with Tomcat 
4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
dir and use this command from a browser

http://localhost:8080/manager/install?
path=/dummywar=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/

now the command

http://localhost:8080/manager/install

tells me that my app is running, but when I try to access it with

http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
resource is not available. I kinda thought Tomcat could access the war file 
in it's bundled state but after reading the docs I got the impression the 
manager app was gonna expand it, is that true? In my case the file wasn't 
expanded. After some head scratching I figured I'd manually expand the war 
file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat 
everything works fine with http://localhost/index.jsp.
 
So, let me ask a few questions

1) What does the manager app do
does it modify $CATALINA_HOME/conf/server.xml
should it expand the war file

2)If I'm gonna deploy multiple apps, what's the typical dir structure
$CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
could i deploy an app outside the Tomcat dir structure (ie /home/mydir)

3)Is this the correct flow of things
Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
about the apps that are installed and what path they're mapped to. when a 
client tries to access an app, Tomcat goes and looks in the jar file and 
reads web.xml to discover what all is in the war file. Within the war file 
any static content goes in the WEB-INF dir, class files go in WEB-
INF/classes and .jar files goe in WEB-INF/lib

hep me, hep me

Dave



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




Re: war file deployment problem

2002-09-06 Thread Peter Davison

Hi Dave.

I think you're making this more complicated than it needs to be.

Two things:
1. Try putting your war file in the $CATALINA_HOME/webapps directory rather than
 $CATALINA_HOME/webapps/dummy.  If your tomcat installation is set up to unpack
war files (this is the default) it will create the dummy webapp directory for
you and unpack everything into that directory when you restart tomcat.

2. The URL to use to access your webapp will also have to use port 8080.  Unless
you've modified your server.xml file and you're running tomcat as root that is. 
This set up will work with the out of the box tomcat installation.  No need to
modify server.xml at all.

You should then be able to access your app like this:
http://localhost:8080/dummy

See if that simplifies things.

Regards,
Pete  

On Fri, 6 Sep 2002 12:51:26 -0400 (EDT)
Dave Robbins [EMAIL PROTECTED] wrote:

 Hello All,
 kindof a newbie here so be gentle
 I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
 a link that calls a servlet which does a database lookup and spews out some 
 data. It works fine with the built in copy of Tomcat that comes with Forte.
 I build a war file and try to deploy it on another machine with Tomcat 
 4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
 dir and use this command from a browser
 
 http://localhost:8080/manager/install?
 path=/dummywar=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
 
 now the command
 
 http://localhost:8080/manager/install
 
 tells me that my app is running, but when I try to access it with
 
 http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
 resource is not available. I kinda thought Tomcat could access the war file 
 in it's bundled state but after reading the docs I got the impression the 
 manager app was gonna expand it, is that true? In my case the file wasn't 
 expanded. After some head scratching I figured I'd manually expand the war 
 file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat 
 everything works fine with http://localhost/index.jsp.
  
 So, let me ask a few questions
 
 1) What does the manager app do
 does it modify $CATALINA_HOME/conf/server.xml
 should it expand the war file
 
 2)If I'm gonna deploy multiple apps, what's the typical dir structure
 $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
 could i deploy an app outside the Tomcat dir structure (ie /home/mydir)
 
 3)Is this the correct flow of things
 Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
 about the apps that are installed and what path they're mapped to. when a 
 client tries to access an app, Tomcat goes and looks in the jar file and 
 reads web.xml to discover what all is in the war file. Within the war file 
 any static content goes in the WEB-INF dir, class files go in WEB-
 INF/classes and .jar files goe in WEB-INF/lib
 
 hep me, hep me
 
 Dave
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


--
Peter Davison
[EMAIL PROTECTED]

...the increased productivity fostered by a friendly environment and quality
tools is essential to meet ever increasing demands for software.
-- M. D. McIlroy, E. N. Pinson and B. A. Tague

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




Re: war file deployment problem

2002-09-06 Thread Dave Robbins

What? Me make it more complicated than it is?
surely you jest!

I got it to work by putting the war file in $CATALINA_HOME/webapps/ROOT 
I still don't know what I'm doing but I'll be able to figure it out now 
that I've got something working.

Thanks
Dave 
 Hi Dave.
 
 I think you're making this more complicated than it needs to be.
 
 Two things:
 1. Try putting your war file in the $CATALINA_HOME/webapps directory
 rather than
  $CATALINA_HOME/webapps/dummy.  If your tomcat installation is set up
  to unpack
 war files (this is the default) it will create the dummy webapp
 directory for you and unpack everything into that directory when you
 restart tomcat.
 
 2. The URL to use to access your webapp will also have to use port
 8080.  Unless you've modified your server.xml file and you're running
 tomcat as root that is.  This set up will work with the out of the box
 tomcat installation.  No need to modify server.xml at all.
 
 You should then be able to access your app like this:
 http://localhost:8080/dummy
 
 See if that simplifies things.
 
 Regards,
 Pete  
 
 On Fri, 6 Sep 2002 12:51:26 -0400 (EDT)
 Dave Robbins [EMAIL PROTECTED] wrote:
 
 Hello All,
 kindof a newbie here so be gentle
 I wrote a little dummy app with Forte 4.0 that consists of a jsp page
 with  a link that calls a servlet which does a database lookup and
 spews out some  data. It works fine with the built in copy of Tomcat
 that comes with Forte. I build a war file and try to deploy it on
 another machine with Tomcat  4.0.4 on it. I put my file dummy.war in
 the $CATALINA_HOME/webapps/dummy  dir and use this command from a
 browser
 
 http://localhost:8080/manager/install?
 path=/dummywar=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
 
 now the command
 
 http://localhost:8080/manager/install
 
 tells me that my app is running, but when I try to access it with
 
 http://localhost/dummy or http://localhost/dummy/index.jsp it says the
  resource is not available. I kinda thought Tomcat could access the
 war file  in it's bundled state but after reading the docs I got the
 impression the  manager app was gonna expand it, is that true? In my
 case the file wasn't  expanded. After some head scratching I figured
 I'd manually expand the war  file in the $CATALINA_HOME/ROOT dir.
 After doing that and restarting Tomcat  everything works fine with
 http://localhost/index.jsp.
  
 So, let me ask a few questions
 
 1) What does the manager app do
 does it modify $CATALINA_HOME/conf/server.xml
 should it expand the war file
 
 2)If I'm gonna deploy multiple apps, what's the typical dir structure
 $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
 could i deploy an app outside the Tomcat dir structure (ie
 /home/mydir)
 
 3)Is this the correct flow of things
 Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now
 knows  about the apps that are installed and what path they're mapped
 to. when a  client tries to access an app, Tomcat goes and looks in
 the jar file and  reads web.xml to discover what all is in the war
 file. Within the war file  any static content goes in the WEB-INF dir,
 class files go in WEB- INF/classes and .jar files goe in WEB-INF/lib
 
 hep me, hep me
 
 Dave
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED] For additional
 commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 Peter Davison
 [EMAIL PROTECTED]
 
 ...the increased productivity fostered by a friendly environment and
 quality tools is essential to meet ever increasing demands for
 software.
 -- M. D. McIlroy, E. N. Pinson and B. A. Tague
 
 --
 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]




Re: war file deployment problem

2002-09-06 Thread hoju

You are confusing Tomcat.  If you are going to dynamically deploy your webapp,
don't have the .war file sitting in $TOMCAT_HOME/webapps.  Have it somewhere
else.  Everything in $TOMCAT_HOME/webapps is automatically deployed and, yes, it
is expanded if you *don't* have a Context entry defined for that webapp.

when you install like you are, there is already a webapp defined for the path
you are specifying.  Now you install another webapp under the same name.  I
don't know how Tomcat handles this situation, but it looks as if it hoses the
webapp entry.  Make sure to name your webapps uniquely and don't put any .war
files or expanded directories that you plan on dynamically installing through
the manager in Tomcat's default auto-deploy directory (webapps).

Jake

Quoting Dave Robbins [EMAIL PROTECTED]:

 Hello All,
 kindof a newbie here so be gentle
 I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
 a link that calls a servlet which does a database lookup and spews out some
 
 data. It works fine with the built in copy of Tomcat that comes with Forte.
 I build a war file and try to deploy it on another machine with Tomcat 
 4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
 dir and use this command from a browser
 
 http://localhost:8080/manager/install?
 path=/dummywar=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
 
 now the command
 
 http://localhost:8080/manager/install
 
 tells me that my app is running, but when I try to access it with
 
 http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
 resource is not available. I kinda thought Tomcat could access the war file
 
 in it's bundled state but after reading the docs I got the impression the 
 manager app was gonna expand it, is that true? In my case the file wasn't 
 expanded. After some head scratching I figured I'd manually expand the war 
 file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat
 
 everything works fine with http://localhost/index.jsp.
  
 So, let me ask a few questions
 
 1) What does the manager app do
 does it modify $CATALINA_HOME/conf/server.xml
 should it expand the war file
 
 2)If I'm gonna deploy multiple apps, what's the typical dir structure
 $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
 could i deploy an app outside the Tomcat dir structure (ie /home/mydir)
 
 3)Is this the correct flow of things
 Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
 about the apps that are installed and what path they're mapped to. when a 
 client tries to access an app, Tomcat goes and looks in the jar file and 
 reads web.xml to discover what all is in the war file. Within the war file 
 any static content goes in the WEB-INF dir, class files go in WEB-
 INF/classes and .jar files goe in WEB-INF/lib
 
 hep me, hep me
 
 Dave
 
 
 
 --
 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]




Re: war file deployment problem

2002-09-06 Thread Dave Robbins

Thanks a million for the quick feedback
I've got things working now
Once you see how this works it's pretty easy, but I must say getting here 
was kinda tuff
maybe when I get a little further along I'll make up a little tutorial 
titled

how to tie your shoes
before you learn to walk
before you learn to run

Thanx Again

Dave
 You are confusing Tomcat.  If you are going to dynamically deploy your
 webapp, don't have the .war file sitting in $TOMCAT_HOME/webapps.  Have
 it somewhere else.  Everything in $TOMCAT_HOME/webapps is automatically
 deployed and, yes, it is expanded if you *don't* have a Context entry
 defined for that webapp.
 
 when you install like you are, there is already a webapp defined for
 the path you are specifying.  Now you install another webapp under the
 same name.  I don't know how Tomcat handles this situation, but it
 looks as if it hoses the webapp entry.  Make sure to name your webapps
 uniquely and don't put any .war files or expanded directories that you
 plan on dynamically installing through the manager in Tomcat's default
 auto-deploy directory (webapps).
 
 Jake
 
 Quoting Dave Robbins [EMAIL PROTECTED]:
 
 Hello All,
 kindof a newbie here so be gentle
 I wrote a little dummy app with Forte 4.0 that consists of a jsp page
 with  a link that calls a servlet which does a database lookup and
 spews out some
 
 data. It works fine with the built in copy of Tomcat that comes with
 Forte. I build a war file and try to deploy it on another machine with
 Tomcat  4.0.4 on it. I put my file dummy.war in the
 $CATALINA_HOME/webapps/dummy  dir and use this command from a browser
 
 http://localhost:8080/manager/install?
 path=/dummywar=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
 
 now the command
 
 http://localhost:8080/manager/install
 
 tells me that my app is running, but when I try to access it with
 
 http://localhost/dummy or http://localhost/dummy/index.jsp it says the
  resource is not available. I kinda thought Tomcat could access the
 war file
 
 in it's bundled state but after reading the docs I got the impression
 the  manager app was gonna expand it, is that true? In my case the
 file wasn't  expanded. After some head scratching I figured I'd
 manually expand the war  file in the $CATALINA_HOME/ROOT dir. After
 doing that and restarting Tomcat
 
 everything works fine with http://localhost/index.jsp.
  
 So, let me ask a few questions
 
 1) What does the manager app do
 does it modify $CATALINA_HOME/conf/server.xml
 should it expand the war file
 
 2)If I'm gonna deploy multiple apps, what's the typical dir structure
 $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
 could i deploy an app outside the Tomcat dir structure (ie
 /home/mydir)
 
 3)Is this the correct flow of things
 Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now
 knows  about the apps that are installed and what path they're mapped
 to. when a  client tries to access an app, Tomcat goes and looks in
 the jar file and  reads web.xml to discover what all is in the war
 file. Within the war file  any static content goes in the WEB-INF dir,
 class files go in WEB- INF/classes and .jar files goe in WEB-INF/lib
 
 hep me, hep me
 
 Dave
 
 
 
 --
 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]



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




war file deployment problem with tomcat 4.0.3

2002-06-20 Thread Koes, Derrick

I have dropped the war file into the %CATALINA_HOME%/webapps directory.

I run startup.bat.

Tomcat expands my war file, but I always get:

 


Apache Tomcat/4.0.3 - HTTP Status 404 - /dora

  _  


type Status report

message /dora

description The requested resource (/dora) is not available.

 

 

Why is this happening?

 

 

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = Derrick Koes;

String title = Senior Software Engineer;

String company = Smith + Nephew Endoscopy;

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
http://www.smith-nephew.com/index-flash.html );

String aolIM = codeauthor2001;

String EMAIL = [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]@smith-nephew.com ;

String PHONE = (978) 749-1288;

String FAX = (978) 749-1487;

}

 




Re: war file deployment problem with tomcat 4.0.3

2002-06-20 Thread anette mysel

Dear Derrick
   I am not a member of tomcat, nor do I know anything about it. I have
recieved many emails from tomcat members that have a virus attached to them.
Please do not email me again. I have emailed for them to unsubscribe me
several times, but to no avail.
 Thank you!
- Original Message -
From: Koes, Derrick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 4:26 PM
Subject: war file deployment problem with tomcat 4.0.3


 I have dropped the war file into the %CATALINA_HOME%/webapps directory.

 I run startup.bat.

 Tomcat expands my war file, but I always get:




 Apache Tomcat/4.0.3 - HTTP Status 404 - /dora

   _


 type Status report

 message /dora

 description The requested resource (/dora) is not available.





 Why is this happening?







 /**

  * Contact information.

  */

 public interface INFO

 {

 static final String NAME = Derrick Koes;

 String title = Senior Software Engineer;

 String company = Smith + Nephew Endoscopy;

 URL companyURL = new URL(

 http://www.smith-nephew.com/index-flash.html
 http://www.smith-nephew.com/index-flash.html );

 String aolIM = codeauthor2001;

 String EMAIL = [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]@smith-nephew.com ;

 String PHONE = (978) 749-1288;

 String FAX = (978) 749-1487;

 }






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