Advertisement

05.28.2008 at 09:07PM PDT, ID: 23440338
[x]
Attachment Details

How to access servlet on Linux environment Tomcat 5.5

Asked by dovob in Apache Tomcat Application Server, Java Application Servers, WebApplications

Tags: Tomcat Java

I have installed on Linux Tomcat 5.5. I have no problem accessing jsp pages. However, I have problem accessing a test hellow world servlet.

 I tried the following url on my local tomcat on win xp and it worked. http://localhost:8080/hw

Attached is a copy of my web.xml file I used on both my local and online Linux server.
What is the url that I need to use to access the Hello World sample on the online Linux Tomcat?
Do I need to make any changes in the conf/web.xml or conf/server.xml?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
    <display-name>Servlet Test Hello World</display-name>
    <servlet>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/hw/*</url-pattern>
    </servlet-mapping>
</web-app>
 
 
[+][-]05.29.2008 at 01:13PM PDT, ID: 21672926

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 01:14PM PDT, ID: 21672933

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 11:04PM PDT, ID: 21675553

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 01:16AM PDT, ID: 21676002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 02:05AM PDT, ID: 21676180

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 04:37AM PDT, ID: 21676766

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 04:37AM PDT, ID: 21676771

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Tomcat Application Server, Java Application Servers, WebApplications
Tags: Tomcat Java
Sign Up Now!
Solution Provided By: girionis
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628