Community
Participate
Working Groups
- create a dynamic web project "test1" - create index.jsp to web app root - create a new Generic server, e.g. JBoss in Server view - Change the project context root to something different from the project name - Right click the project, select "Run As"\"Run On Server" - Server is started but the internal browser pointing to a wrong URL and page is not found. - Note: Same test case is working on Tomcat. The problem is in: GenericServer.getModuleRootURL(IModule) { ... url += "/"+module.getName(); ... } context root should be used to generate the URL
I have released a fix for it to the HEAD. The fix is simple involving using the context root instead of module name.
Fix is Released for 1.5 RC4
Verified and the URL is now generated with new context root in 1.5.1.
Note: Even URL is now consistent with project setting, user may not be able see the page because most application server uses the WAR file name as context path to deploy the WAR generated by Generic server publisher. Unless a context root is specified explictly. e.g. for JBoss: jboss-web.xml <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/TestWeb3</context-root> </jboss-web> But this is out of the scope of this bug and more a responsibility of user. May deserve some documentation though.
This is part of a mass update to close out all stale WTP defects already verified by the reporter but awaiting closure by the assignee. If you feel this defect was closed inappropriately, please reopen. Thanks, John Lanuti
New Gerrit change created: https://git.eclipse.org/r/107865