You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "zuhans@iname.com" <zu...@iname.com> on 2003/11/28 10:17:21 UTC
how to add a context to server.xml?
hello,
i installed a .war-file with manager. i noticed, that in server.xml
there was no entry for the corresponding context afterwards.
i wanted to do it with the tomcat-admin-page, i got the message, that my
alterations were saved. but then again: no context in server.xml.
must i do it by hand? (for a beginner not so fine!).
greetings
hans horwath, austria
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to add a context to server.xml?
Posted by Andoni <an...@indigo.ie>.
You don't need to do it at all. Tomcat will create a default context in
memory if it finds your war file in the right place.
If you do want to specify things about the context you will need to add a
section to server.xml. If you want to do this I recommend you first remove
all the comments and extra rubbish you are not using in server.xml and then
format the XML properly and then you will see that it is actually quite easy
to understand.
You may have to do some reading though!
Andoni.
If you are using Tomcat 4.1 then you need this:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html
If you are using Tomcat 5.0 you will need this:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html
A.
----- Original Message -----
From: <zu...@iname.com>
To: <to...@jakarta.apache.org>
Sent: Friday, November 28, 2003 9:17 AM
Subject: how to add a context to server.xml?
> hello,
>
> i installed a .war-file with manager. i noticed, that in server.xml
> there was no entry for the corresponding context afterwards.
>
> i wanted to do it with the tomcat-admin-page, i got the message, that my
> alterations were saved. but then again: no context in server.xml.
>
> must i do it by hand? (for a beginner not so fine!).
>
> greetings
> hans horwath, austria
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to add a context to server.xml?
Posted by "zuhans@iname.com" <zu...@iname.com>.
i started java-programming with netbeans 3.2. i never had the problem to
do something with web.xml but everything was running.
then i upgraded to 3.5 and nothing ran! so i had to learn something
about servlet-mappings in web.xml. but it's only a basic knowledge.
although everything now is running again!
so my only way to work a little bit with web.xml is servlet-mapping.
greetings
hans
Schalk schrieb:
>Hans
>
>Do you use your web.xml file at all to do any servlet mappings etc.?
>
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.CEO
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:schalk@volume4.co.za
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in error,
>please notify me immediately so that I can correct and delete the original
>email. Thank you.
>
>:: -----Original Message-----
>:: From: zuhans@iname.com [mailto:zuhans@iname.com]
>:: Sent: Friday, November 28, 2003 12:01 PM
>:: To: Tomcat Users List
>:: Subject: Re: how to add a context to server.xml?
>::
>:: hi,
>::
>:: thank you for your mail. i tried it out but found that it was no
>:: solution (as i hoped) to my other problem (i posted it already): the
>:: <jsp:include...> doesn't work. you asked me, if i used web.xml or
>:: "direct-call".
>::
>:: what can i do here else?
>:: greetings
>:: hans
>::
>:: Schalk schrieb:
>::
>:: >Hans
>:: >
>:: >I personally have not used the admin or manager to make these entries
>and
>:: >have been doing them by hand. The entry in the server.xml will be
>something
>:: >like:
>:: ><Context path="/meccafemme" docBase="meccafemme" debug="0"
>:: >reloadable="true" />
>:: >
>:: >Kind Regards
>:: >Schalk Neethling
>:: >Web Developer.Designer.Programmer.CEO
>:: >Volume4.Development.Multimedia.Branding
>:: >emotionalize.conceptualize.visualize.realize
>:: >Tel: +27125468436
>:: >Fax: +27125468436
>:: >email:schalk@volume4.co.za
>:: >web: www.volume4.co.za
>:: >
>:: >This message contains information that is considered to be sensitive or
>:: >confidential and may not be forwarded or disclosed to any other party
>:: >without the permission of the sender. If you received this message in
>error,
>:: >please notify me immediately so that I can correct and delete the
>original
>:: >email. Thank you.
>:: >
>:: >:: -----Original Message-----
>:: >:: From: zuhans@iname.com [mailto:zuhans@iname.com]
>:: >:: Sent: Friday, November 28, 2003 11:17 AM
>:: >:: To: tomcat-user@jakarta.apache.org
>:: >:: Subject: how to add a context to server.xml?
>:: >::
>:: >:: hello,
>:: >::
>:: >:: i installed a .war-file with manager. i noticed, that in server.xml
>:: >:: there was no entry for the corresponding context afterwards.
>:: >::
>:: >:: i wanted to do it with the tomcat-admin-page, i got the message, that
>my
>:: >:: alterations were saved. but then again: no context in server.xml.
>:: >::
>:: >:: must i do it by hand? (for a beginner not so fine!).
>:: >::
>:: >:: greetings
>:: >:: hans horwath, austria
>:: >::
>:: >::
>:: >::
>:: >:: ---------------------------------------------------------------------
>:: >:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>:: >:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>:: >
>:: >
>:: >
>:: >---------------------------------------------------------------------
>:: >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>:: >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>:: >
>:: >
>:: >
>:: >
>::
>::
>::
>:: ---------------------------------------------------------------------
>:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: how to add a context to server.xml?
Posted by Schalk <sc...@volume4.co.za>.
Hans
Do you use your web.xml file at all to do any servlet mappings etc.?
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.
:: -----Original Message-----
:: From: zuhans@iname.com [mailto:zuhans@iname.com]
:: Sent: Friday, November 28, 2003 12:01 PM
:: To: Tomcat Users List
:: Subject: Re: how to add a context to server.xml?
::
:: hi,
::
:: thank you for your mail. i tried it out but found that it was no
:: solution (as i hoped) to my other problem (i posted it already): the
:: <jsp:include...> doesn't work. you asked me, if i used web.xml or
:: "direct-call".
::
:: what can i do here else?
:: greetings
:: hans
::
:: Schalk schrieb:
::
:: >Hans
:: >
:: >I personally have not used the admin or manager to make these entries
and
:: >have been doing them by hand. The entry in the server.xml will be
something
:: >like:
:: ><Context path="/meccafemme" docBase="meccafemme" debug="0"
:: >reloadable="true" />
:: >
:: >Kind Regards
:: >Schalk Neethling
:: >Web Developer.Designer.Programmer.CEO
:: >Volume4.Development.Multimedia.Branding
:: >emotionalize.conceptualize.visualize.realize
:: >Tel: +27125468436
:: >Fax: +27125468436
:: >email:schalk@volume4.co.za
:: >web: www.volume4.co.za
:: >
:: >This message contains information that is considered to be sensitive or
:: >confidential and may not be forwarded or disclosed to any other party
:: >without the permission of the sender. If you received this message in
error,
:: >please notify me immediately so that I can correct and delete the
original
:: >email. Thank you.
:: >
:: >:: -----Original Message-----
:: >:: From: zuhans@iname.com [mailto:zuhans@iname.com]
:: >:: Sent: Friday, November 28, 2003 11:17 AM
:: >:: To: tomcat-user@jakarta.apache.org
:: >:: Subject: how to add a context to server.xml?
:: >::
:: >:: hello,
:: >::
:: >:: i installed a .war-file with manager. i noticed, that in server.xml
:: >:: there was no entry for the corresponding context afterwards.
:: >::
:: >:: i wanted to do it with the tomcat-admin-page, i got the message, that
my
:: >:: alterations were saved. but then again: no context in server.xml.
:: >::
:: >:: must i do it by hand? (for a beginner not so fine!).
:: >::
:: >:: greetings
:: >:: hans horwath, austria
:: >::
:: >::
:: >::
:: >:: ---------------------------------------------------------------------
:: >:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: >:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: >
:: >
:: >
:: >---------------------------------------------------------------------
:: >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: >
:: >
:: >
:: >
::
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to add a context to server.xml?
Posted by "zuhans@iname.com" <zu...@iname.com>.
hi,
thank you for your mail. i tried it out but found that it was no
solution (as i hoped) to my other problem (i posted it already): the
<jsp:include...> doesn't work. you asked me, if i used web.xml or
"direct-call".
what can i do here else?
greetings
hans
Schalk schrieb:
>Hans
>
>I personally have not used the admin or manager to make these entries and
>have been doing them by hand. The entry in the server.xml will be something
>like:
><Context path="/meccafemme" docBase="meccafemme" debug="0"
>reloadable="true" />
>
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.CEO
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:schalk@volume4.co.za
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in error,
>please notify me immediately so that I can correct and delete the original
>email. Thank you.
>
>:: -----Original Message-----
>:: From: zuhans@iname.com [mailto:zuhans@iname.com]
>:: Sent: Friday, November 28, 2003 11:17 AM
>:: To: tomcat-user@jakarta.apache.org
>:: Subject: how to add a context to server.xml?
>::
>:: hello,
>::
>:: i installed a .war-file with manager. i noticed, that in server.xml
>:: there was no entry for the corresponding context afterwards.
>::
>:: i wanted to do it with the tomcat-admin-page, i got the message, that my
>:: alterations were saved. but then again: no context in server.xml.
>::
>:: must i do it by hand? (for a beginner not so fine!).
>::
>:: greetings
>:: hans horwath, austria
>::
>::
>::
>:: ---------------------------------------------------------------------
>:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: how to add a context to server.xml?
Posted by Schalk <sc...@volume4.co.za>.
Hans
I personally have not used the admin or manager to make these entries and
have been doing them by hand. The entry in the server.xml will be something
like:
<Context path="/meccafemme" docBase="meccafemme" debug="0"
reloadable="true" />
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.
:: -----Original Message-----
:: From: zuhans@iname.com [mailto:zuhans@iname.com]
:: Sent: Friday, November 28, 2003 11:17 AM
:: To: tomcat-user@jakarta.apache.org
:: Subject: how to add a context to server.xml?
::
:: hello,
::
:: i installed a .war-file with manager. i noticed, that in server.xml
:: there was no entry for the corresponding context afterwards.
::
:: i wanted to do it with the tomcat-admin-page, i got the message, that my
:: alterations were saved. but then again: no context in server.xml.
::
:: must i do it by hand? (for a beginner not so fine!).
::
:: greetings
:: hans horwath, austria
::
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org