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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

deploying war and jar file ?

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
could some one tell me the steps of deploying simple jar and war file .. is it just copy the jar file into ../common/lib directory only or do we need do more that that?
also, the war file is it just upload it into webapps dir too?
thanks
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
That's pretty much it. Then you need to restart Tomcat. It won't dynamically load war or jar files that it doesn't know about when it first starts up. It only dynamically *reloads*. At least it didn't the last time I checked, perhaps 4.1.x addresses this.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I've just placed my war files under webapps dir and started the tomcat but it didn't unpacked the war file to create a new application. I've tried setting context, unpackedwar to true in server.xml. Any idea?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
closed.. please refer to https://coderanch.com/t/82175/Tomcat/webapps-war-file-not-deploying
for Fred's question.
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
    Bookmark Topic Watch Topic
  • New Topic