I'm working with a NetBeans project which has a servlet that accesses the MySQL database using a connection pool. With the code completed the name of the project is red indicating a problem. When I right click on the project name at the bottom I see "Resolve data source problem". When I click on that I get a Resolve Data Sources pop-up. I fill in the appropriate info and close it, but the project name remains red and when I right click on it I get the same error about data sources. However, when I deploy to Tomcat everything works perfectly. Any ideas why the project name remains red with the same error? (there are no red indications on any of the packages). I am using NetBeans 7.1.2.