Is is possible to set the context root of a Liberty application to / so that the user just has to browse to:
I tried adding context-root="/" to the application definition in server.xml. Some things worked, like the applications REST interface, but files were not found and the application failed to load in my browser.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2012-11-15T15:13:58Z by SystemAdmin
Pinned topic Setting Context Root to / ?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
SystemAdmin 110000D4XK590 PostsACCEPTED ANSWER
Re: Setting Context Root to / ?2012-11-15T15:13:58Z in response to RM03_Chris_BarlockIn order to change the context-root to just http://<hostname>, you need to add a parameter to your application's manifest file.
Add to the end of your manifest file (META-INF/MANIFEST.MF) the following:
This is part of the OSGi metadata that makes your application a WAB (Web Application Bundle).