Forums Register Login

Error while running the Controller Servlet

+Pie Number of slices to send: Send
Hello

This is the Model-View-Controller architecture application.while running the servlet http://localhost:8181/Burnaby/ControllerServlet

i'm getting this error :

The requested resource (/Burnaby/jsp/Default.jsp) is not available.

please see the web.xml file below and give the solution to my problem...

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
Burnaby</display-name>
<servlet>
<description>
</description>
<display-name>
ControllerServlet</display-name>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>
ControllerServlet</servlet-class>
<init-param>
<param-name>base</param-name>
<param-value>http://localhost:8181/Burnaby/servlet/ControllerServlet</param-value>;
</init-param>
<init-param>
<param-name>jdbcDriver</param-name>
<param-value>oracle.jdbc.driver.OracleDriver</param-value>
</init-param>
<init-param>
<param-name>imageUrl</param-name>
<param-value>http://localhost:8080/burnaby/images/</param-value>;
</init-param>
<init-param>
<param-name>dbUrl</param-name>
<param-value>jdbc racle:thin:@localhost:1521:rashviji</param-value>
</init-param>
<init-param>
<param-name>dbUserName</param-name>
<param-value>scott</param-value>
</init-param>
<init-param>
<param-name>dbPassword</param-name>
<param-value>tiger</param-value>
</init-param>

</servlet>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/ControllerServlet</url-pattern>
</servlet-mapping>

</web-app>
+Pie Number of slices to send: Send
 


The requested resource (/Burnaby/jsp/Default.jsp) is not available.



Well, the error message says that a file named Default.jsp in the jsp folder (in your context root folder) has not been found. Do you have that file there?

Another thing, I'm not sure why do you have params such as http://localhost:8080/burnaby, or http://localhost:8181/Burnaby, but that doesn't look like a good idea - usually using relative paths are a more flexible way to do it.
[ July 16, 2008: Message edited by: Rodrigo Tomita ]
He's giving us the slip! Quick! Grab this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1224 times.
Similar Threads
Problem with jspInit() overriding
Configuring JSP init parameters
An Error Occured while starting tomcat
form action and url pattern
Expression Language Doubt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:48:28.