aspose file tools
The moose likes JBoss and the fly likes embedded tomcat service server.xml context path Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: embedded tomcat service server.xml context path
 
Similar Threads
tomcat 6 - how to define context root name diff than WAR file name
how to configure the a web application directory as the root directory
What is Tomcat virtual host, What is different from the Apache Tomcat?
how to remove the port number in URL
virtual hosts in stand alone tomcat