[jbosstools-issues] [JBoss JIRA] (JBIDE-20150) Add -Djava.awt.headless=true for older JBoss AS servers

Martin Malina (JIRA) issues at jboss.org
Thu Jun 25 04:35:03 EDT 2015


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

Martin Malina updated JBIDE-20150:
----------------------------------
    Description: 
This really should have been done several years ago :) But it should be trivial, so why not do it now.

When you start an older server, such as JBoss AS 4 or EAP 5.2, on Mac, once the server is started, a new icon will be added to Dock and it will gain focus and in the menu bar, it will say org.jboss.Main.

The solution is to add -Djava.awt.headless=true to the VM arguments in the launch config.

I noticed that we already do this for EAP 6.1, so can we do similarly for older servers?
I checked this works with JBoss AS 4.0, 4.2.3 and EAP 5.2. 
Also, this only happens with JDK 1.6. When I started AS 4.0 with JDK 1.8, the process didn't have an icon in the dock. But it shouldn't break to add the headless parameter everywhere (I checked for this case).

The reason we came across this now is that it breaks our tests - Eclipse loses focus once the server starts on Mac. Surely we can work around that (and we will for now), but I thought we could fix this in the tools directly.

  was:
This really should have been done several years ago :) But it should be trivial, so why not do it now.

When you start an older server, such as JBoss AS 4 or EAP 5.2, on Mac, one the server is started, a new icon will be added to Dock and it will gain focus and in the menu bar, it will say org.jboss.Main.

The solution is to add -Djava.awt.headless=true to the VM arguments in the launch config.

I noticed that we already do this for EAP 6.1, so can we do similarly for older servers?
I checked this works with JBoss AS 4.0, 4.2.3 and EAP 5.2. 
Also, this only happens with JDK 1.6. When I started AS 4.0 with JDK 1.8, the process didn't have an icon in the dock. But it shouldn't break to add the headless parameter everywhere (I checked for this case).

The reason we came across this now is that it breaks our tests - Eclipse loses focus once the server starts on Mac. Surely we can work around that (and we will for now), but I thought we could fix this in the tools directly.



> Add -Djava.awt.headless=true for older JBoss AS servers
> -------------------------------------------------------
>
>                 Key: JBIDE-20150
>                 URL: https://issues.jboss.org/browse/JBIDE-20150
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: server
>    Affects Versions: 4.3.0.Beta1
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>            Priority: Minor
>
> This really should have been done several years ago :) But it should be trivial, so why not do it now.
> When you start an older server, such as JBoss AS 4 or EAP 5.2, on Mac, once the server is started, a new icon will be added to Dock and it will gain focus and in the menu bar, it will say org.jboss.Main.
> The solution is to add -Djava.awt.headless=true to the VM arguments in the launch config.
> I noticed that we already do this for EAP 6.1, so can we do similarly for older servers?
> I checked this works with JBoss AS 4.0, 4.2.3 and EAP 5.2. 
> Also, this only happens with JDK 1.6. When I started AS 4.0 with JDK 1.8, the process didn't have an icon in the dock. But it shouldn't break to add the headless parameter everywhere (I checked for this case).
> The reason we came across this now is that it breaks our tests - Eclipse loses focus once the server starts on Mac. Surely we can work around that (and we will for now), but I thought we could fix this in the tools directly.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list