aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript 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