You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/06/28 16:38:52 UTC
[Bug 55155] New: running tomcat tests cause terminal to repeatedly
grab focus (on os x)
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
Bug ID: 55155
Summary: running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Product: Tomcat 7
Version: unspecified
Hardware: Macintosh
OS: Mac OS X 10.4
Status: NEW
Severity: minor
Priority: P2
Component: Packaging
Assignee: dev@tomcat.apache.org
Reporter: clucas@e-miles.com
Created attachment 30493
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30493&action=edit
patch to add java.awt.headless=true for junit tests
On osx, when running tomcat tests via "ant test", "ant test-nio" or similar,
the terminal window running the tests grabs window focus each time a new jvm is
launched for the junit tests. This makes it difficult/annoying to do other
things in other windows while the tests are running. I am seeing the problem
on a mac - it is likely not a problem on other platforms.
Setting java.awt.headless=true fixes the issue. I can't think of any reason
this shouldn't be set for tomcat tests - maybe there is a reason I don't know.
Anyway, the attached patch adds the property (for junit tests).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
No, that isn't what I meant.
Please re-test with the latest source code for 7.0.x/trunk from subversion.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Mark Thomas <ma...@apache.org> ---
I haven't dug into this far enough to idenitfy the trigger for this but it
looks like whatever change triggered the probem in Java 7 has been back-ported
to Java 6 but the change that allowed us to change the default for
appContextProtection hasn't been back-ported.
I can't tell if this is an Apple specific issue or one that will affect anyone
using the Oracle (commerical) supported Java 6 binaries.
An additional factor to take into consideration is the general reluctance of
the Tomcat dev community to add work-arounds for bugs in third-party products
(yes the JreMemoryLeakPreventionListener is a pretty big exception to that
rule).
Given that OSX seems to be a fairly popular platform amongst Java developers
then I think your second patch is the way to go for now. If this emerges as a
wider Java 6 issue we can look at using java.awt.headless=true instead.
The patch has been applied to 7.0.x and will be included in 7.0.42 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
I don;t see the described behaviour on OSX. This sounds like the AWT issue that
has already been fixed in trunk. (change log entry: Update the
JreMemoryLeakPreventionListener to take account of changes in the behaviour of
java.beans.Introspector.flushCaches() and sun.awt.AppContext.getAppContext() in
Java 7.)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #8 from Casey Lucas <cl...@e-miles.com> ---
Created attachment 30497
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30497&action=edit
set apple.awt.UIElement=true
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #7 from Casey Lucas <cl...@e-miles.com> ---
Sorry for not mentioning the jdk version originally. More digging revealed
what I believe to be a better fix for the problem:
https://developer.apple.com/library/mac/#documentation/Java/Reference/Java_PropertiesRef/Articles/JavaSystemProperties.html
(See apple.awt.UIElement property.)
Setting it to true allows awt calls but does not steal focus. I'll add a new
patch.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #5 from Casey Lucas <cl...@e-miles.com> ---
I ran the tests (again) after updating trunk. Same results (lots of window
focus change). Are you trying the osx built-in Terminal app? Maybe that has
something to do with it. I'm running tests under jdk6. I'll try some more
variations.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |---
--- Comment #6 from Mark Thomas <ma...@apache.org> ---
OK, I do see it with Java 6. It would have helped if you mentioned that in your
original report.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #2 from Casey Lucas <cl...@e-miles.com> ---
Created attachment 30494
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30494&action=edit
against head?
is this what you wanted? if not, please provide a tip or link.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 55155] running tomcat tests cause terminal to repeatedly grab
focus (on os x)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55155
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Try again with 7.0.x HEAD please
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org