• 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

Path issues with my webapp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to deploy my java web app to a testing server for the first time. In development, my app lived at the web root, but now it has to live in a subdirectory. What do I do to make the application take into account it's new location? I looked at the docBase parameter in context.xml, but I don't know enough about configuring tomcat to use it.

Details:
- The application is actually being deployed to the root of tomcat, but tomcat is itself hosted as a subdirectory under an iis server.
- It's an appfuse application - spring mvc, hibernate, etc.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The docBase attribute on a context.xml defines the WAR that will be deployed. It can be the name of a WAR file or an exploded WAR (directory).

If you provide a relative WAR location, docBase locates that file/directory relative to the CATALINA_BASE directory. I recommend supplying an absolute path, however.
 
Max Johnson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So given the server setup above, what do I need to configure to get it working?
reply
    Bookmark Topic Watch Topic
  • New Topic