I found this error when deploying my Netbeans application directly to Apache Tomcat, i think it happen because of lack of memory needed to deploy it. I resolve it by adding these on server’s vm options
-Xmx1024m -Xms256m -XX:MaxPermSize=512m
Hope it helped others 🙂
