I don't know anything about Jasper Reports, but I do know that accessing files (via http) outside of the web app's directory is not allowed.
In local sytem if I specify the file system path like D:\example\...
It is working fine.But,when it deploy it in server it is not taking the path of that file which is automatically created.
Huh? I don't understand this at all. The text is too vague, please be more specific: exactly where is the file located, and exactly what path/URL was used to access it.