404 file not found error
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   dipankar_datta
Posted On:   Monday, February 18, 2002 11:16 PM

Hi I am using tomcat(v3.2.1) as servlet engine with apache plug-in(mod_jk).I have created my web application directory structure(default in tomcat is /examples) called /jsptest.I deployed 2 jsp files named jsp1.jsp & jsp2.jsp.While I type url of jsp1 it works fine but in case of jsp2 it gives a 404 file not found error.Both jsp1 & jsp2 is in same physical directory..so there is no reason why it gives error. In the jasper.log file there is entry 4 these 2 files as below... 2002-02-19 12:02:55 - JspEngine -> /jsp/jsp1.jsp 2002-02-19 12:02:55 - ServletPath: /jsp/jsp1.jsp 2002-02-19 12:02:55 - PathInfo: null 2002-02-19 12:02:55 - RealPath: C:jak   More>>


Hi
I am using tomcat(v3.2.1) as servlet engine with apache plug-in(mod_jk).I have created my web application directory structure(default in tomcat
is /examples) called /jsptest.I deployed 2 jsp files named jsp1.jsp & jsp2.jsp.While I type url of jsp1 it works fine but in case of jsp2 it gives a 404 file not found error.Both jsp1 & jsp2 is in same physical directory..so there is no reason why it gives error.


In the jasper.log file there is entry 4 these 2 files as below...




2002-02-19 12:02:55 - JspEngine -> /jsp/jsp1.jsp
2002-02-19 12:02:55 - ServletPath: /jsp/jsp1.jsp
2002-02-19 12:02:55 - PathInfo: null
2002-02-19 12:02:55 - RealPath: C:jakarta-tomcat-3.2.1webappsjsptestjspjsp1.jsp
2002-02-19 12:02:55 - RequestURI: /jsp/jsp1.jsp
2002-02-19 12:02:55 - QueryString: null
2002-02-19 12:02:55 - Request Params:
2002-02-19 12:02:55 - Classpath according to the Servlet Engine is: C:jakarta-tomcat-3.2.1webappsjsptestWEB-INFclasses
2002-02-19 12:03:15 - JspEngine -> /jsp/jsp2.jsp
2002-02-19 12:03:15 - ServletPath: /jsp/jsp2.jsp
2002-02-19 12:03:15 - PathInfo: null
2002-02-19 12:03:15 - RealPath: null
2002-02-19 12:03:15 - RequestURI: /jsp/jsp2.jsp
2002-02-19 12:03:15 - QueryString: null
2002-02-19 12:03:15 - Request Params:
2002-02-19 12:03:15 - Classpath according to the Servlet Engine is: C:jakarta-tomcat-3.2.1webappsjsptestWEB-INFclasses




As u see it is giving null value of realpath 4 jsp2.jsp.Can anyone help?

   <<Less
About | Sitemap | Contact