Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Tomcat 4.1.18 to recoginze my context

 
Natalie Rassmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic