To get rid of the invoker, this could be your entire web.xml file:
***
?xml version=1.0 encoding=ISO-8859-1?
!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
Hello David Brown, I am getting the very same 404 server error msg. when I try to
run/execute a VERY BASIC JSP, for the current date and time!!! I need some special
guidance from u re. how to edit the web.xml file to set the context variable!! And,
would you also tell me how to write the and
This shouldn't be too hard to solve. Post the associated servlet and
servlet-mapping from your web.xml -the one under webapps/study.
On Friday, November 29, 2002, at 05:53 PM, Steve R. Burrus wrote:
Hello David Brown, I am getting the very same 404 server error msg.
when I try to
Hi All,
Using Tomcat 4.1.12 on Win 2K
I am getting a 404 error when I try to create a new webapp and add a very basic
servlet. The servlet works if I create the package structure within the examples
WEB-INF/classes. Here are the steps:
1. created webapps/study
2. created
I believe that servlet has been disabled by default in 4.1.12 for security
reasons. That is probably why you can't use:
http://localhost:8080/study/servlet/TestServlet
Jim
-Original Message-
From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 12:58
To: [EMAIL
Well I also tried
http://localhost:8080/study/servlet/com.wrox.projsp.ch03.TestServlet
but the same whereas
http://localhost:8080/examples/servlet/com.wrox.projsp.ch03.TestServlet works
??
Thomas
-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002
Hi!
Try to access /study/TestServlet!!
Martin
-Ursprüngliche Nachricht-
Von: Curley, Thomas [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 28. November 2002 13:58
An: [EMAIL PROTECTED]
Betreff: How to add a servlet to a new Webapp
Hi All,
Using Tomcat 4.1.12 on Win 2K
No -
The requested resource (/study/TestServlet) is not available.
Note
I have just added the servlet mappings into examples web.xml and I can also now access
the TestServlet in the examples context using either
http://localhost:8080/examples/servlet/com.wrox.projsp.ch03.TestServlet
or
Can you post your web.xml?
-Original Message-
From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:16
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: How to add a servlet to a new Webapp
No -
The requested resource (/study/TestServlet) is not
Jim,
I just took the examples web.xml and added the mapping - here it is
-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:18
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp
Can you post your web.xml?
-Original
If I understand everything correctly :) the invoker servlet is by
default disabled. I had to add the following to my web.xml to be able to
access servlets that are not defined in the web.xml:
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
This problem is new with 4.1.12. For security reasons the invoker
servlet had been disabled in the global /conf/web.xml file.
This invoker servlet usually loads user servlets that are not mapped
correctly as far as i understand. This is done by using a default
mapping /servlet/*.
In productive
Thomas has got a mapping to the invoker servlet in the web.xml file he
posted so it should not be a problem.
-Original Message-
From: mech [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:25
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp
This
Correct ! - I origionally copied the examples web.xml
-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:28
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp
Thomas has got a mapping to the invoker servlet in the web.xml
You mention in your first post that the servlet works if you create the
package structure in WEB-INF/classes. Is the servlet no longer in this
directory?
-Original Message-
From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:29
To: Tomcat Users List
Subject: RE:
Jim - its in both webapps under classes - com.wrox.projsp.ch03.TestServlet
-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:35
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp
You mention in your first post that the
Here the study.jar file - cd to webapps and jar -xvf .
-Original Message-
From: Curley, Thomas
Sent: 28 November 2002 13:37
To: Tomcat Users List
Subject: RE: How to add a servlet to a new Webapp
Jim - its in both webapps under classes - com.wrox.projsp.ch03.TestServlet
If you copied the examples web.xml, then you must have a lot of references
to servlet classes and filters not present in your new webapp. This can make
the context not to be created, because of exceptions raised during context
initialization. Try to delete all unused entries before starting the
thanks - will try
-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:46
To: Tomcat Users List
Subject: Re: How to add a servlet to a new Webapp
If you copied the examples web.xml, then you must have a lot of references
to servlet classes and
Hi Thomas,
I got it to work using this web.xml:
?xml version=1.0 encoding=ISO-8859-1?
!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-nameTomcat Examples/display-name
description
Study
Hi,
this is now working thanks to you all.
Attached is the web.xml. As Rodrigo stated I pruned it down and it turns out that at a
min I need the 'Servlet Mapped Filter', the invoker mapping.
If anyone can explain the web.xml file in plain lang / what filters do and how to get
rid of the
Jim,
many thanks
NB: - presume you uncommented the invoker in conf/web.xml to get this working
Thomas
-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 14:08
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp
Hi Thomas,
You would not need to uncomment the invoker in this case because the servlet
mapping is specified in your web.xml file. If you did not have this in the
web.xml file:
servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/TestServlet/url-pattern
/servlet-mapping
Then
Thomas,
filters are classes that preprocess / postprocess servlet requests. Defining
a filter, you are instructing the server to pass the requests to a specified
filter, instead of directly passing it to the servlet. Filter is responsible
of redirecting the request to the servlet between pre and
Curley, Thomas writes:
Hi All,
Using Tomcat 4.1.12 on Win 2K
I am getting a 404 error when I try to create a new webapp and add a very basic servlet. The servlet works if I create the package structure within the examples WEB-INF/classes. Here are the steps:
1. created webapps/study
2.
The reason is that the invoker servlet is not turned off for the
examples. Okay? Check the code and the xml.
At 01:06 PM 11/28/2002 +, you wrote:
Well I also tried
http://localhost:8080/study/servlet/com.wrox.projsp.ch03.TestServlet
but the same whereas
i am having the same problem described in this thread
what does this (the proposed solution) mean:
The reason is that the invoker servlet is not turned off for the
examples. Okay? Check the code and the xml.
I am migrating from 4.0.3 to 4.1.12.
Thanks,
Scott
--
To unsubscribe, e-mail:
You just have to either turn the invoker servlet back on (with security
problems, if it is not yet fixed) or use the standard xml way of getting
access to the classes.
At 04:15 PM 11/28/2002 -0500, you wrote:
i am having the same problem described in this thread
what does this (the proposed
* Curley, Thomas [EMAIL PROTECTED] [1114 14:14]:
If anyone can explain the web.xml file in plain lang / what filters do and how to
get rid of the invoker then please do
See the link to chapter 5 at http://www..moreservlets.com
--
Rasputin :: Jack of All Trades - Master of Nuns
--
To
29 matches
Mail list logo