Tomcat acting different between Linux and Windows-XP

From: JAVA Rookie (theRookie_at_yahoo.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 11:53:58 -0700

Hi, all:
I have a sample servlet in Windows-XP and Linux, below is the modified section
in web.xml:

<servlet>
<servlet-name>
hi
</servlet-name>
<servlet-class>

<servlet-mapping>
<servlet-name>
hi
</servlet-name>
<url-pattern>
/hello.html
</url-pattern>
</servlet-mapping>

When I typed http://localhost:8080/hello.html in Windows-XP, I can got correct
page, but HTTP Status 404 - /hello.html under Linux? They do have same web.xml
and same configuration.

So what I need to do in Linux to make servlets working? And should I need to use
JSP instead of servlet? because I am learning servlet now and soon will be JSP.

Thanks in advance.



Relevant Pages

  • Re: Verify Linux Password
    ... >>My servlet receives the username and password as part of a login ... >>validate the password I receive against the password for that Linux ... check out RPitch Relative Pitch ...
    (comp.lang.java.help)
  • Re: Verify Linux Password
    ... >I'm looking for the simplest way to verify a linux user password from ... >My servlet receives the username and password as part of a login ... >validate the password I receive against the password for that Linux ... check out RPitch Relative Pitch ...
    (comp.lang.java.help)
  • tomcat 5.0.19 with jdk1.4.2_04-b05 know problem with xerces ?
    ... productive environment. ... My servlet throws Exception occasional in ...
    (comp.lang.java.help)
  • Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)
    ... I've got a servlet which runs linux binary file and creates java.lang.Process, takes its output ) and writes it on .html page via BufferedReader. ...
    (comp.lang.java.programmer)
  • Servlet question(Tomcat, web.xml, servlet-class, servlet-name)
    ... I just upgraded from a 4.1.10 Tomcat implementation on NT4 to a Tomcat ... and I can call the servlet this way: ... On the Linux box, ...
    (comp.lang.java.programmer)