• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Context and WAR file

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a context entry for my web app. And when i deploy my WAR file, Tomcat won't extract the WAR file. But if I remove the context entry for the web app, Tomcat will extract the WAR file.
Any ideas why? I would really like this to work.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really a pain in the butt. Anyone have any ideas?
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to tomcat. actually what is context entry?
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. I agree that a bit more information is required.
Are you saying that if you have some information about a web application in some Tomcat-specific file, Tomcat won't expand and load a war file? If so, my feeling would be that this is probably the intended behaviour - you have achoice of either manually telling Tomcat about your application, or letting the war deployment proces do it for you.
What "context" information are you trying to tell Tomcat? Can that information be put in the war file? Can you give us a snippet of the appropriate config file?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, the reason I have specified a context for my web app is for ConnectionPooling. Here is my context entry

Now originally, I had this in my server.xml file, but I didn't want users to have to touch that file, so I put this in a seperate file called holocron.xml and put it in %TOMCATHOME%/webapps/. It works just fine, except for the whole unpackaging of the WAR file.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, seeing as how this must be default tomcat behavior, I have reworked my ant build.xml file to deploy the directory structure instead of a WAR file. This at least lets me easily test as I go. I can worry about the other problem later.
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!