wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes embedded tomcat service server.xml context path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "embedded tomcat service server.xml context path" Watch "embedded tomcat service server.xml context path" New topic
Author

embedded tomcat service server.xml context path

Victor Bucutea
Ranch Hand

Joined: Nov 24, 2008
Posts: 43
Hi ,


regarding the tomcat service of JBoss I have some questions.

The server.xml of the tomcat service is this :




This would create a service for port 8090. The thing is that this service responds to every request on port 8090 not only (/userManagement), and when passing the url http://localhost:8090/userManagement , as the Context path attribute states, it simply shows me a directory listing of the runtime folder. The path attribute should point to the root of the web application, but being on JBoss, the root of the web application is deployed inside an ear file, so it would be a mess if I were to hard code the name of the ear file.

First question is, how do I specify the docBase without specifying in the path attribute the name of the ear file which contains the ear?

Second questions is a bit more complicated. I need to make ONLY context path '/A' respond on port 8090 and all other context paths should be normally accessible on port 8080 ?

Thanks,
Victor
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: embedded tomcat service server.xml context path
 
Similar Threads
virtual hosts in stand alone tomcat
What is Tomcat virtual host, What is different from the Apache Tomcat?
how to configure the a web application directory as the root directory
tomcat 6 - how to define context root name diff than WAR file name
how to remove the port number in URL