• Post Reply Bookmark Topic Watch Topic
  • New Topic

two aplications in one url  RSS feed

 
mat mad
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

 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!