I'm trying to get the Tomcat manager app to unpack war files when I
install them. (using Deploy directory or WAR file located on server)
The only setting I found that is supposed to control this is unpackWARs,
so I have this in my server.xml:
Host name=localhost debug=0 appBase
Thanks to all.
This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. And
am sure it will work on other platforms as well. This setup also handles
Apache related webapps..
Make the required entries in the DNS
webapp.war: Extract the war file using zip and rename the folder
/webapps/ROOT.war and
ensure it does not contain any META-INF/context.xml file --
/Host
/Engine
Ensure the 3 sets of webapps and work directories are writable by
the userid your JVM is running as.
Mahesh S Kudva wrote:
I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files
have 3 application in war files
namely flie1.war, file2.war and file3.war. To deploy, I just put them in
the deploy folder and access then using the urls:
http://foo.com/file1
http://foo.com/file2
http://foo.com/file3
This works perfectly for me. I want to change this to simple urls
up tomcat to do virtual hosting and behave more
like apache with regard to virtual hosts.
Yours,
Pete Stevens
On Tue, 16 Aug 2005, Mahesh S Kudva wrote:
Hi
I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files
namely flie1.war, file2.war and file3.war. To deploy, I just put
Users List
Emne: Re: Virtual Hosting with WAR files
Try reading this,
http://www.ex-parrot.com/~pete/tomcat-vhost.html
It's a receipe for setting up tomcat to do virtual hosting and behave more
like apache with regard to virtual hosts.
Yours,
Pete Stevens
On Tue, 16 Aug 2005, Mahesh S Kudva
Charles Meier wrote:
If I understand this setup correctly, you would be running one
instance of Tomcat for all of your
virtual hosts. This has the disadvantage that if one virtual host
needs to be restarted, you will need
to restart Tomcat for all of your virtual hosts.
An alternative is
Hi
I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files
namely flie1.war, file2.war and file3.war. To deploy, I just put them in
the deploy folder and access then using the urls:
http://foo.com/file1
http://foo.com/file2
http://foo.com/file3
This works perfectly for me. I want
Hello,
I have read the documentation and searched the archives, and whatever I have
found, I have tried, but still my .war files will not unpack and auto deploy. I
have been running a tomcat server for several months in which the .war files
unpacked and auto-deployed perfectly
Hi,
I don't know if it was just a typo in your post, but AutoDeploy
should be |autoDeploy.
-- Edgar Alves
|
Paul Warner wrote:
Hello,
I have read the documentation and searched the archives, and whatever I have
found, I have tried, but still my .war files will not unpack and auto deploy
altered by me, and almost exactly matches the server.xml file
on the other machine, the one that works.
Thanks,
Paul
|
Paul Warner wrote:
Hello,
I have read the documentation and searched the archives, and
whatever I have
found, I have tried, but still my .war files will not unpack
and auto
A typo in a post about a typo... :)
s/|autodeploy/autoDeploy/
Edgar Alves wrote:
Hi,
I don't know if it was just a typo in your post, but AutoDeploy
should be |autoDeploy.
-- Edgar Alves
|
Paul Warner wrote:
-
To
it
manually, they reload the application, it's somehow stuid, but working
stable.
Cheers
Bernhard
-Ursprüngliche Nachricht-
Von: Insyde [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 18. Juli 2005 19:47
An: Tomcat Users List
Betreff: Deployment using WAR files
Hello,
I have some questions
the components of web application to the folder of
web application as we used to do. But is that the correct way to do it ? How to
could we deploy part of a web application using war files ? Is it possible to
do it ? We wonder how people work in order to solve or minimize this situation.
Thanks
Hi,
I have a project which generates log files within the project area. When I
deploy a war file to a running tomcat instance the project appears to be
deleted and re-created. Is there anyway to deploy automatically without
deleting these files (or any files that exist in the project area that
Move your log file out of your context.
-Original Message-
From: Darren Carman [mailto:[EMAIL PROTECTED]
Sent: June 27, 2005 9:39 AM
To: tomcat-user@jakarta.apache.org
Subject: deploying war files
Hi,
I have a project which generates log files within the project area. When I
deploy
: Darren Carman [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 27. Juni 2005 15:39
An: tomcat-user@jakarta.apache.org
Betreff: deploying war files
Hi,
I have a project which generates log files within the project
area. When I deploy a war file to a running tomcat instance
the project appears
I apologize up front if this has been answered at some other time. This is my
first day on the list and I could not locate a search function for the archives.
I am running Tomcat 5.5.7 with Apache 2.0.52 and ModJk 1.2.6
For some reason when I drop a war file in the webapps directory it will
(CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 1:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 will not autodeploy war files
I apologize up front if this has been answered at some other time. This is
my first day on the list and I could not locate a search function
List'
Subject: RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)
Classification: UNCLASSIFIED
Caveats: NONE
Looking at your server.xml file, it should actually autodeploy it.
How are you updating the war file ? Copy/paste ? Or you're actually
Letting your IDE auto deploy
:37 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)
Classification: UNCLASSIFIED
Caveats: NONE
Looking at your server.xml file, it should actually autodeploy it.
How are you updating the war file ? Copy/paste ? Or you're actually
Letting your
will not autodeploy war files (UNCLASSIFIED)
I used to have this problem. It was solved when I moved the context entries
out of server.xml and into conf/Catalina/localhost as pointed out by:
Contexts hardcoded in server.xml are not autodeployed or manageable
(except to some extent through the admin
I have a question concerning the generation of a war file and my
web.xml file. I want to create a WAR file for my web application
using Ant, and place my web.xml file into the WAR file. The problem I
have is that once the web.xml file is placed into the web.xml file,
users/admins will not be
List
Subject: WAR files and web.xml
I have a question concerning the generation of a war file and my
web.xml file. I want to create a WAR file for my web application
using Ant, and place my web.xml file into the WAR file. The problem I
have is that once the web.xml file is placed
For the same needs,
I use the Context.xml outside the war.
use the tags Parameter .../ to pass your admin parameters.
Regards.
On Fri, 1 Apr 2005 08:26:37 -0500
Mark [EMAIL PROTECTED] wrote:
I have a question concerning the generation of a war file and my
web.xml file. I want to create a WAR
to Listener
which is home.Base. Set this where you normally put
user/public_html directory. For example on mine, its
set as homeBase=/home and user home is
/home/sergio. Once this is working, any war files on
your /home/user/public_html should get expanded.
--- Dwayne Ghant [EMAIL PROTECTED
. For example on mine,
its
set as homeBase=/home and user home is
/home/sergio. Once this is working, any war files
on
your /home/user/public_html should get expanded.
--- Dwayne Ghant [EMAIL PROTECTED] wrote:
Anybody won't to take a shoot at this?
Dwayne Ghant
is home.Base. Set this where you normally
put
user/public_html directory. For example on mine,
its
set as homeBase=/home and user home is
/home/sergio. Once this is working, any war files
on
your /home/user/public_html should get expanded.
--- Dwayne Ghant [EMAIL PROTECTED
within the Tomcat
properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally
put my
War files in a folder called 'war' directly beneath the project so my
WAR
file for export looks like this:
D:\eclipse
I think there is another attribute to Listener
which is home.Base. Set this where you normally put
user/public_html directory. For example on mine, its
set as homeBase=/home and user home is
/home/sergio. Once this is working, any war files on
your /home/user/public_html should get
where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath the project so my WAR
file for export looks like this:
D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free
Hello All,
I am new to WAR files and eclipse. Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed. I want to know if there is some
standard way to generate a WAR file for deployment. I have found that I can
export a JAR file and change its name
' from the tree on the left.
4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath
Eclipses' hoops for
java/J2EE stuff.
Your mileage may vary.
--JW
Phillip Qin wrote:
It is very easy. Use ant's war task.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: December 13, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: WAR files and Eclipse
Hello All,
I am
It is very easy. Use ant's war task.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: December 13, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: WAR files and Eclipse
Hello All,
I am new to WAR files and eclipse. Many searches on google bring me to the
sysdeo
Steven J. Owens wrote:
Peter,
On Tue, Nov 09, 2004 at 08:42:34AM +1100, Peter Johnson wrote:
We run 5 Tomcat servers (still on 4.1.x so not clustered) and use
CVS with two tags: 'stage' and 'prod'.
I'm a little unclear on what this means - do you mean branches?
Or do you mean
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Configuration Management, JSP Recompiles, War Files
On Sat, Nov 06, 2004 at 03:20:46AM -0500, Steven J. Owens wrote:
On Mon, Oct 25, 2004 at 09:15:41AM -0400, Shapira, Yoav wrote:
If I understand correctly, WAR file is just a glorified
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
One great way to approach production setups for Tomcat is one
webapp per Tomcat instance.
Restarts are then quick and easy, and no matter what
this one webapp does (OutOfMemoryErrors, malicious code,
etc.) it can't
affect others you have
.
Somebody I talked to suggested that using a WAR file and
redeploying would make tomcat more reliably recompile the JSPs.
I've been meaning to move to using WAR files sooner or later, but
one question has always bugged me - how do you save your
deployment-specific configuration info?
If I
Peter, Yoav,
Thanks for the advice. Now if I could just ask for a letle
more... :-)
On Mon, Nov 08, 2004 at 01:14:22PM -, Peter Crowther wrote:
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
One great way to approach production setups for Tomcat is one
webapp per Tomcat
Peter,
On Tue, Nov 09, 2004 at 08:42:34AM +1100, Peter Johnson wrote:
We run 5 Tomcat servers (still on 4.1.x so not clustered) and use
CVS with two tags: 'stage' and 'prod'.
I'm a little unclear on what this means - do you mean branches?
Or do you mean that you effectively do
On Mon, Oct 25, 2004 at 09:15:41AM -0400, Shapira, Yoav wrote:
If I understand correctly, WAR file is just a glorified JAR file,
which in turn is just a glorified tar file. So unless you're
unjarring it, editing the config file and rejarring it, you can't
really muck with the config
On Sat, Nov 06, 2004 at 03:20:46AM -0500, Steven J. Owens wrote:
On Mon, Oct 25, 2004 at 09:15:41AM -0400, Shapira, Yoav wrote:
If I understand correctly, WAR file is just a glorified JAR file,
which in turn is just a glorified tar file. So unless you're
unjarring it, editing the
the foo_jsp.java and foo_jsp.class
files from the tomcat/working/etc directory and *then* restarting
seems to do the trick.
Somebody I talked to suggested that using a WAR file and
redeploying would make tomcat more reliably recompile the JSPs.
I've been meaning to move to using WAR files sooner
On Sun, Oct 24, 2004 at 11:00:38PM -0400, Steven J. Owens wrote:
: I'm interested in hearing how people are dealing with
: configuration management issues.
:
: We've been running into some problems with JSP recompiles,
: particularly when the changed JSP is an included JSP.
: [snip]
until the new webapp is ready?
-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: 25 October 2004 12:18
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Configuration Management, JSP Recompiles, War Files
On Sun, Oct 24, 2004 at 11:00:38PM -0400, Steven J. Owens
On Mon, Oct 25, 2004 at 12:28:27PM +0100, Allistair Crossley wrote:
: your suggestion is precisely what we do here, but it still leads to 5 minutes
: downtime (web server nice maintenance page, removing old war, unpacking new
: war takes time).
I guess my clients have always listed this as a
Hi,
If I understand correctly, WAR file is just a glorified JAR file,
which in turn is just a glorified tar file. So unless you're
unjarring it, editing the config file and rejarring it, you can't
really muck with the config settings inside it. How/where do people
normally keep the
been meaning to move to using WAR files sooner or later, but
one question has always bugged me - how do you save your
deployment-specific configuration info?
If I understand correctly, WAR file is just a glorified JAR file,
which in turn is just a glorified tar file. So unless you're
Hi,
Can you turn off unpackWARs for your Host and run from a packed WAR?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Wick, Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 9:12 PM
To: '[EMAIL PROTECTED]'
Subject: problem redeploying war files
I'm not as familiar with deployments.
--Dan
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 8:05 AM
To: Tomcat Users List
Subject: RE: problem redeploying war files on tomcat 4.x
Hi,
Can you turn off unpackWARs for your Host and run from
On Wed, Oct 06, 2004 at 08:12:32AM -0500, Wick, Daniel wrote:
: Thanks Yoav. Well, inside the application, users upload things into the
: application directories. That's why I have to expand the war...and also
: don't want to delete every time we deploy.
It sounds like the uploaded files and
Millennium Research Informatics
-Original Message-
From: Wick, Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 9:13 AM
To: 'Tomcat Users List'
Subject: RE: problem redeploying war files on tomcat 4.x
Thanks Yoav. Well, inside the application, users upload things
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 8:23 AM
To: Tomcat Users List
Subject: RE: problem redeploying war files on tomcat 4.x
Hi,
If you tell the server to unpack your WAR, it does, but then it won't
remove the unpacked directory because you (or your web designers) may
have
Hi. I have an existing application deployed as a war file. When I update
the war file, stop and start tomcat again, the war file is not re-expanding
over the old deployment. I have set the permissions to 777 so it should not
be a permissions issue.
It works if I delete the existing directory
I would like to know if it is possible to have 2 War files for one
application.
The problem...
I have to upload changes to the server and the link is not that fast.
The current War file is 27mb in size, but the changeable parts are only
about 1mb at most
(the jar file inside is only 187kb
On Wed, Jun 02, 2004 at 01:54:30PM +0100, mpforste wrote:
: I would like to know if it is possible to have 2 War files for one
: application.
Sounds like something that would violate the servlet spec. A webapp is
supposed to be a (fairly) self-contained package.
: Is it possible to have 2
www.parsonstechnical.com
- Original Message -
From: mpforste [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 8:54 AM
Subject: 2 War files for one Application
I would like to know if it is possible to have 2 War files for one
application
I noticed that if you have unpackWARs set to false and you update a WAR
file, it doesn't reload it.
According to the Tomcat documentation at the following link, it only does it
for unpacked WAR files. Why?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application
to use).
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:20 PM
To: Tomcat User List
Subject: Why don't updated unpacked WAR files get reloaded
automatically?
I noticed that if you have
: Why don't updated unpacked WAR files get reloaded
automatically?
Hi,
Because you may have changed the contents of the unpacked directory, and
a redeployment of the WAR (which includes unpacking it) would overwrite
your changes. We'd rather be extra careful and require the user to
explicitly
-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 2:48 AM
Subject: Re: Re: Tomcat cannot unpack war files
Hi
Jep, no folder exists.
Lars,
Does the folder name matching the war file name exist? If it has been
created and not removed then Tomcat will not Deploy the war
Hi
Version Tomcat 4.1.18
OS: SUSE Linux kernel 4.2
Java: 1.4.2
unpackWars and autodeploy is set to true in server.xml
BUT: Tomcat will not auto deploy or unpack the war files.
Regards
Lars Christoffersen
-
To unsubscribe, e
]
Sent: Tuesday, May 04, 2004 1:35 AM
Subject: Tomcat cannot unpack war files
Hi
Version Tomcat 4.1.18
OS: SUSE Linux kernel 4.2
Java: 1.4.2
unpackWars and autodeploy is set to true in server.xml
BUT: Tomcat will not auto deploy or unpack the war files.
Regards
Lars Christoffersen
Hi,
I'm having a hard time with the security permissions for a webapp using
tomcat 4.1.30.
The application needs to write files to the java.io.tmp directory and it
works fine in the first scenario ( without a war file ) but in the
second scenario I keep getting:
Problem: tomcat doesn't unpack war files when run as daemon!
The error-message in logs/catalina.out is:
Feb 26, 2004 11:46:41 AM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web application archive myapp-0.1-dev.war
The message unfortunately comes without
Thanks for your reply!
The daemon process runs as 'nobody'. I changed the owner of the
war-files to 'nobody' too, but still Tomcat isn't able to
unpack the war-files. Changing the permissions of the war-files
to '777' didn't help either, so I don't think it's the permissions.
Shapira, Yoav
Howdy,
File permissions for the daemon process maybe?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Martin Morawetz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:12 AM
To: [EMAIL PROTECTED]
Subject: Unable to use war-files with tomcat 5.0.18 / Linux
T4127, SunOS, release 5.7
Short version: I want to be able to deploy my .war
file into webapps and have it be autodetected,
expanded, and used without having to restart Tomcat.
I need it to be expanded. I want to avoid restarting
Tomcat as this may (adversely) affect other running
apps. I
Autodeploy only works when you restart tomcat.
Have you looked at the Tomcat Manager app?
It allows you to deploy/un-deploy right from a browser.
You could also write an ANT script to do this.
On Wednesday 26 November 2003 04:42 pm, Rob Harrington wrote:
T4127, SunOS, release 5.7
Short
Hi all
i have my application running at www.demo.local
in Tomcat 4.1.24 Linux RH 9
the dir is /webapps/demo and the files are unpacked
Now i'd like to clear it and create a WAR file.
So i've done this
1. jar cf demo.war *
2. copied the file in /webapps
3. deleted the directory /webapps/demo
4.
Hi all
i have my application running at www.demo.local
in Tomcat 4.1.24 Linux RH 9
the dir is /webapps/demo and the files are unpacked
Now i'd like to clear it and create a WAR file.
So i've done this
1. jar cf demo.war *
2. copied the file in /webapps
3. deleted the directory /webapps/demo
4.
hello,
Just a quickie.
Is there any problem with serving from a compressed .war file? I have been having
problems which I cannot explain and have just realised that since using ANT I have
been inadvertently compressing my .war file. I cannot find anything to say that this
is a problem but
Hi all,
I need to a special treatment of symbolic links as mentioned within this
mailinglist before.
***
Context path=/myApp docBase=myApp debug=0
Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true /
/Context
***
This works fine
, 2003 12:48 PM
To: Tomcat Users List
Subject: Howto : how to set context specific attributes when using
'war'
files
Hi all,
I need to a special treatment of symbolic links as mentioned within
this
mailinglist before.
***
Context path=/myApp docBase=myApp debug=0
Resources
/
/Context
I do have the docBase pointing to my war file.
Eric Pugh
-Original Message-
From: Tang
To: Tomcat Users List; [EMAIL PROTECTED]
Sent: 7/24/03 9:31 PM
Subject: Re: War files don't work
Hi, all you need to do is place WAR file into webapps directory, Tomcat
will
unpack
Users List
Sent: 7/23/03 3:18 PM
Subject: Re: War files don't work
Check out the rules for Auto deployment:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment
John
Rick Roberts wrote:
This sounds reasonable to me.
But, if I don't have
in an unexpanded format.
correct?
Eric
-Original Message-
From: John Turner
To: Tomcat Users List
Sent: 7/23/03 3:18 PM
Subject: Re: War files don't work
Check out the rules for Auto deployment:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment
versus fortius doesn't seem to matter
at all.
I am building my war file using Maven.. could that be the problem?
Eric Pugh
-Original Message-
From: Rick Roberts
To: Tomcat Users List
Sent: 7/23/03 3:26 PM
Subject: Re: War files don't work
Making docBase = nsfs.war vice nsfs works
to reflect
your changes.
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: 23 July 2003 20:27
To: Tomcat Users List
Subject: Re: War files don't work
Making docBase = nsfs.war vice nsfs works!! :)
However; the war file is not being unpacked.
It seems that unpackWARs
.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:18 PM
Subject: RE: War files don't work
I'm joining this thread late, but I posted a couple weeks ago the same
problem.. I am running JDK1.4.2 and Tomcat 4.1.24. If I
My server.xml contains this:
Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true
!-- NSFS Context --
Context path=/nsfs docBase=nsfs debug=0 reloadable=true
crossContext=true
Logger className=org.apache.catalina.logger.FileLogger prefix=nsfs_log.
suffix=.txt
Howdy,
The error I get looks like this:
HTTP Status 404 - /nsfs
type Status report
message /nsfs
description The requested resource (/nsfs) is not available.
Apache Tomcat/4.1
What the root cause and full stack trace?
Yoav Shapira
This e-mail, including any attachments, is a
2003-07-23 10:04:43 WebappLoader[/nsfs]: Deploying class repositories to work
directory /var/tomcat4/work/Standalone/localhost/nsfs
2003-07-23 10:04:43 WebappLoader[/nsfs]: Reloading checks are enabled for this
Context
2003-07-23 10:04:43 ContextConfig[/nsfs]: Missing application web.xml, using
2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed:
java.lang.IllegalArgumentException: Document base
/var/tomcat4/webapps/nsfs does not exist or is not a
readable directory
Seems self-explanatory to me.
John
Rick Roberts wrote:
2003-07-23 10:04:43 WebappLoader[/nsfs]:
Does the war file contain a web.xml file that contains entries for the /nsfs
servlet? If not, that's likely your problem.
Rhino
- Original Message -
From: Rick Roberts [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:11 PM
Subject: War files
John Turner wrote:
2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed:
java.lang.IllegalArgumentException: Document base
/var/tomcat4/webapps/nsfs does not exist or is not a
readable directory
Seems self-explanatory to me.
John
Well explain it to me! :)
There is a
Howdy,
2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed:
java.lang.IllegalArgumentException: Document base
/var/tomcat4/webapps/nsfs does not exist or is not a
readable directory
Well explain it to me! :)
There is a /var/tomcat4/webapps/nsfs.war file.
There should not be
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:11 PM
Subject: War files don't work
My server.xml contains this:
Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true
!-- NSFS Context --
Context path=/nsfs docBase=nsfs debug=0 reloadable=true
My directory permissions are as follows:
drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps
ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4:
tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java
-Djava.endorsed.dirs= -classpath
You've told Tomcat the docBase is nsfs.
Tomcat thusly looks for a directory called nsfs in the Host's appBase.
If it finds it, and unpackWars is true, it will unpack your WAR file
into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w
on webapps/nsfs.
Does Tomcat have r+w on
Does the nsfs.war file go into webapps directory or into webapps/nsfs directory?
Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file
setting in the webapps directory. I am assuming that Tomcat will create the
webapps/nsfs directory for me when it expands the war
nsfs.war goes in webapps.
How about just creating the directory and seeing what happens?
In any case, if you're using WAR files, there's no reason to have a
Context defined in server.xml, that's probably what is confusing Tomcat.
Tomcat is reading server.xml, which tells it to start a Context
From the docs for Context:
The Document Base (also known as the Context Root) directory for this
web application, or the pathname to the web application archive file (if
this web application is being executed directly from the WAR file). You
may specify an absolute pathname for this directory
creating the directory and seeing what happens?
In any case, if you're using WAR files, there's no reason to have a
Context defined in server.xml, that's probably what is confusing Tomcat.
Tomcat is reading server.xml, which tells it to start a Context called
nsfs with a docBase of nsfs
Check out the rules for Auto deployment:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
John
Rick Roberts wrote:
This sounds reasonable to me.
But, if I don't have a Context/ element in server.xml then how do I
provide Context/ type
Making docBase = nsfs.war vice nsfs works!! :)
However; the war file is not being unpacked.
It seems that unpackWARs=true works the same as unpackWARs=false
Thanks,
Rick
John Turner wrote:
From the docs for Context:
The Document Base (also known as the Context Root) directory for this
web
Hi All,
For Each version, I have to update the WAR file with cab files. So I used loop, for
each version the loop will call the target where i am updating the WAR file. the
problem is , first time (first version) i am able to update the WAR file with the cab
files but for the other versions
I've got a question regarding the deployment of WAR-files in Tomcat:
What is the right way to proceed?
I tried putting my WAR-file into webapps (like I would do e.g. in
Weblogic), but Tomcat does not recognise it, only if I go to the
manager-app and use its install feature.
Are there any
Subject: Deployment of WAR-files
I've got a question regarding the deployment of WAR-files in Tomcat:
What is the right way to proceed?
I tried putting my WAR-file into webapps (like I would do e.g. in
Weblogic), but Tomcat does not recognise it, only if I go to the
manager-app and use its install
1 - 100 of 222 matches
Mail list logo