1

Maven build is completing successfully, but when the war is run in Apache tomcat 7, it gives the following error:

java.lang.Error: Unresolved compilation problems:

The import javax.servlet.ServletOutputStream cannot be resolved

Vasu
  • 21,832
  • 11
  • 51
  • 67
  • 1
    If you get `Unresolved compilation problems`, then your Maven build did **not** complete successfully. How could you think that a compilation error is *successful*? – Andreas Mar 25 '17 at 08:58
  • try this: javax.servlet javax.servlet-api 3.1.0 provided – Abdelhak Mar 25 '17 at 09:01
  • Even after adding that dependency, Maven is always giving build as successful, but when I open the .class file, it shows this error. – Mandhara Jayaram Mar 25 '17 at 12:08

0 Answers0