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

  • SEARCH
  • Home
  • 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 691267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:31:25+00:00 2026-05-14T02:31:25+00:00

I am new to Tomcat, and trying to run a simple HelloWorld servlet. I

  • 0

I am new to Tomcat, and trying to run a simple HelloWorld servlet. I have installed Tomcat 6, and Jdk1.6 on Mandriva Linux, set CLASSPATH and JAVA_HOME. I have the following files and directories:

$CATALINA_HOME/webapps/MyApp/WEB_INF/classes/TestServlet.class         
$CATALINA_HOME/webapps/MyApp/WEB_INF/web.xml

My web.xml file contains the following:

<?xml version="1.0" encoding="UTF-8"?>
<!--?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>ZibJana Localization</description>
    <display-name>ZibJana Localization</display-name>             
    <!-- Define the servlets for this application-->
    <servlet>
        <servlet-name>ZibJana</servlet-name>
        <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ZibJana</servlet-name>
        <url-pattern>*</url-pattern>
    </servlet-mapping>  
</web-app>

But when I try to invoke my servlet with url http://localhost:8080/MyApp, tomcat fails to launch launch the servlet. I checked in the $CATALINA_HOME/logs/catalina.out log-file and found the following error, which occurs every time I start tomcat service.

INFO: Deploying web application directory MyApp
16-Mar-2010 12:05:38 AM org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Please let me know where my mistake is.
Thanks in advance.

  • 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-14T02:31:26+00:00Added an answer on May 14, 2026 at 2:31 am

    I just posted the relevant portion of the stack trace. Anyways, I solved the problem. It was an issue with directory structure and web.xml file.

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

Sidebar

Related Questions

I'm trying to run a sample app in Tomcat. I've installed tomcat, set up
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and
I'm new to JSP. I'm trying to run JSP page in TOMCAT server. Following
I'm new with alfresco, i'm trying to run it but i have one problem.
I'm trying to create a new project using tomcat 7.0.27 + JSF 2.1.7 +
new to c#. I'm trying to make a simple system where I can search
When I am trying to run tomcat using startup.bat I get the following error,
I am new to tomcat and servlets and am trying to deploy my first
I have been trying to set up a DatabaseConnectionPool for a web app for
I am fairly new to Servlet Filters and have basically joined a project using

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.