1 Reply Latest reply on Jul 17, 2010 10:17 AM by jaikiran

    Problem Context root -> JBoss

    generic1

      Hi,

       

      I am working with the JBoss- Server and Eclipse. I have developed a "Dynamic We Project" in Eclipse and run it on the JBoss- Server -> All worked fine. Then I changed the Context root for the "Dynamic Web Project" (with the Mouse onto the Project -> context menu -> Properties -> Context root) and run the application again, but it is still only reachable wih the old URL. How can I make it to work with the new URL?

       

      I added a simple project with a Context root of "bb" but the application is only reachable with "http://localhost:8080/AATest" and not with "http://localhost:8080/bb" -> what can I do to force "bb".

       

      Thanks a lot for help,

      All the best,

      Generics

        • 1. Re: Problem Context root -> JBoss
          jaikiran

          I don't know how you do it with the IDE. But without the IDE in picture, you can include a jboss-web.xml (assuming you are deploying a .war file) in the .war/WEB-INF/ folder with the following content:

           

          <jboss-web>
             <context-root>bb</context-root>
          
          </jboss-web>