• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

embedded tomcat service server.xml context path

 
Victor Bucutea
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic