title: What could cause "javax.naming.OperationNotSupportedException" when tomcat startup
body: <p>My tomcat(7.0.34) shows error as </p>
  
  <blockquote>
    <p>Creation of the naming context failed:
    javax.naming.OperationNotSupportedException: Context is read only</p>
  </blockquote>
  
  <p>when it starts up. But I don't know why? And how to fix it?</p>
  
  <h2>UPDATE</h2>
  
  <p>the log:<br></p>
  
  <pre><code>Info: Starting Servlet Engine: Apache Tomcat/7.0.34
  Mar 11, 2013 9:43:18 PM org.apache.catalina.core.NamingContextListener lifecycleEvent
  Critical: Creation of the naming context failed: javax.naming.OperationNotSupportedException: Context is read only
  Mar 11, 2013 9:43:18 PM org.apache.coyote.AbstractProtocol start
  Info: Starting ProtocolHandler ["ajp-bio-8081"]
  Mar 11, 2013 9:43:18 PM org.apache.catalina.core.StandardService startInternal
  Info: Starting service ChongWuXingQiu
  Mar 11, 2013 9:43:18 PM org.apache.catalina.core.StandardEngine startInternal
  Info: Starting Servlet Engine: Apache Tomcat/7.0.34
  Mar 11, 2013 9:43:18 PM org.apache.catalina.core.NamingContextListener lifecycleEvent
  Critical: Creation of the naming context failed: javax.naming.OperationNotSupportedException: Context is read only
  Mar 11, 2013 9:43:18 PM org.apache.coyote.AbstractProtocol start
  Info: Starting ProtocolHandler ["ajp-bio-8082"]
  Mar 11, 2013 9:43:18 PM org.apache.catalina.startup.Catalina start
  Info: Server startup in 1753 ms
  </code></pre>