On Wed, 22 Feb 2006 11:52:32 +1100, jayipee wrote:
> I have installed the latest version of knoppix. it's a debian based
> distro. now I want to run tomcat on my server to run servlet.
>
> I have already installed tomcat4 but in the instructions given from this
> site: http://cymulacrum.net/writings/tomcat4/c260.html I don't know what
> it means under this line: 4.2.2. Adding a Context inside server.xml. I
> look for server.xml and I can see it under /etc/tomcat4/ and also in
> /var/lib/tomcat4/conf/server.xml which makes me confuse which one to
> edit or if this is the right file to edit.
You'll probably find that /var/lib/tomcat4/conf is a symlink to
/etc/tomcat4, so whichever you edit, it's the same file.
> When looking through the file
> I don't know also what to put there. The instruction to put to that file
> is this:
>
> <!-- MyFirst Context -->
>
> <Context path="/MyFirst" docBase="MyFirst" debug="0" reloadable="true"
> />
Add the above line inside the <Host> tags in the server.xml
You'll probably have an entry similar to:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
so just put your Context after that. There may already be an example one
in there, so you could add it before that one.
> And also the web.xml under this line 4.2.3. Creating a web.xml file for
> the web application.
This is a file you need to create. Just create the file and drop in the
content they provide. This file will go in
$CATALINA_HOME/webapps/MyFirst/WEB-INF/
--
Sean
Work expands to occupy the time available - Parkinson's 1st law