Everything is running fine in my computer tomcat but when I uploaded on my dedicated server then its throwing File not found error
I installed modJK to read html files from apache and java files from tomcat on dedicated server may be this is the problem because when I am using the path as www.mywebsite.com/servlet/Filename then it shows the file. without writing /servlet its throwing file not found error
any suggestion please
Ankit Garg wrote:I personally cannot make sense of what you are trying to say. Are you trying to say that if you try to directly access a file using a URL, then you are able to access the file but if you try to access the file from a servlet, then you are getting a FileNotFoundException?? In that case you'll have to show us the code of your servlet where you are trying to access the file...
Thanks for your reply
actually there is a problem with deployment descriptor. when am running the same web.xml on my computer then all the file paths working very well but when am putting the stuff online to my dedicated server then am getting this error. e.g.
http://127.0.0.1:7070/LoginAdmin.PERL is working fine but as http://www.mysite.com/LoginAdmin.PERL is throwing fnf exception. In my view that's why because online the modJK serves "/" path for apache httpdocs and "/servlet" to tomcat