Hopefully, I can explain this issue properly. I have 3 classes that deals with my entities.
@MappedSuperclass
public abstract class Swab implements ISwab {
Mario was right when he mentions EntityManagerFactory here.
Both:
java.lang.IllegalArgumentException: Unknown entity bean class...
and
java.lang.IllegalStateException: This web container has not yet been started...
These exceptions occur when you redeploy a web application multiple times but didn't close EntityManagerFactory properly.
follow this instruction to register ServletContextListener and this instruction to close EntityManagerFactory properly.