Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Context and WAR file

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am new to tomcat. actually what is context entry?
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic