[jbosstools-issues] [JBoss JIRA] (JBIDE-10514) Run on server.. loads wrong URL

Rob Stryker (JIRA) jira-events at lists.jboss.org
Fri Jan 27 05:10:49 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Stryker updated JBIDE-10514:
--------------------------------

    Fix Version/s: 3.3.x


There is no clear solution here.  Unfortunately the issues are as follows:
1) m2e-wtp does not use the <warName>ROOT</warName> portion of the pom.xml
2) m2e-wtp always overrides the wtp value for context root using its own logic
3) adding a <m2eclipse.wtp.contextRoot>/</m2eclipse.wtp.contextRoot> to the pom.xml upstream would make it work for remote, but not if deployed to a local app-server
4) if we choose to use the run-on-server client to do this, it will need to return different values for local vs remote server
5) There is no guarantee to know how the user intends to deploy it remotely without a setting somewhere
6) This setting should be somewhere public and not too hard to find

Current ideas are to add a component property, such as openshift.remote.contextroot, to the virtualcomponent / settings.xml file.  However if the user then changes the pom, he will also have to go dig through and change this property.  Attempting the same, but for local, is not any better. 

I can't see a clear solution for this now. 
                
> Run on server.. loads wrong URL
> -------------------------------
>
>                 Key: JBIDE-10514
>                 URL: https://issues.jboss.org/browse/JBIDE-10514
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 3.3.0.M5
>            Reporter: Lucia Jelinkova
>            Assignee: Rob Stryker
>             Fix For: 3.3.0.Beta1, 3.3.x
>
>
> Run on server... tries to load the wrong URL (it appends application name to the correct one)
> Instead of:
> http://2test-ljelinko.rhcloud.com
> Loads:
> http://2test-ljelinko.rhcloud.com/2test/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list