[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5049) Specifying Server JRE via Open Launch Configuration is confusing

Rob Stryker (JIRA) jira-events at lists.jboss.org
Tue Oct 27 16:31:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12491773#action_12491773 ] 

Rob Stryker commented on JBIDE-5049:
------------------------------------

There are lots of other things that are confusing there also, but we can't really fix them. 

For example, goes to the arguments tab and changes the -b argument to something else, it will not save it.  If the user changes the working directory it will not save it. There are many fields that are overwritten.  This is because certain fields are recieved entirely from the runtime object and must be in sync with the launch configuraiton.

The problem is that there is no way to properly disable certain controls or add validation without extending / copying all of the classes, which is a lot of work for very little gain. 

For now we follow the same pattern that the other server adapters follow. The user can change what they want, but we can't tell them not to change something, so some changes do not persist. If you want to think up some solution to this problem I'd be glad to hear it, but for now we do not validate the fields because it is a lot of work.

I have tried extending them all before, but each tab contains many other classes inside of it, some of which are private in their own plugins and I cannot access. It is very difficult to modify the tab to add additional validation to it. 

> Specifying Server JRE via Open Launch Configuration is confusing
> ----------------------------------------------------------------
>
>                 Key: JBIDE-5049
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5049
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 3.1.0.M4
>         Environment: JBoss Tools 3.1 M4
> JDK Sun 1.5.0_14
> JBoss AS 4.3
>            Reporter: Vlado Pakan
>            Assignee: Rob Stryker
>             Fix For: 3.1.0.M4
>
>
> Selecting JRE for server defined within Eclipse server view is confusing. Check these two scenarios:
> 1. Define new server with Runtime using JRE 1.5.0
> 2. Open Launch Configuration of this server, select JRE tab, select JRE 1.6.0 choose apply and OK.
> 3. Reopen Open Launch Configuration dialog and JRE 1.5.0 is selected instead JRE 1.6.0
> Looks like JRE is always inhereted from Server Runtime settings and not using "Open Launch Configuration" settings and it's confusing.
> 1. Define new JBoss EAP 5.0 Runtime. This Runtime needs JRE 1.6 and this JRE is automatically selected during creation of Runtime as Runtime JRE. There is no possibility to select JRE 1.5 for JBoss EAP 5.0 Runtime.
> 2. Select JRE 1.5 as default workspace JRE Windows > Preferences > Java > Installed JRE's
> 3. Open Launch Configuration and JRE 1.5 is selected and is also used when server is started. It brings many errors because JBoss 5.0 runs only with 1.6 JRE
> 4. Change JRE via OPen Launch Configuration dialog to JRE 1.6 choose Apply and OK.
> 5. Reopen Open Launch Configuration dialog and JRE was not change it's still JRE 1.5. It's again quite confusing
> 6. Change workspace default JRE to JRE 1.6
> 7. Open Launch Configuration is now using JRE 1.6 and server starts correctly

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list