I found the problem myself. I have all the libraries under my lib folder and added them to the project class path. Since the assembly copies all the content in the project, my library also copies, even if I unchecked the checkbox opposite the library.
So, do not put the library in your lib folder if you want to exclude it in the WAR.
thanks
Santhosh
Santhosh Reddy Mandadi
source share