will help you Make sure the PROJECT_STAGE is set to Development. If it is on production your JSF implementation may cache compiled version and won't check on disk for changes. You should have something like this in your web.xml
hope this fix your issue This error came from a lack of heapspace on the local server. The real problem was not visible in the stackTrace because the managed bean "main" is instanciated during deployment : @ManagedBean(name = "main", eager = true)
Netbeans does not automatically deploy to GlassFish (On Mac)
Hope this helps Happens when a previously deployed application is already exists in the GlassFish server. Try the following. Stop your server/domain empty the domain[x]/autodeploy/ folder empty the domain[x]/osgi-cache/ folder restart your server/domain and see if your deployment now works.