Re: Please Help! Error in using Packages

2005-12-28 Thread Teh Noranis Mohd Aris
Actually, it's only a small matter. I accessed the url from the browser by not following the correct path as in the url-pattern in web.xml file. That's why I got the error message 404 where the path is not available. TEH --- KJ R <[EMAIL PROTECTED]> wrote: > Usually, when you solve a problem, i

Re: Please Help! Error in using Packages

2005-12-28 Thread KJ R
Usually, when you solve a problem, it's helpful to post what the solution was, even if it was something silly, it could possibly help someone else. K --- Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: > Dear all, > I've already solve the problem. Thanks to all who > had > contributed. > > TEH

Re: Please Help! Error in using Packages

2005-12-27 Thread Teh Noranis Mohd Aris
Dear all, I've already solve the problem. Thanks to all who had contributed. TEH --- Prasad <[EMAIL PROTECTED]> wrote: > Teh, > > The web.xml looks fine to me. Can you confirm that > you war file is > packaged correctly i.e > its created with proper packages structure and > dir/file names.

Re: Please Help! Error in using Packages

2005-12-22 Thread Prasad
Teh, The web.xml looks fine to me. Can you confirm that you war file is packaged correctly i.e its created with proper packages structure and dir/file names. Also, I was wondering why are you being asked to (explicitly) create a element in server.xml. Is it a TC v4.x requirement ? I have u

Re: Please Help! Error in using Packages

2005-12-20 Thread Teh Noranis Mohd Aris
The web.xml looks like this: http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> MyFirstServlet com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet MyFirstServlet /MyFirstServlet I placed the web.xml in c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF direc

Re: Please Help! Error in using Packages

2005-12-20 Thread Prasad
Can you post your web.xml. I think I can help you with this but only after looking at your web.xml. I think the problem is with and in your web.xml. Moreover as David said, you can find all the information in the Docs. -Prasad.

Re: Please Help! Error in using Packages

2005-12-20 Thread David Smith
Don't use the classpath if you can possibly avoid it. Tomcat has a classloader scheme to handle this stuff for you. The good old days of messing with the classpath weren't so good (early tomcat 3 releases). :-) This website might help you get things together: http://tomcat.apache.org/tomcat-4

Re: Please Help! Error in using Packages

2005-12-20 Thread Teh Noranis Mohd Aris
Hi, I'm using Windows XP operating system, I've already set the servlet.jar file to the CLASSPATH. I'm using Tomcat version 4.1.31. I haven't made the context for "myfirstwebapp" in server.xml. How can it be done? The explanation in the book I'm using is not that clear. Please help. Thank you so mu

Re: Please Help! Error in using Packages

2005-12-20 Thread marju jalloh
What is your enviroment,which version are you using. Have you made context for "myfirstwebapp" in server.xml -Marju Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: Hi, I'm learning to use packages from a book example to create my own servlet instead of putting the code in the examples web

Please Help! Error in using Packages

2005-12-19 Thread Teh Noranis Mohd Aris
Hi, I'm learning to use packages from a book example to create my own servlet instead of putting the code in the examples webapp. However the following error occurs: HTTP Status 404 - /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet type Stat