title: java.lang.IllegalStateException: No application context active
body: <p>I am getting illegal state exception in below code at 
  <code>PropertyDao propertyDao = PropertyDao.getInstance();</code></p>
  
  <pre><code>public class JMySpellCheckerServlet extends TinyMCESpellCheckerServlet {
  
      private static final long serialVersionUID = -2460237918745522935L;
      private SpellChecker loadSpellChecker(final String lang) throws SpellCheckException
      {      
         PropertyDao propertyDao = PropertyDao.getInstance();
         McsProperty messageLangProperty = 
         propertyDao.getMcsProperty(PropertyDao.PROPERTY_MESSAGE_LANG);     
      }
  }
  </code></pre>