Eclipse can’t resolve javax.servlet. I use Apache Tomcat.
My CLASSPATH variable looks as following:
C:\glassfish3\jdk\jre\lib;C:\glassfish3\jdk\lib;
C:\Programme\liferay-portal-tomcat-6.0.5\liferay-portal-6.0.5\tomcat-6.0.26\lib
As far as I know javax.servlet is in the file servlet-api.jar which is there.
Do I need to configure anything else than the classpath?
Ensure that you’re using Eclipse for Java EE developers. If ensured, then first integrate Tomcat in your Eclipse environment if not done yet. Open the Servers view at the bottom, rightclick it, choose New, add Apache Tomcat from the list and follow the wizard.
Then rightclick your dynamic web project, choose Properties and then go to Targeted Runtimes and select the integrated Tomcat from the list and click OK.
That should be it.