• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

two aplications in one url

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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

 
Bartender
Posts: 20832
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!