Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3400080
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:50:56+00:00 2026-05-18T04:50:56+00:00

I am pretty new to tomcat6 application deployment. I am trying to deploy my

  • 0

I am pretty new to tomcat6 application deployment. I am trying to deploy my helloworld severlet on tomcat6. But whenrver I use servlet url as http://192.168.2.10:8080/hello/HelloWorldExample2 , I am getting following error :

HTTP Status 404 – /hello/HelloWorldExample2

type Status report

message /hello/HelloWorldExample2

description The requested resource (/hello/HelloWorldExample2) is not available.

I have copied my servlet to /var/lib/tomcat6/webapps directory. Here are the contents of my webapp directory

ls -lR hello/*
hello/WEB-INF:
total 8
drwxr-xr-x 2 root root 4096 2010-11-23 17:07 classes
-rw-r–r– 1 root root 658 2010-11-23 17:41 web.xml

hello/WEB-INF/classes:
total 8
-rw-r–r– 1 root root 1725 2010-11-23 17:07 HelloWorldExample2.class
-rw-r–r– 1 root root 2532 2010-11-23 17:06 HelloWorldExample2.java

Here are the contents of my web.xml

<?xml version="1.0" encoding="UTF-8"?>  
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">  
<display-name>HelloWorldExample2</display-name>  
<servlet>  
<servlet-name>HelloWorldExample2</servlet-name>  
<servlet-class></servlet-class>  
</servlet>  
<servlet-mapping>  
<servlet-name>HelloWorldExample2</servlet-name>  
<url-pattern>/hello</url-pattern>  
</servlet-mapping>  
</web-app>  

I am not sure why I am unable to load servlet. Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:50:56+00:00Added an answer on May 18, 2026 at 4:50 am

    Your web.xml is incorrect. It’s missing the <servlet-class> which should be the the full name of the class including package. It seems to be HelloWorldExample2 from your directory structure.

    and you are using the url-pattern /hello which means you should try with the URL in the browser as:

    http://192.168.2.10:8080/hello/hello

    i.e. the format

    http://<server:port>/<context-root>/<url-pattern>
    

    Here the <context-root> is the name of your webapp hello

    and the <url-pattern> is what you have specified in web.xml for that servlet.

    If you want to access it as http://192.168.2.10:8080/hello/HelloWorldExample2 , then change the <url-pattern> for the servlet-mapping to /HelloWorldExample2

    Also, the display-name in web.xml should match the webapp (hello) and not the servlet – but that wont cause the failure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty new to C# but not new in programming in generally. I'm still trying
Im pretty new to Java Web Services, but I cant find a good explanation
I am pretty new to php, but I am learning! I have a simple
I'm pretty new to c# and I'm trying to make a function that checks
Am pretty new to web services and have been trying to implement Soap Faults.
pretty new to the function, but as i understand DECODE tests the specified attribute
Im pretty new to REST but as far as i have gathered i understand
Im pretty new to Linux in general. Ive just been following this tutorial(http://net.tutsplus.com/tutorials/php/how-to-setup-a-dedicated-web-server-for-free/) to
I'm pretty new to JWS. I have a web application ( several web services
Pretty new (2 weeks) into Objective-C and Xcode, and I'm trying to add my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.