This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Getting Tomcat 4.1.18 to recoginze my context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting Tomcat 4.1.18 to recoginze my context" Watch "Getting Tomcat 4.1.18 to recoginze my context" New topic

Getting Tomcat 4.1.18 to recoginze my context

Natalie Rassmann

Joined: Feb 18, 2003
Posts: 3
Can anyone help???
I am trying to depoly a web application from a war file using Tomcat 4.1.18. I am running Tomcat as a service and am able to install the application fine. However, since it is installed and NOT deployed, when the service comes down and is brought up the application is not installed properly. When I install the application, I specify a context path via the Config File URL in the manager app. When I try to deploy rather than install, I am not able to specify my context file. How do you specify a context file (foo.xml for example which will contain the context for my application foo) when deploying my application? I am using ANT to deploy and install my application.
Any help would be MUCH appreciated.... :
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I had an experience were Tomcat would not deploy (that is, unpack) a WAR file if there was a Context defined in server.xml

This might be your problem.

Here is one thread that contains links to two other posts that detail this problem...
Natalie Rassmann

Joined: Feb 18, 2003
Posts: 3
Thanks Mike for your response, but it isn't exactly my problem. I don't want to put the context in the server.xml file. I have a separate context file (emdf.xml). This file contains the context for my application. I noticed that when I use deploy, the server.xml file is built on the fly; which I believe is part of my problem. When I use install, I can point Tomcat via the config URL to my context file (emdf.xml). However, with the deploy, I can't do that. My question is how do I get Tomcat to use my context file when I deploy if I can't explicity use it in the call to deploy....
I agree. Here's the link:
subject: Getting Tomcat 4.1.18 to recoginze my context
It's not a secret anymore!