Auto-sleep won't work when web pages auto-refresh

Dear Apple,
Around 4 years ago, I noticed that my computer stopped going to sleep. I first noticed it shortly after adopting Gmail for my email platform and was subsequently able to isolate the issue down to Gmail and other websites, such as Huffington Post, which auto-refresh. Apparently, any website that auto-refreshes at shorter intervals than the auto-sleep is set to kick in, prevent the computer's auto-sleep function from activating.
I have spoken at length with AppleCare about this issue and understand that this is "by design." For instance, we wouldn't want the computer to constantly go to sleep while watching a movie or downloading and conversely, if we are actively working at our computers it's nice that Gmail auto-refreshes and keeps us appraised of incoming mail. However, since the vast majority of users now leave their browsers with multiple tabs open and due to the fact that more and more websites now auto-refresh, the auto-sleep function has become outdated and non-functional. While users can always manually put their computers to sleep, everyone at some time or another forgets to do so. This is exactly why computers are supposed to auto-sleep in the first place. Aggregated across millions of users, this results in a huge waste of electricity.
I've been writing/calling Apple (through AppleCare and the online feedback form) about this issue for 4 years now. I keep hoping that with each operating system release, some sort of "smart auto-sleep" function will be incorporated that will recognize when websites auto-refresh and still allow auto-sleep to kick in. Unfortunately, this does not appear to be the case in Lion.
I work in the energy efficiency field, specifically in lighting, and care deeply about this issue. I consider Apple to be an industry leader on this issue as well. I'm not familiar with the technical side of this issue, but I assume that with the right type of programming, the operating system could override a webpage's auto-update feature and activate auto-sleep, while not interfering with functions where a user would not want the computer to go to sleep, such as watching a movie. With Lion, Apple has focused its energy on making the computer adjust to the user,rather than the user adjusting to the computer. Yet, in this case, it appears to be the other way around.
It is time for Apple to update the auto-sleep function so that it takes into account websites that auto-refresh. When I set my computer to auto-sleep after so many minutes, I want it to do so, regardless of whether I have a browser with auto-updating websites open. Apple must take this issue seriously, as the wasted electricity is too important to ignore any longer.
Sincerely,
An Energy-Conscious User

I am obviously talking to Apple AND I posted this letter here, because a lot users seem confused about why their computers won't sleep. Even most AppleCare reps are confused. In the past, I couldn't find much in the way of explanations pointing to this issue, so I thought I post it here in case other people are looking for an explanation.
The auto-sleep function was built before websites auto-updated and needs to be updated to accomodate them. For the average user, it doesn't make sense for the computer not to sleep just because Gmail is open. Just because some website auto-refreshes in my browser, doesn't mean I never want my computer to sleep. By the same token, if I wanted to turn off auto-sleep I could easily do so from within Energy Saver Preferences. The two should be independent, so the user has the choice.
Why should I have to close my browser every time I walk away from my computer in order for it to sleep? I've acknowledged that in certain circumstance it makes sense for the computer not to auto-sleep: watching a movie, uploading, etc, but Apple has already accounted for those instances because the computer does not auto-sleep when those programs are running. All I'm suggesting is making the auto-sleep mechanism more sophisticated so that it isn't overridden by websites auto-refreshing. 
Why the negative attitude, dwb? Based on the amount of time you spend in these discussion forums, you obviously never turn your computer off, so this doesn't really affect you. Maybe it's time to step outside and get some fresh air?

Similar Messages

  • I'm using Windows 8.1 and the browser won't load any web page. I downloaded the latest one from the website. Any help would be great. All other browsers work.

    I'm using Windows 8.1 and the browser won't load any web page. I downloaded the latest one from the website. Any help would be great. All other browsers work.

    Hi curtismoxam,
    Please try these troubleshooting steps: [[Fix problems connecting to websites after updating Firefox]]

  • Safari update to 5.1.5, on snow leopard, now safari won't open any web page.

    Just installed Safari update to 5.1.5 and now Safari won't load any web page. Running snow leopard on an iMac.  How do I fix, or revert to previous version of Safari that did work, keeping in mind, can't access internet on that computer since Safari won't load a web page (Firefox, Chrome, Opera have never worked on that computer, although Firefox worked fine until I upgraded OS to snow leopard).

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Safari won't load some web pages.

    Ever since installing Mavericks, Safari won't load some web pages (including these Apple support pages). I'm able to load the pages using Chrome or Firefox. Does anyone know of any settings in Safari 7 or the Mavericks system preferences that would be causing this?
    -Greg

    I had the same problem... I ran disk repair and repaired all permissions on the HD then reopened safari now it's working fine.

  • HT1430 my iPhone4 will not turn on or show that is working at all, i have tried to charge it so that the screen will light up but it won't work, when plugged into the computer iTunes does not show any sign it is plugged in, what do i do?

    my iPhone4 will not turn on or show that is working at all, i have tried to charge it so that the screen will light up but it won't work, when plugged into the computer iTunes does not show any sign it is plugged in, what do i do?

    There is a hardware problem.  Whether it's worth it to you to have no working phone for 2 months until you can update vs paying for replacement/repair now is a question only you can answer.

  • After upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down then restore power to get it to function.

    after upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down and restore power for it to function. Also cannot send email from mac mini or iPad.

    after upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down and restore power for it to function. Also cannot send email from mac mini or iPad.

  • My 8 key won't work when I press it to put in my password, what can I do?

    my 8 key won't work when I press it to put in my password, what can I do?

    Presumably you are connecting it from the *Dock Connector.* In this case, the controls on the car stereo should be controlling the iPod and the iPod's controls are disabled.
    If you are using the car's connection interface, consult the car manual to find out how to control the iPod. If you are using an adaptor between the iPod and car, ask the adaptors installer or manufacturer.
    Phil

  • Since I updated to Yosemite my mouse won't work when I turn on, unless I unplug it and put it in again

    I have a mini mac updated to Yosemite, since I updated,  my mac mouse won't work when I open ...So I have to unplug from my mac keyboard and plug back in again . Does anyone have the same problem?

    Thanks Eric...a few other things have happened too...still working on them, I like the change just updating and figuring out why I might have some other problems...thånks again

  • My nano works when connected to a computer but won't work when unconnected.  The battery is full.

    My nano won't work when it is not connected to a computer.  It won't even reset.  If I pull it into my computer it will work and it shows that the battery is full.  What might be the problem?

    Then that sounds to be the Apple ID that owns this Mac, the OS and any preinstalled apps. Did that Apple ID set the Mac up when new?

  • Installed Windows 7 on bootcamp but now my wireless mouse won't work when in windows. What can I do?

    Installed Windows 7 on bootcamp but now my wireless mouse won't work when in windows. What can I do?

    assuming it is an optical mouse (no ball etc.) then there aren't any moving parts involve in the motion detection
    so there's a faulty component or connection
    from what you describe it could be just a loose/broken connection, so if you know someone familiar with electronics see if they can open it up and have a look

  • Movies won't work when a DVD is inserted ?

    Movies won't work when a DVD is inserted.  What do I do to watch a movie ?

    Just one DVD or all of them?
    Some DVD's just need a gentile cloth and rubbing alcohol wipe on the bottom to rid of fingerprints etc.
    If your using out of region code DVD's (each area of the world has regions codes assigned to the computer and disks) then that needs to be changed.
    This can happen if you buy a Mac used from another part of the world or use DVD's from another region.

  • EREC: Stars disappear when assigment page is refreshed.

    Hi Experts,
    I am really stuck on this and hope someone guides me.
    I am facing problem in Assignment page for the requisition. Where ranking details are displayed and stars are visible for the listed candidates. When assignment page is refreshed, stars which were visible earlier will disappear.
    Why refreshing making the ranking stars to disappear? Is there any note to address this issue? Please help out.
    Regards
    Savitha
    Edited by: SAPHCMRR on Aug 4, 2011 12:46 PM
    Edited by: SAPHCMRR on Aug 5, 2011 9:18 AM

    Hello Savitha,
    Note 1124565 originally had a correction instruction for EHP4 although this was not necessary (because the changes have been implemented before EHP4 was shipped). One of my colleagues came across this fact and we deleted the correction instruction for EHP4.
    It seems like someone tried to reapply the note in your system after it has been changed and that during this the LOOP-statement got lost. I had a look at the version history of GET_AUTO_SRCH_LST_BY_CDCY_LST and to me it seems like the coding had been there correctly (in the initial version 1), most probably because it was part of the initial shipment of EHP4.
    the code should be like this :
    method get_auto_srch_lst_by_cdcy_lst.
      data: lt_hit_list             type rcf_t_hitlist_with_rankv,
            ls_srch_mtch            type rcf_s_hitlist_with_rankv,
            lt_cdcy_list            type rcf_t_assignments,
            ls_cdcy_list            type rcf_s_assignments,
            ls_hidden_info          type rcf_s_name_value,
            lt_hidden_info          type rcf_t_name_value,
            lo_ex                   type ref to cx_hrrcf,
            lv_is_ranking_supported type boole_d.
      field-symbols: <ls_cdcy_slct> type rcf_s_mass_proc_activities,
                     <ls_hit_list>  type rcf_s_hitlist_with_rankv.
      clear pt_srch_mtch_list_slct.
    check if attribute ranking is supported
      if cl_hrrcf_switch_check=>hrerc_sfws_ui_enh_03( ) eq true.
        call function 'HR_RCF_CHECK_TREX_VERSION'
          importing
            ev_ranking_supported = lv_is_ranking_supported.
      endif.
      ls_hidden_info-fieldname  = 'REQUISITION'.
      ls_hidden_info-fieldvalue = ps_req_hrobject.
      append ls_hidden_info to lt_hidden_info.
      loop at pt_cdcy_list_slct assigning <ls_cdcy_slct>.
        ls_cdcy_list-cdcy_object = <ls_cdcy_slct>-hrobject.
        append ls_cdcy_list to lt_cdcy_list.
      endloop.
      unassign <ls_cdcy_slct>.
      try.
          call method cl_hrrcf_search_match_bl=>get_auto_srch_lst
            exporting
              p_search_compid    = p_search_compid
              ps_hrobject        = ps_req_hrobject
              pt_hidden_info_tab = lt_hidden_info
            importing
              pt_hit_list        = lt_hit_list
            changing
              pt_cdcy_list       = lt_cdcy_list.
          if lv_is_ranking_supported eq false.
            sort lt_hit_list by hrobject.
            loop at pt_cdcy_list_slct assigning <ls_cdcy_slct>.
              ls_srch_mtch-hrobject = <ls_cdcy_slct>-hrobject.
              read table lt_hit_list assigning <ls_hit_list>
                with key hrobject = <ls_cdcy_slct>-hrobject
                binary search.
              if sy-subrc eq 0.
                ls_srch_mtch-rankv = <ls_hit_list>-rankv.
              endif.
              append ls_srch_mtch to pt_srch_mtch_list_slct.
              clear: ls_srch_mtch.
            endloop.
          else.
            pt_srch_mtch_list_slct = lt_hit_list.
          endif.
        catch cx_hrrcf into lo_ex.
          raise exception type cx_hrrcf
            exporting
              previous = lo_ex.
      endtry.
    endmethod.

  • Need help getting my applets to work on web pages!

    I've been trying to get it to work for a while now, and I no idea why it won't work! I've tried all kinds of things to get it to work, but it still won't work. All I want to do is make a simple applet, don't care what it does, and put it on a web page.
    Here is my HTML code:
    <applet code=?Slime2P.class? height=?300? width=?400? codebase=?http://www.spinarcade.com/tests?>
    </APPLET>
    Here is a link to what happens:
    [http://www.spinarcade.com/tests/duk.html|http://www.spinarcade.com/tests/duk.html]
    Here is the errors:
    load: class ?Slime2P.class? not found.
    java.lang.ClassNotFoundException: ?Slime2P.class?
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    It works fine when I run the applet in eclipse, and I've tried many different applets. I tried using a cool program I wanted to put online first, then I made a simple program to try, and then I even downloaded the file from a tutorial and didn't edit it at all... nothing works!
    Here's code from one of the applets (Simple applet with green lines):
    import java.applet.*;
    import java.awt.*;
    public class Duck extends Applet {
    int width, height;
    public void init() {
    width = getSize().width;
    height = getSize().height;
    setBackground( Color.black );
    public void paint( Graphics g ) {
    g.setColor( Color.green );
    for ( int i = 0; i < 10; ++i ) {
    g.drawLine( width, height, i * width / 10, 0 );
    I have all the .class file and the html page in the same place (http://www.spinarcade.com/tests).
    Thank you for your help! It is most likely something simple...
    Edited by: Donv7 on Jul 17, 2008 2:27 PM

    Here is your html:
    <HTML>
    <HEAD>
    <TITLE>Duk!</TITLE>
    </HEAD>
    <body bgcolor="#DAE9F3">
    <center>
    <applet code=?Slime2P.class? height=?300? width=?400?>
    </APPLET>
    ducks these dayz...<br>
    codebase=?http://www.spinarcade.com/tests?<br>
    C:\Documents and Settings\Don\Desktop<br>
    http://www.spinarcade.com/tests<br>
    </center>
    </BODY>
    </HTML>Look carefully at the double quotes surrounding the red text (bgcolor).
    Look at the double quotes used in the applet tag now!!!

  • Hyperlinks won't work on some pages

    Hi,
    I created a document in CS3. I have lots of hyperlinks within the pdf, but for some reason all of the hyperlinks on specific pages won't work. I've even copied and pasted the hyperlinks from pages that do work. Please help!

    Hi Sandeep,
    Thanks for responding - in answer to your questions:
    - there are no links to local files, all URL's starting http://www.
    - I'm using Acrobat Pro X (although also checking it in plain old Acrobat Reader)
    - I'm creating it with InDesign CS5
    - The links are definitely there when I open it up in Acrobat. I've evn tried setting the links up using Acrobat to test if it was a problem exporting from InDesign but that also didn't work for them.
    I'm checking with the client now about the version(s) of Acrobat Reader they're on and also asking them to check the links within it. Are there any settings their end which could stop them working do you know? They've told me older documents with URL hyperlinks are still working fine, so wouldn't appear to be that.
    I'm afraid this file is confidential, so I can't really share.
    The latest test I've tried are to create a new 'for web' document and that seems to have helped testing on a different machine, although I'm waiting to see if it's had any effect with the client. I cannot think of any other things to try right now!
    Thanks for all your help - any more suggestions or advice you can offer will be much appreciated!
    Regards,
    Luke

  • JUnit test won't work when calling embeddable EJBContainer

    I'm trying to create a unit test on my application but I get an error when I call:
    EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();
    I've tried on multiple projects with the same result. I also downloaded the source from this tutorial: http://netbeans.org/kb/docs/javaee/javaee-entapp-junit.html and it failed. I've gone through the logs and output and nothing jumps out. The application itself will compile, deploy and work.
    Anyone have any ideas?
    Here is the full output:
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-test:
    Testsuite: bean.MyBeanTest
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.resource.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.transaction.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: weld-osgi-bundle.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.security.auth.message.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jsf-api.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: bean-validator.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jstl-impl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jsp.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jsf-impl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jersey-core.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: javax.annotation.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.ejb.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jaxrpc-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: webservices-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.persistence.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.jms.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.security.jacc.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.management.j2ee.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jsp.jstl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.mail.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.enterprise.deploy.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jaxr-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-static-shell.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding NetBeansJunitTutorial to exploded ear isEJBModule? true isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding lucene-demo-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-junit4.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding jaxb-api-osgi.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding lucene-core-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-junit.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding junit-4.8.2.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? true isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-launcher.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerImpl deploy
    +INFO: [EJBContainerImpl] Deploying app: /tmp/ejb-app4556776368985078980+
    SLF4J: Class path contains multiple SLF4J bindings.
    +SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
    +SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/bean-validator.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    Dec 02, 2011 6:30:23 PM org.hibernate.validator.util.Version <clinit>
    INFO: Hibernate Validator 4.1.0.Final
    Dec 02, 2011 6:30:23 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    Dec 02, 2011 6:30:26 PM org.glassfish.api.ActionReport failure
    +SEVERE: Exception while deploying the app [ejb-app]+
    Dec 02, 2011 6:30:26 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
    +SEVERE: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    +java.lang.IllegalArgumentException: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    +PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.+
    +[name=ejb-app+
    Tests run: 0, Failures: 0, Errors: 2, Time elapsed: 9.606 sec
    ------------- Standard Output ---------------
    +PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.+
    +[name=ejb-app+
    ------------- Standard Error -----------------
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.resource.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.transaction.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: weld-osgi-bundle.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.security.auth.message.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jsf-api.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: bean-validator.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jstl-impl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jsp.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jsf-impl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jersey-core.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: javax.annotation.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.ejb.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jaxrpc-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: webservices-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.persistence.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.jms.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.security.jacc.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.management.j2ee.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.servlet.jsp.jstl.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.mail.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: javax.enterprise.deploy.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping module: jaxr-api-osgi.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
    INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-static-shell.jar
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding NetBeansJunitTutorial to exploded ear isEJBModule? true isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding lucene-demo-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-junit4.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding jaxb-api-osgi.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding lucene-core-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-junit.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding junit-4.8.2.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? true isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
    +INFO: [DeploymentElement] adding ant-launcher.jar to exploded ear isEJBModule? false isWebApp? false+
    Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerImpl deploy
    +INFO: [EJBContainerImpl] Deploying app: /tmp/ejb-app4556776368985078980+
    SLF4J: Class path contains multiple SLF4J bindings.
    +SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
    +SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/bean-validator.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    Dec 02, 2011 6:30:23 PM org.hibernate.validator.util.Version <clinit>
    INFO: Hibernate Validator 4.1.0.Final
    Dec 02, 2011 6:30:23 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    Dec 02, 2011 6:30:26 PM org.glassfish.api.ActionReport failure
    +SEVERE: Exception while deploying the app [ejb-app]+
    Dec 02, 2011 6:30:26 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
    +SEVERE: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    +java.lang.IllegalArgumentException: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
    at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
    at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
    at com.sun.enterprise.deployment.Application.visit(Application.java:1765)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:816)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
    at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:171)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:828)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:770)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
    at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
    at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
    at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
    at com.sun.enterprise.deployment.Application.visit(Application.java:1765)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:816)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
    Dec 02, 2011 6:30:26 PM org.glassfish.deployment.admin.DeployCommand execute
    +SEVERE: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
    at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:171)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:828)
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    Dec 02, 2011 6:30:26 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer
    +INFO: [EJBContainerProviderImpl] Cleaning up on failure ...+
    Testcase: bean.MyBeanTest:  Caused an ERROR
    Failed to deploy EJB modules - see log for details
    javax.ejb.EJBException: Failed to deploy EJB modules - see log for details
    at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:150)
    at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:770)
    Testcase: bean.MyBeanTest:  Caused an ERROR
    null
    java.lang.NullPointerException
    at bean.MyBeanTest.tearDownClass(MyBeanTest.java:41)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
    at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
    Dec 02, 2011 6:30:26 PM org.glassfish.deployment.admin.DeployCommand execute
    +SEVERE: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
    Note:
    +1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
    +2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
    +3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
    Dec 02, 2011 6:30:26 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer
    +INFO: [EJBContainerProviderImpl] Cleaning up on failure ...+
    at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
    Test bean.MyBeanTest FAILED
    test-report:
    test:
    BUILD SUCCESSFUL (total time: 12 seconds)

    I am obviously talking to Apple AND I posted this letter here, because a lot users seem confused about why their computers won't sleep. Even most AppleCare reps are confused. In the past, I couldn't find much in the way of explanations pointing to this issue, so I thought I post it here in case other people are looking for an explanation.
    The auto-sleep function was built before websites auto-updated and needs to be updated to accomodate them. For the average user, it doesn't make sense for the computer not to sleep just because Gmail is open. Just because some website auto-refreshes in my browser, doesn't mean I never want my computer to sleep. By the same token, if I wanted to turn off auto-sleep I could easily do so from within Energy Saver Preferences. The two should be independent, so the user has the choice.
    Why should I have to close my browser every time I walk away from my computer in order for it to sleep? I've acknowledged that in certain circumstance it makes sense for the computer not to auto-sleep: watching a movie, uploading, etc, but Apple has already accounted for those instances because the computer does not auto-sleep when those programs are running. All I'm suggesting is making the auto-sleep mechanism more sophisticated so that it isn't overridden by websites auto-refreshing. 
    Why the negative attitude, dwb? Based on the amount of time you spend in these discussion forums, you obviously never turn your computer off, so this doesn't really affect you. Maybe it's time to step outside and get some fresh air?

Maybe you are looking for