Questions tagged [contextroot]
61 questions
                    
                    210
                    
            votes
                
                14 answers
            
        How to change context root of a dynamic web project in Eclipse?
I developed a dynamic web project in Eclipse. 
I can access the app through my browser using the following URL: 
http://localhost:8080/MyDynamicWebApp
I want to change the access URL to:
http://localhost:8080/app
To do so, I changed the context…
         
    
    
        Amit
        
- 33,847
- 91
- 226
- 299
                    11
                    
            votes
                
                1 answer
            
        Define contextroot inside WAR file
I have an automated deployment script to deploy multiple WAR files in WAS 7.
So, I would like to define contextroot inside the WAR file itself. It should automatically set to " ... -contextroot xxxx ..." from the file.
How do I do that? I think, I…
         
    
    
        Mohamed Saligh
        
- 12,029
- 19
- 65
- 84
                    10
                    
            votes
                
                2 answers
            
        JBoss 7: how to change a WAR context root
I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from 
 http://:8080/app 
I would like to have it being made available as something like
 http://:8080/secret/app
I searched the documentation and…
         
    
    
        Aikanaro
        
- 151
- 1
- 3
- 10
                    8
                    
            votes
                
                2 answers
            
        Weblogic application context root is war file name instead of name specified in weblogic.xml
I have an application which I have deployed using Maven to Weblogic 10.3.6. I have specified context root in weblogic.xml as 
/myapps 
The problem I am having is it is taking the war file name as context root instead of…
         
    
    
        Jacob
        
- 14,463
- 65
- 207
- 320
                    7
                    
            votes
                
                2 answers
            
        Websphere 8.5 context root change not applying to war file
I need a little help changing the context root of my war in my Websphere 8.5 appserver.
I have a war file called test.war When I deploy it to websphere the context root is /test
However I want to change this to be /example
When I looked online I…
         
    
    
        user36737
        
- 131
- 1
- 2
- 6
                    6
                    
            votes
                
                2 answers
            
        Tomcat - redirect old context root to new context root
We want to change the context root of a Tomcat web appplication and have the old URL guide users to the newly named application.
http://hostname/oldappname
http://hostname/newappname
One way to do this would be deploy the application with a context…
         
    
    
        user835745
        
- 1,974
- 3
- 17
- 18
                    5
                    
            votes
                
                1 answer
            
        Is it possible not to have to hardcode context root to user react-router
Since the concept of web application context root is generally considered as a deployment concern as opposed to a development concern, I'd like to know if it's possible not to hardcode context root in the source code when using React Router for web…
         
    
    
        user3820853
        
- 75
- 1
- 7
                    5
                    
            votes
                
                2 answers
            
        Using the context-root from glassfish-web.xml in GlassFish 3
We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the filename. 
Back when we used Weblogic we achieved this by declaring the…
         
    
    
        Markus
        
- 569
- 2
- 4
- 18
                    5
                    
            votes
                
                1 answer
            
        Map several context roots to one web-uri in application.xml
I hava such application.xml.
  
    
      services-inboxService.war 
      /services/inboxService 
     
   
I would like to map different context-roots to one web-uri. But…
         
    
    
        Yegoshin Maxim
        
- 872
- 2
- 21
- 54
                    4
                    
            votes
                
                3 answers
            
        Change context root in grails 2
I'm migrating an app from grails 1.3.6 to 2.0 and I need to change its context root. If I remember correctly, in 1.3.6 I installed the template plugin and changed:
    webAppRootKey 
   … 
         
    
    
        xain
        
- 13,159
- 17
- 75
- 119
                    4
                    
            votes
                
                1 answer
            
        Multiple Context path for the same war in jboss
I am deploying my web app in  jboss-EAP-6.1
I would like to have different context path for the same war:
http://localhost:8080/path1/xyx
http://localhost:8080/path2/xyx
Can you please suggest me on how to do this?
         
    
    
        Balaji V
        
- 918
- 3
- 10
- 28
                    4
                    
            votes
                
                3 answers
            
        War context root change is not reflected in WebSphere made through Maven and deployed using MyEclipse
I am using WebSphere 7 and trying to deploy war from MyEclipse (Server > WebSphere 7 > right click > Add Deployment).
I am using below maven war plug-in: 
    com.xxx.my.app 
    my-app 
   …
         
    
    
        Narendra Verma
        
- 2,372
- 6
- 34
- 61
                    3
                    
            votes
                
                1 answer
            
        How to use root relative path with Eclipse Http Preview server
I have Static Web project in Eclipse and using Http Preview server for development. I want to use root relative path in my resources (e.g. /css/style.css) but I can't figure out how to configure that server to work. There always needs to be context…
         
    
    
        michal.kreuzman
        
- 12,170
- 10
- 58
- 70
                    2
                    
            votes
                
                2 answers
            
        Multiple context root for single war deployment jboss-EAP-6.1
In my Jboss-EAP-6.1 I have deployed a .war called 'myRealWebApp.war'
I can access my app with this url - http://mywebsite.com/myRealWebApp
I want to configure my webapp 'myRealWebApp' with multiple context root. 
I mean if I access…
         
    
    
        Woodstock Monkey
        
- 53
- 2
- 12
                    2
                    
            votes
                
                1 answer
            
        Get context root of an installed application on WAS 7 via wsadmin
I need to create a script in Jython to migrate some applications from WAS 7 to WAS 8.5. I can't seem to find the context root for a certain application (i found the context root for all other applications in the application.xml file). 
This…
         
    
    
        adimoise91
        
- 558
- 1
- 7
- 26