on 03-26-2009 5:57 AM
Hi,
I am getting an error when executing the Car Rental Application like
Error [javax.servlet.ServletException: Requested resource [QuickCarRental/servlet/quickCarRentalView.jsp] not found.].
I did everything what ever the mentioned in the manual.
please reply me
Thanks,
Rajesh.
Hey is the link to where you store the jsp files correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for reply,
I have placed QuickCarRentalView.jsp in webContent and
my web.xml file is
<web-app>
<display-name>Rent-A-Car</display-name>
<description>Web resources for Car Rental example.</description>
<servlet>
<servlet-name>quickCarRentalView.jsp</servlet-name>
<jsp-file>/quickCarRentalView.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>QuickReservationServlet</servlet-name>
<servlet-class>com.sap.examples.quickcarrental.servlet.QuickReservationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>QuickReservationServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>quickCarRentalView.jsp</servlet-name>
<url-pattern>/view</url-pattern>
</servlet-mapping>
<ejb-local-ref>
<ejb-ref-name>ejb/QuickOrderProcessorBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sap.examples.quickcarrental.QuickOrderProcessorLocalHome</local-home>
<local>com.sap.examples.quickcarrental.QuickOrderProcessorLocal</local>
<ejb-link>QuickCarRentalEjb.jar#QuickOrderProcessorBean</ejb-link>
</ejb-local-ref>
</web-app>
now I am trying to run the application as http://<localhost>:50000/QuickCarRental
Thanks,
Rajesh.
Hi,
Use something like this to access the file:
http://QuickCarRental/view/quickCarRentalView.jsp
<servlet-name>quickCarRentalView.jsp</servlet-name>
<url-pattern>/view</url-pattern> // This is the URL Pattern used to that Servlet..
</servlet-mapping>
<servlet>
<servlet-name>quickCarRentalView.jsp</servlet-name>
<jsp-file>/quickCarRentalView.jsp</jsp-file> // This is the Process Class.. (or JSP)
</servlet>
The JSP file should be in under "webContent" folder. (Or any other root-folder of your application).
Regards,
Daniel
Hi,
Anybody please reply me regarding this problem.
I am getting the .jsp page not found error.
Thanks,
Rajesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.