I newbie in Java and I learning it creating a small project with help of Vaadin, JPA, GlassFish. If I run my project on GlassFish server it starts successfully. But then each time when I push Redeploy, it crashes with error:
javax.servlet.ServletException: java.lang.IllegalArgumentException: No [EntityType] was found for the key class [entity.Category] in the Metamodel - please verify that the [Entity] class was referenced in persistence.xml using a specific <class>entity.Category</class> property or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element
So I have to stop GlassFish server, change code and run GlassFish again. I takes so much time :(
Maybe someone can help me?