title: The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
body: <p>I have downloaded Eclipse and tried to create a sample servlet program but I got following error </p>
  
  <blockquote>
    <p>The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files</p>
  </blockquote>
  
  <p>I have configured build path correctly.
  I am using Java 8 and Apache Tomcat 7 and libraries for both are referenced correctly.</p>
  
  <p>Problem is specifically for Java EE only. Ordinarily Java SE projects are running fine.</p>