• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

two aplications in one url

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want deploy one apolication on java.edu.pl/
and second with jforum on java.edu.pl/forum/
but I have from first application 404 and not enter to second application with jforum

 
Saloon Keeper
Posts: 24493
167
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
I don't think you can have 2 Hosts with the same name in Tomcat. Also, the appBase for a host is the directory where exploded WARs go in and you are trying to use it as the base of the WAR itself.

Tomcat applications are defined not with the Host configuration element (which most people never change), but rather with Context configuration elements. Although you can add a Context to Tomcat's server.xml file, that's very bad practice - the preferred locations are to use either TOMCAT_HOME/conf/Catalina/localhost with a file whose name is the same as the URL context (for example, forum.xml), or in the WAR's META-INF/context.xml file.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic