How to change context root of a dynamic web project in Eclipse?

后端 未结 13 2526
一整个雨季
一整个雨季 2020-11-22 12:59

I developed a dynamic web project in Eclipse. I can access the app through my browser using the following URL:

http://localhost:8080/MyDynamicWebApp
         


        
13条回答
  •  难免孤独
    2020-11-22 13:31

    I tried out solution suggested by Russ Bateman Here in the post

    http://localhost:8080/Myapp to http://localhost:8080/somepath/Myapp

    But Didnt worked for me as I needed to have a *.war file that can hold the config and not the individual instance of server on my localmachine.

    Reference

    In order to do that I need jboss-web.xml placed in WEB-INF

    
     
    
    
      
      somepath/Myapp
      
    

提交回复
热议问题