• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context and WAR file

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • 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
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really a pain in the butt. Anyone have any ideas?
 
ramdas pradeep kumar
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?
 
Frank Carver
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
Chrome IntelliJ IDE Mac OS X
  • 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
Chrome IntelliJ IDE Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic