Resteasy deploy fails randomly on glassfish 4.1
I have a problem with my REST-Application using Resteasy. When I deploy the application with this dependencies <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-servlet-initializer</artifactId> <version>3.0.11.Final</version> </dependency> as described here in Chapter 3.5 sometimes the server deploys the application correctly and everything works fine. But sometimes I get Error invoking ServletContainerInitializer org.jboss.resteasy.plugins.servlet.ResteasyServletInitializer java.lang.NullPointerException at org.jboss.resteasy.plugins.servlet.ResteasyServletInitializer