Re: Default context for web app

2003-12-17 Thread Adam Hardy
On 12/17/2003 12:39 AMnbsp;Kent Boogaart wrote:
Didn't work. So I can't do what you're doing. Strange. Are you dead certain
you don't have an /eSM/ context?
Adam



Hi Adam,

It's a bit hard to tell for certain since I have disabled the manager app.
However, I can tell you that there is only one directory below
work/Standalone/localhost and it is called _. Tomcat used to create two
directories here when it started two contexts - _ and eSM.
Also, when I start Tomcat on the command line I can see that my webapp is
only started once. I have a ServletContextListener implementation that
outputs version details etc. I used to see this information output twice but
now I only see it once.
I think it's a bug with the way tomcat deploys xml context files. You've 
got the context config happily in the server.xml, where this works (for 
you) but I'm using the context.xml files with deployXML=true and tomcat 
can't deal with it properly (unless I put it in ROOT).

Guess I'll log it as a bug.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Default context for web app

2003-12-16 Thread Adam Hardy
On 12/16/2003 12:00 AMnbsp;Kent Boogaart wrote:
When I do that, I get a context at / and a context at eSM. In
$TOMCAT_HOME/work/Standalone/localhost/ tomcat makes both _ and eSM.
I use exactly the same context config as you, except some I don't declare
since the defaults are the same. The only one I don't recognise is
'displayName' - can't see it in the docs. What is it?
As I originally said, putting it in ROOT is the only way I have found to
avoid this. But I guess it's not important.
Adam



Adam,

Do you have autoDeploy and deployXml set to false in your Host element? If
so then I'm not sure why you are getting two contexts . . .
Kent
I have autoDeploy set to false, but I am using context configuration 
files so I need deployXML set to true. The docs say:

Set to false if you want to disable deploying applications using a 
Context XML config file. This also disables the ability to install web 
application directories or .war files with the manager app which are 
not located in the Host config base directory 
($CATALINA_HOME/conf/[engine_name]/[host_name]).

I'll experiment: if I put all my context info in the server.xml, then 
maybe it will work.

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Default context for web app

2003-12-16 Thread Adam Hardy
On 12/16/2003 10:15 AMnbsp;Adam Hardy wrote:
I'll experiment: if I put all my context info in the server.xml, then 
maybe it will work.
Didn't work. So I can't do what you're doing. Strange. Are you dead 
certain you don't have an /eSM/ context?

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Default context for web app

2003-12-16 Thread Kent Boogaart
Didn't work. So I can't do what you're doing. Strange. Are you dead certain
you don't have an /eSM/ context?

Adam



Hi Adam,

It's a bit hard to tell for certain since I have disabled the manager app.
However, I can tell you that there is only one directory below
work/Standalone/localhost and it is called _. Tomcat used to create two
directories here when it started two contexts - _ and eSM.

Also, when I start Tomcat on the command line I can see that my webapp is
only started once. I have a ServletContextListener implementation that
outputs version details etc. I used to see this information output twice but
now I only see it once.

Regards,
Kent

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



Re: Default context for web app

2003-12-15 Thread Kent Boogaart
When I do that, I get a context at / and a context at eSM. In
$TOMCAT_HOME/work/Standalone/localhost/ tomcat makes both _ and eSM.

I use exactly the same context config as you, except some I don't declare
since the defaults are the same. The only one I don't recognise is
'displayName' - can't see it in the docs. What is it?

As I originally said, putting it in ROOT is the only way I have found to
avoid this. But I guess it's not important.

Adam



Adam,

Do you have autoDeploy and deployXml set to false in your Host element? If
so then I'm not sure why you are getting two contexts . . .

Kent


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



Re: Default context for web app

2003-12-12 Thread Adam Hardy
On 12/12/2003 12:15 AM Kent Boogaart wrote:
I am currently running against version 4.1.27 of Tomcat. I did not
alter the name of my deploy directory. Here is my Context element
(with env entries removed):
Context className=org.apache.catalina.core.StandardContext 
   cachingAllowed=true
   charsetMapperClass=org.apache.catalina.util.CharsetMapper 
   cookies=true crossContext=false debug=0 displayName=eSM 
   docBase=D:/tomcat41/bin/../webapps/eSM
   mapperClass=org.apache.catalina.core.StandardContextMapper 
path=
   privileged=false reloadable=false swallowOutput=false 
   useNaming=true
   wrapperClass=org.apache.catalina.core.StandardWrapper ... 
/Context

My WAR file is called eSM.war and, as you can see, my deploy
directory is $TOMCAT_HOME/webapps/eSM. Note, however, that Tomcat
uses $TOMCAT_HOME/work/Standalone/localhost/_ as the working
directory for the web app since the path is .
When I do that, I get a context at / and a context at eSM. In 
$TOMCAT_HOME/work/Standalone/localhost/ tomcat makes both _ and eSM.

I use exactly the same context config as you, except some I don't 
declare since the defaults are the same. The only one I don't recognise 
is 'displayName' - can't see it in the docs. What is it?

As I originally said, putting it in ROOT is the only way I have found to 
avoid this. But I guess it's not important.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Default context for web app

2003-12-11 Thread Shapira, Yoav

Howdy,
Glad to hear the advice on autoDeploy worked -- thanks for posting the
followup.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kent Boogaart [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 6:52 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Default context for web app

Wow - thanks for all the help people. Just thought I'd update you on
how I
resolved this.

Firstly, I removed all Context elements from conf/server.xml except
my
own. Then I set autoDeploy to false on the Host element.

This almost got everything working as required. However, the admin and
manager web apps were still deployed which was unacceptable because
they
would be available via a live IP. This was because the deployXML
attribute
was set to true. I set this to false and then only my context was
deployed.

Thanks again!

Kent

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Default context for web app

2003-12-11 Thread Adam Hardy
On 12/11/2003 12:51 AM Kent Boogaart wrote:
Wow - thanks for all the help people. Just thought I'd update you on how I
resolved this.
Firstly, I removed all Context elements from conf/server.xml except my
own. Then I set autoDeploy to false on the Host element.
This almost got everything working as required. However, the admin and
manager web apps were still deployed which was unacceptable because they
would be available via a live IP. This was because the deployXML attribute
was set to true. I set this to false and then only my context was
deployed.
Hi Kent,
just so I can compare notes, what did you name your deploy directory? 
ROOT or something else?

And what version are you running again?

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Default context for web app

2003-12-11 Thread Kent Boogaart
Hi Adam,

I am currently running against version 4.1.27 of Tomcat. I did not alter the
name of my deploy directory. Here is my Context element (with env entries
removed):

Context
className=org.apache.catalina.core.StandardContext
cachingAllowed=true
 
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=false
debug=0
displayName=eSM
docBase=D:/tomcat41/bin/../webapps/eSM
 
mapperClass=org.apache.catalina.core.StandardContextMapper
path=
privileged=false
reloadable=false
swallowOutput=false
useNaming=true
 
wrapperClass=org.apache.catalina.core.StandardWrapper
...
/Context

My WAR file is called eSM.war and, as you can see, my deploy directory is
$TOMCAT_HOME/webapps/eSM. Note, however, that Tomcat uses
$TOMCAT_HOME/work/Standalone/localhost/_ as the working directory for the
web app since the path is .

Regards,
Kent

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



Re: Default context for web app

2003-12-10 Thread Adam Hardy
On 12/10/2003 08:53 AM Kent Boogaart wrote:
Hi all,

I am trying make my web application available via the default context. In
other words, when I type http://localhost:8080/ in a browser on the local
machine I want my web app to appear rather than the Tomcat default web app.
I figured I'd just need to alter my context's path to  (empty string) and
alter the existing root context to use /root for it's path rather than .
Whilst this kind of works (my web app is available via
http://localhost:8080/) it has an unfortunate side effect. My web app is
started up twice - once in the  context and again in another context based
on my web app's name (/eSM).
How can I use the default context and only the default context for my web
app?
You need to name your deploy directory 'ROOT' in CATALINA_HOME/webapps.

Rename or delete the current ROOT.  Make sure there is no context xml 
config in conf/server.xml or conf/Catalina/localhost/*.xml with docbase 
ROOT apart from the one with path=''.

Note I'm talking about 5.0.12 but I think it's pretty much the same for 4.x

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Default context for web app

2003-12-10 Thread Shapira, Yoav

Howdy,
You don't have to name it ROOT.  Just make sure it's the only context
with path  (the empty string).  It can be called whatever you want,
i.e. the docBase can be whatever you want.  ROOT is simply the default
tomcat name for the empty-string-path context.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 6:48 AM
To: Tomcat Users List
Subject: Re: Default context for web app

On 12/10/2003 08:53 AM Kent Boogaart wrote:
 Hi all,

 I am trying make my web application available via the default
context. In
 other words, when I type http://localhost:8080/ in a browser on the
local
 machine I want my web app to appear rather than the Tomcat default
web
app.

 I figured I'd just need to alter my context's path to  (empty
string)
and
 alter the existing root context to use /root for it's path rather
than
.
 Whilst this kind of works (my web app is available via
 http://localhost:8080/) it has an unfortunate side effect. My web app
is
 started up twice - once in the  context and again in another
context
based
 on my web app's name (/eSM).

 How can I use the default context and only the default context for my
web
 app?

You need to name your deploy directory 'ROOT' in CATALINA_HOME/webapps.

Rename or delete the current ROOT.  Make sure there is no context xml
config in conf/server.xml or conf/Catalina/localhost/*.xml with docbase
ROOT apart from the one with path=''.

Note I'm talking about 5.0.12 but I think it's pretty much the same for
4.x

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Default context for web app

2003-12-10 Thread Ben Souther
If you've manually deployed your app and it's the only one running in that 
server, you could turn off autoDeploy from the host node in your server.xml 
file. 

Then Tomcat would only deploy the apps that you've specifically set up context 
elements for.

-Ben

  Host name=localhost 
   debug=0 
   appBase=webapps
   unpackWARs=true 
   autoDeploy=true  
   xmlValidation=false 
   xmlNamespaceAware=false





On Wednesday 10 December 2003 06:47 am, Adam Hardy wrote:
 On 12/10/2003 08:53 AM Kent Boogaart wrote:
  Hi all,
 
  I am trying make my web application available via the default context. In
  other words, when I type http://localhost:8080/ in a browser on the local
  machine I want my web app to appear rather than the Tomcat default web
  app.
 
  I figured I'd just need to alter my context's path to  (empty string)
  and alter the existing root context to use /root for it's path rather
  than . Whilst this kind of works (my web app is available via
  http://localhost:8080/) it has an unfortunate side effect. My web app is
  started up twice - once in the  context and again in another context
  based on my web app's name (/eSM).
 
  How can I use the default context and only the default context for my web
  app?

 You need to name your deploy directory 'ROOT' in CATALINA_HOME/webapps.

 Rename or delete the current ROOT.  Make sure there is no context xml
 config in conf/server.xml or conf/Catalina/localhost/*.xml with docbase
 ROOT apart from the one with path=''.

 Note I'm talking about 5.0.12 but I think it's pretty much the same for 4.x

 Adam

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: Default context for web app

2003-12-10 Thread Adam Hardy
Yoav,
from my brief experiment, if you don't place it in ROOT, then like the
Kent said it gets deployed twice.
e.g. I put my app in APPBASE/gargantus/ and set the context xml:

path=''
docBase='gargantus'
then I can access my app via http://localhost/ and 
http://localhost/gargantus/

I'm not sure about 5.x but in 4.x I remember it definitely deployed it 
twice, as evidenced by the logging.

The way to avoid this is to deploy it in ROOT/

It doesn't affect me too much to worry about it but if I decided I 
wanted to have a different app at /gargantus/ then I suspect tomcat 
would cause problems.

Adam

On 12/10/2003 02:43 PM Shapira, Yoav wrote:
Howdy, You don't have to name it ROOT.  Just make sure it's the only
context with path  (the empty string).  It can be called whatever
you want, i.e. the docBase can be whatever you want.  ROOT is simply
the default tomcat name for the empty-string-path context.
Yoav Shapira Millennium ChemInformatics



-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED] Sent: Wednesday, December
10, 2003 6:48 AM To: Tomcat Users List Subject: Re: Default context
for web app
On 12/10/2003 08:53 AM Kent Boogaart wrote:

Hi all,

I am trying make my web application available via the default
context. In

other words, when I type http://localhost:8080/ in a browser on
the
local

machine I want my web app to appear rather than the Tomcat
default
web

app.

I figured I'd just need to alter my context's path to  (empty
string)

and

alter the existing root context to use /root for it's path
rather
than

.

Whilst this kind of works (my web app is available via 
http://localhost:8080/) it has an unfortunate side effect. My web
app
is

started up twice - once in the  context and again in another
context

based

on my web app's name (/eSM).

How can I use the default context and only the default context
for my
web

app?
You need to name your deploy directory 'ROOT' in
CATALINA_HOME/webapps.
Rename or delete the current ROOT.  Make sure there is no context
xml config in conf/server.xml or conf/Catalina/localhost/*.xml with
docbase ROOT apart from the one with path=''.
Note I'm talking about 5.0.12 but I think it's pretty much the same
for
4.x


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Default context for web app

2003-12-10 Thread Shapira, Yoav

Howdy,
It's deployed twice if you also have autoDeploy enabled.  ROOT has
NOTHNING special.  Maybe for the next release we should change the name
ROOT to something else just so people stop thinking there's something
special about it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:07 AM
To: Tomcat Users List
Subject: Re: Default context for web app

Yoav,
from my brief experiment, if you don't place it in ROOT, then like the
Kent said it gets deployed twice.

e.g. I put my app in APPBASE/gargantus/ and set the context xml:

path=''
docBase='gargantus'

then I can access my app via http://localhost/ and
http://localhost/gargantus/

I'm not sure about 5.x but in 4.x I remember it definitely deployed it
twice, as evidenced by the logging.

The way to avoid this is to deploy it in ROOT/

It doesn't affect me too much to worry about it but if I decided I
wanted to have a different app at /gargantus/ then I suspect tomcat
would cause problems.


Adam

On 12/10/2003 02:43 PM Shapira, Yoav wrote:
 Howdy, You don't have to name it ROOT.  Just make sure it's the only
 context with path  (the empty string).  It can be called whatever
 you want, i.e. the docBase can be whatever you want.  ROOT is simply
 the default tomcat name for the empty-string-path context.

 Yoav Shapira Millennium ChemInformatics



 -Original Message- From: Adam Hardy
 [mailto:[EMAIL PROTECTED] Sent: Wednesday, December
 10, 2003 6:48 AM To: Tomcat Users List Subject: Re: Default context
 for web app

 On 12/10/2003 08:53 AM Kent Boogaart wrote:

 Hi all,

 I am trying make my web application available via the default

 context. In

 other words, when I type http://localhost:8080/ in a browser on
 the

 local

 machine I want my web app to appear rather than the Tomcat
 default

 web

 app.

 I figured I'd just need to alter my context's path to  (empty

 string)

 and

 alter the existing root context to use /root for it's path
 rather

 than

 .

 Whilst this kind of works (my web app is available via
 http://localhost:8080/) it has an unfortunate side effect. My web
 app

 is

 started up twice - once in the  context and again in another

 context

 based

 on my web app's name (/eSM).

 How can I use the default context and only the default context
 for my

 web

 app?

 You need to name your deploy directory 'ROOT' in
 CATALINA_HOME/webapps.

 Rename or delete the current ROOT.  Make sure there is no context
 xml config in conf/server.xml or conf/Catalina/localhost/*.xml with
 docbase ROOT apart from the one with path=''.

 Note I'm talking about 5.0.12 but I think it's pretty much the same
 for

 4.x


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



[OT] Re: Default context for web app

2003-12-10 Thread Graham Reeds

Howdy,
It's deployed twice if you also have autoDeploy enabled.  ROOT has
NOTHNING special.  Maybe for the next release we should change the name
ROOT to something else just so people stop thinking there's something
special about it ;)


SHRUB?

Blame Monty Python.

G.


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



Re: Default context for web app

2003-12-10 Thread Adam Hardy
At risk of getting you totally exasperated :0 , I beg to differ. If I 
have no context entries in server.xml or in 
CATALINA_HOME/conf/Catalina/localhost then whatever is in ROOT becomes 
the root context.

On 12/10/2003 03:09 PM Shapira, Yoav wrote:
Howdy,
It's deployed twice if you also have autoDeploy enabled.  ROOT has
NOTHNING special.  Maybe for the next release we should change the name
ROOT to something else just so people stop thinking there's something
special about it ;)
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:07 AM
To: Tomcat Users List
Subject: Re: Default context for web app
Yoav,

from my brief experiment, if you don't place it in ROOT, then like the

Kent said it gets deployed twice.

e.g. I put my app in APPBASE/gargantus/ and set the context xml:

path=''
docBase='gargantus'
then I can access my app via http://localhost/ and
http://localhost/gargantus/
I'm not sure about 5.x but in 4.x I remember it definitely deployed it
twice, as evidenced by the logging.
The way to avoid this is to deploy it in ROOT/

It doesn't affect me too much to worry about it but if I decided I
wanted to have a different app at /gargantus/ then I suspect tomcat
would cause problems.
Adam

On 12/10/2003 02:43 PM Shapira, Yoav wrote:

Howdy, You don't have to name it ROOT.  Just make sure it's the only
context with path  (the empty string).  It can be called whatever
you want, i.e. the docBase can be whatever you want.  ROOT is simply
the default tomcat name for the empty-string-path context.
Yoav Shapira Millennium ChemInformatics




-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED] Sent: Wednesday, December
10, 2003 6:48 AM To: Tomcat Users List Subject: Re: Default context
for web app
On 12/10/2003 08:53 AM Kent Boogaart wrote:


Hi all,

I am trying make my web application available via the default
context. In


other words, when I type http://localhost:8080/ in a browser on
the
local


machine I want my web app to appear rather than the Tomcat
default
web


app.


I figured I'd just need to alter my context's path to  (empty
string)


and


alter the existing root context to use /root for it's path
rather
than


.


Whilst this kind of works (my web app is available via
http://localhost:8080/) it has an unfortunate side effect. My web
app
is


started up twice - once in the  context and again in another
context


based


on my web app's name (/eSM).

How can I use the default context and only the default context
for my
web


app?
You need to name your deploy directory 'ROOT' in
CATALINA_HOME/webapps.
Rename or delete the current ROOT.  Make sure there is no context
xml config in conf/server.xml or conf/Catalina/localhost/*.xml with
docbase ROOT apart from the one with path=''.
Note I'm talking about 5.0.12 but I think it's pretty much the same
for
4.x


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Default context for web app

2003-12-10 Thread Shapira, Yoav

Howdy,
Don't worry about getting me exasperated -- the first how do I increase
heap memory or I can't log into the manager webapp or can I share
sessions between webapps question of the week, usually promptly
delivered by 9am Monday morning, already takes care of my overly
idealistic hopes for this mailing list ;)

Threads like yours (not just this one, but I remember at least one other
one in the past) are more intelligent and show the other person is
actually doing/learning/experimenting before just asking questions.  So
these are the good ones ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: Default context for web app

At risk of getting you totally exasperated :0 , I beg to differ. If I
have no context entries in server.xml or in
CATALINA_HOME/conf/Catalina/localhost then whatever is in ROOT becomes
the root context.

On 12/10/2003 03:09 PM Shapira, Yoav wrote:
 Howdy,
 It's deployed twice if you also have autoDeploy enabled.  ROOT has
 NOTHNING special.  Maybe for the next release we should change the
name
 ROOT to something else just so people stop thinking there's something
 special about it ;)

 Yoav Shapira
 Millennium ChemInformatics



-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:07 AM
To: Tomcat Users List
Subject: Re: Default context for web app

Yoav,

from my brief experiment, if you don't place it in ROOT, then like
the

Kent said it gets deployed twice.

e.g. I put my app in APPBASE/gargantus/ and set the context xml:

path=''
docBase='gargantus'

then I can access my app via http://localhost/ and
http://localhost/gargantus/

I'm not sure about 5.x but in 4.x I remember it definitely deployed
it
twice, as evidenced by the logging.

The way to avoid this is to deploy it in ROOT/

It doesn't affect me too much to worry about it but if I decided I
wanted to have a different app at /gargantus/ then I suspect tomcat
would cause problems.


Adam

On 12/10/2003 02:43 PM Shapira, Yoav wrote:

Howdy, You don't have to name it ROOT.  Just make sure it's the only
context with path  (the empty string).  It can be called whatever
you want, i.e. the docBase can be whatever you want.  ROOT is simply
the default tomcat name for the empty-string-path context.

Yoav Shapira Millennium ChemInformatics




-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED] Sent: Wednesday, December
10, 2003 6:48 AM To: Tomcat Users List Subject: Re: Default context
for web app

On 12/10/2003 08:53 AM Kent Boogaart wrote:


Hi all,

I am trying make my web application available via the default

context. In


other words, when I type http://localhost:8080/ in a browser on
the

local


machine I want my web app to appear rather than the Tomcat
default

web


app.


I figured I'd just need to alter my context's path to  (empty

string)


and


alter the existing root context to use /root for it's path
rather

than


.


Whilst this kind of works (my web app is available via
http://localhost:8080/) it has an unfortunate side effect. My web
app

is


started up twice - once in the  context and again in another

context


based


on my web app's name (/eSM).

How can I use the default context and only the default context
for my

web


app?

You need to name your deploy directory 'ROOT' in
CATALINA_HOME/webapps.

Rename or delete the current ROOT.  Make sure there is no context
xml config in conf/server.xml or conf/Catalina/localhost/*.xml with
docbase ROOT apart from the one with path=''.

Note I'm talking about 5.0.12 but I think it's pretty much the same
for

4.x


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

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





 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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




--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e

Re: Default context for web app

2003-12-10 Thread Kent Boogaart
Wow - thanks for all the help people. Just thought I'd update you on how I
resolved this.

Firstly, I removed all Context elements from conf/server.xml except my
own. Then I set autoDeploy to false on the Host element.

This almost got everything working as required. However, the admin and
manager web apps were still deployed which was unacceptable because they
would be available via a live IP. This was because the deployXML attribute
was set to true. I set this to false and then only my context was
deployed.

Thanks again!

Kent

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