Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat 6 Servlet not detected
    primarykey
    data
    text
    <p>Ok, This should be basic, and I have used servlets many times before via eclipse and weblogic and no problems. However with Tomcat 6 I am having issue with Servlet mapping.</p> <p>web.xml:</p> <pre><code>&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"&gt; &lt;description&gt; Servlet and JSP Examples. &lt;/description&gt; &lt;display-name&gt;Servlet and JSP Examples&lt;/display-name&gt; &lt;servlet&gt; &lt;servlet-name&gt;HelloWorldExample&lt;/servlet-name&gt; &lt;servlet-class&gt;HelloWorldExample&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;HelloWorldExample&lt;/servlet-name&gt; &lt;url-pattern&gt;/HelloWorldExample&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;/web-app&gt; </code></pre> <p>My web.xml is located in my WEB-INF folder, my servlet HelloWorldExample.class is located in WEB-INF/classes/</p> <p>They are all located in tomcat/webapps/ch1/ </p> <p>As far as I can see it is all ok, however after hours of trial and error and multiple restarts i am still getting:</p> <blockquote> <p>type Status report</p> <p>message /ch1/HelloWorldExample</p> <p>description The requested resource is not available.</p> </blockquote> <pre><code>http://localhost:8080/ch1/HelloWorldExample </code></pre> <p>screen shot of directory structure</p> <p><img src="https://i.stack.imgur.com/RcExp.png" alt="folders"></p> <p>If someone could point out where I am making an error I would be eternally grateful :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload