Error while running openmrs-core from netbeans IDE using GlassFish server 4.1

Do it from another folder which does not contain the openmrs-core source code.