I am trying to deploy a maven web application on my local wildfly machine. But I am getting this error: Answer It seems that at deploy time, the application is looking for a directory which has not been generated at package time thus the problem. When created in the target/lib then the deployment runs ok.