I think I found the solution. It may be related with either older version of enunciate which I am using i.e. v1.26 or there are multiple <url-pattern>
in my web.xml
.
I added additional servlet mapping
and it worked..
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
where /api/
is path to my api documentation. I still did not get why there necessity of this. It would be great if someone explain this to me.