• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please hepme i got following error  RSS feed

 
sherin uthayaa
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am new to java i wrote simple program helloword java.

i used tomcat server 6.0

i got following error message please help me
i attached my web.xml file aslo. please help me
what was that error

web xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<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">

<description>
Servlet and JSP Examples.
</description>
<display-name>Servlet and JSP Examples</display-name>

<!-- Define servlets that are included in the example application -->

<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
<servlet>


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

</web-app>
Untitled.png
[Thumbnail for Untitled.png]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

The first thing I notice is that the URL in your diagram doesn't match your servlet mapping. Try with an uppercase "H" in the URL (HelloWorldExample).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!