Re: HTTP status code 404

2005-09-05 Thread Paul Singleton
QM wrote: On Mon, Sep 05, 2005 at 06:28:05PM +0100, Paul Singleton wrote: : But we want *no* error page, just a 404 status returned to : the browser, which will then presumably present this failure : to the user in its own way. Or have I musunderstood 404s? Yes and no. Browsers are free to

Re: HTTP status code 404

2005-09-05 Thread QM
On Mon, Sep 05, 2005 at 06:28:05PM +0100, Paul Singleton wrote: : But we want *no* error page, just a 404 status returned to : the browser, which will then presumably present this failure : to the user in its own way. Or have I musunderstood 404s? Yes and no. Browsers are free to interpret 404s

Re: HTTP status code 404

2005-09-05 Thread Paul Singleton
Please help a little more; I am not sure what you mean. The directive as documented in SRV.9.9.2 of the 2.4 servlet spec mentions that we can nominate a custom error page, otherwise I understand we get Tomcat's default one. But we want *no* error page, just a 404 status returned to the br

Re: HTTP status code 404

2005-09-02 Thread Mirek Stohr
You should use the following procedure HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND); in cooperation with the mentioned directive in web.xml. Mirek L. Mohan Arun wrote: > Tomcat 4.1 > > How can I configure Tomcat 4 to return HTTP status code 404 f

HTTP status code 404

2005-09-02 Thread L. Mohan Arun
Tomcat 4.1 How can I configure Tomcat 4 to return HTTP status code 404 for a "404 Page Not Found" error? Currently it displays a HTML page with "Error type" etc. with status code 200. The docs say element in web.xml can be configured to serve another page in respons

DefaultServlet raising 404 when mapped explicitely

2005-07-26 Thread Dirk Weinhardt
org.apache.catalina.servlets.DefaultServlet to be invoked for requests to /download/files/* a 404 is raised for all files like http://my.server.com/download/files/afile.ext Where's the difference? Is it another servlet than DefaultServlet that serves static content by default? Doe

HTTP Status 404 - /admin

2005-06-27 Thread Sharath Srivatsa
Hi, I have loaded tomcat successfully. When i click Tomcat Administration iam getting the following error. HTTP Status 404 - /admin type Status report message /admin description The requested resource (/admin) is not available. Apache Tomcat/4.1.31 I have made the necessary changes in

RE: 404 redirection question

2005-05-18 Thread Fritz Schneider
David, I'm differentiating between a link as in src= and a hyperlink as in href=. For a link, the browser does indeed do another HTTP GET to retrieve it, but if the result is a 404, the rest of the response is discarded and the image is rendered as a small box with a red x in it. On the

Re: 404 redirection question

2005-05-18 Thread David Wall
Fritz, Well, that's a hyperlink to the image, not embedded. In the case below, the image is not embedded in the HTML but is simply a link to the image that requires an HTTP(S) GET to retrieve. With a relative URL like you used, it just constructs the complete URL by appending the current page

RE: 404 redirection question

2005-05-18 Thread Fritz Schneider
By having a page that is essentially: -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 11:01 AM To: Tomcat Users List Subject: Re: 404 redirection question Fritz Schneider wrote: >If you have hyperlinks >to images, as opposed t

Re: 404 redirection question

2005-05-18 Thread David Wall
Fritz Schneider wrote: If you have hyperlinks to images, as opposed to HTML pages with images embedded, How would you embed images inside the HTML rather than using hyperlinks to the image? David - To unsubscribe, e-mail: [EMAIL

RE: 404 redirection question

2005-05-18 Thread Fritz Schneider
Wade, Browsers don't display the error page for missing GIF or JPEG elements in a page, only when the entire requested URL gets a 404. If you have hyperlinks to images, as opposed to HTML pages with images embedded, then what you are looking for can be accomplished. You could create a JSP

404 redirection question

2005-05-18 Thread Wade Billings
I have the need to redirect visitors to my site to different error pages depending on the type of element missing. For example, if the element that is missing is an image file (e.g. *.jpg, *.gif), then I want to present them with a custom 404 error page. If the missing element is an entire page

Re: Trying to execute my first servlet, but "HTTP Status 404".

2005-04-30 Thread Cassius V. de Magalhaes
QM escreveu: On Sat, Apr 30, 2005 at 09:01:02PM -0300, Vinicius wrote: : I'm trying to execute my first servlet, but it's not working. : [snip: description of setup] You mention everything but actually mapping the servlet, such that the container associates your servlet class with a URI. (hint: we

Re: Trying to execute my first servlet, but "HTTP Status 404".

2005-04-30 Thread QM
On Sat, Apr 30, 2005 at 09:01:02PM -0300, Vinicius wrote: : I'm trying to execute my first servlet, but it's not working. : [snip: description of setup] You mention everything but actually mapping the servlet, such that the container associates your servlet class with a URI. (hint: web.xml) What

Trying to execute my first servlet, but "HTTP Status 404".

2005-04-30 Thread Vinicius
e the message errors: " HTTP Status 404 - /servlets-examples/servlet/FirstServlet *type* Status report *message* _/servlets-examples/servlet/FirstServlet_ *description* _The requested resource (/servlets-examples/ser

Re: Issue: HTTP 404---requested resource is not available

2005-04-26 Thread Anto Paul
On 4/27/05, Kevin Kang (Intl Vendor) <[EMAIL PROTECTED]> wrote: > Hi, all > > I have written several servlets in my app class folder. But the browser > still says that. > > I have a servlet named TestServlet.class and want to show the result. > The structure of my app folder is below: > > |webap

Issue: HTTP 404---requested resource is not available

2005-04-26 Thread Kevin Kang \(Intl Vendor\)
Hi, all I have written several servlets in my app class folder. But the browser still says that. I have a servlet named TestServlet.class and want to show the result. The structure of my app folder is below: |webapps |--myapp | |--WEB-INF | |--classes |

Tomcat 4 issue help HTTP 404

2005-04-14 Thread Manoj Thomas
Getting HTTP 404 error while trying to run a servlet. It says resourse not found Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Custom 404 page when a webapp is stopped by the manager

2005-04-07 Thread Pawson, David
-Original Message- From: Pascal Gauthier we have a tomcat webapp that needs to be down if we are doing a maintenance to the database. The manager seems to be the perfect solution to make the application unavailable but we found out that the 404 error

Re: Custom 404 page when a webapp is stopped by the manager

2005-04-07 Thread Lionel Farbos
uot;Pascal Gauthier" <[EMAIL PROTECTED]> wrote: > Hi, > > we have a tomcat webapp that needs to be down if we are doing a maintenance > to the database. The manager seems to be the perfect solution to make the > application unavailable but we found out that the 404 error-page c

Custom 404 page when a webapp is stopped by the manager

2005-04-06 Thread Pascal Gauthier
Hi, we have a tomcat webapp that needs to be down if we are doing a maintenance to the database. The manager seems to be the perfect solution to make the application unavailable but we found out that the 404 error-page cannot be customized. Even if we modified the default web.xml (in conf

RE: FIXED - Tomcat 5.5.7, mod_jk 1.2.8, Apache 2.0.53 - 404 received from remote client, but not local

2005-03-29 Thread Jason Williams
on the same machine > as the server (machine A) I have no problems. When accessing the same URL > from another machine on the same network (machine B) I get a 404 > error from > Apache. No other errors are given in the mod_jk.log, catalina.out or > error.log. > > My work

Tomcat 5.5.7, mod_jk 1.2.8, Apache 2.0.53 - 404 received from remote client, but not local

2005-03-29 Thread Jason Williams
(machine B) I get a 404 error from Apache. No other errors are given in the mod_jk.log, catalina.out or error.log. My workers.properties file is very simple: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I added this line to my server.xml file

HTTP Status 404

2005-03-12 Thread vnug
Hello: I keep getting "HTTP status 404" messages with regular frequency, eventhough the resources the "tomcat" is complaining about are present. I was wondering anybody has experiences/comments/suggestions as to the reasons behind these messages. The environment: T

how to create a custom servlet for server 404 errors

2005-01-20 Thread Eddie Kawas
Hi, I am trying to create a default server 404 error servlet that gets served every time someone tries to access a page that is not present for all web apps. I have added: 404 /DefaultTomcatPages/Error404 To the bottom of the /conf

Re: HTTP Status 404 - /admin && HTTP Status 404 - /manager/html

2004-12-21 Thread Viorel C.
On Tue, 2004-12-21 at 19:05, Dwayne Ghant wrote: > Configured tomcat.5.0.27/apache2.x/mod_jk2.so > > After configuration my "admin" and "manager" application > stoped working. In apache configuration you must have: Alias /admin $CATALINA_HOME/server/webapps/admin Alias /manager $CATALINA_HOME/ser

Re: HTTP Status 404 - /admin && HTTP Status 404 - /manager/html

2004-12-21 Thread Dwayne Ghant
I know that someone ran into this before. I assume that most of this list thinks this questions is stupid and you are probably correct; so please accept my apologeis. But that doesn't stop me from needing assistance. Thank you for your time. Dwayne Ghant wrote: Configured tomcat.5.0.27/apache2.x/mo

HTTP Status 404 - /admin && HTTP Status 404 - /manager/html

2004-12-21 Thread Dwayne Ghant
Configured tomcat.5.0.27/apache2.x/mod_jk2.so After configuration my "admin" and "manager" application stoped working. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-m

RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-15 Thread Jon Doe
Enable (comment in) the AccessLogValve in your server.xml. That way you will be able to see exactly what requested URLs result in 404s. The file is enabled and nope -- I'm not seeing any 404 errors. Yoav Shapira http://www.yoavshapira.com What confuses me is why I get a ClassCastException?

RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Jon Doe
Hi, Because this processing servlet of yours itself had an error. A JSP file by default is processed by Tomcat's JSP servlet, not your Router servlet. Accordingly, it's not subject to your custom error handling mechanism. A more standard way to do this is declare an for 404's

RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Shapira, Yoav
Hi, >Sorry, not sure I understand this. Is this not what I've done with this?: > >404 > /404.html > Yeah, that is what you've done. I didn't read your original web.xml carefully enough it seems ;) >My understanding of how thi

RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Shapira, Yoav
Hi, Because this processing servlet of yours itself had an error. A JSP file by default is processed by Tomcat's JSP servlet, not your Router servlet. Accordingly, it's not subject to your custom error handling mechanism. A more standard way to do this is declare an for 404's

Query with 404 error processing -- Tomcat 5.0.19

2004-12-12 Thread Jon Doe
Can someone please explain why I get the default Tomcat 404 error when a pages does not exist? I have a set of URLs that end with *.ext. These are all routed to a servlet called Router, and these all work fine. This servlet has catch-all at the end that displays an error message when an

Re: 404 capture anywhere without apache

2004-12-03 Thread Frank Morton
Thanks. I got this working, but what about 404 errors outside the context? On Dec 3, 2004, at 10:51 AM, Scott Purcell wrote: The deployment descriptor will allow the following: 404 /errorpage.jsp Give this a try and all 404 errors caught by the context will be sent to the errorpage.jsp

RE: 404 capture anywhere without apache

2004-12-03 Thread Scott Purcell
The deployment descriptor will allow the following: 404 /errorpage.jsp Give this a try and all 404 errors caught by the context will be sent to the errorpage.jsp file. Also check the docs, as there are other attributes that get set to help diagnose the error better

404 capture anywhere without apache

2004-12-03 Thread Frank Morton
Another view of a previous post... I have a context currently defined in server.xml as: I would like to catch any 404 errors (with or otherwise), even outside the context, and redirect to one specific url within the mycity context (and still

JK2 and 404 HTTP Error

2004-11-30 Thread Boulay Arnaud
crash.But the problem is when the webapp is stopped (by manager for ie.) on one worker.The query is send to both tomcat even to the one that have no webapp available and so, the answer to the client is a nice 404 HTTP Error code.IMHO, it's because that jk2 don't parse

Re: Removing the 404 error mesajes in tomcat

2004-11-29 Thread QM
On Mon, Nov 29, 2004 at 03:46:37AM -0700, Allen Beacon wrote: : Thanks for responding. I had a look to all my web.xml including the one : at/tomcat/conf and I didn?t see the response status code where I could : point to my custom page. Review the servlet spec for a complete list of what goes in yo

Re: Removing the 404 error mesajes in tomcat

2004-11-29 Thread Allen Beacon
jeld > >> Hi, >> I would like to completelly remove the error pages( the ones like http >> request not found 404, etc) in tomcat. >> >> Basically, the user will access the right url via a link but in case >> they >> try to find other pages by typin

Re: Removing the 404 error mesajes in tomcat

2004-11-29 Thread Kjeld Froberg
Hi Map all the response statuscodes in web.xml, there you can point it to your custom errorpage Kjeld > Hi, > I would like to completelly remove the error pages( the ones like http > request not found 404, etc) in tomcat. > > Basically, the user will access the right url via a l

RE: Removing the 404 error mesajes in tomcat

2004-11-29 Thread Peter Crowther
> From: Allen Beacon [mailto:[EMAIL PROTECTED] > Basically, the user will access the right url via a link but > in case they > try to find other pages by typing in the url, then no error > message will > display and neither infomation about de server (tomcat version x.x). > Any help will be appr

Removing the 404 error mesajes in tomcat

2004-11-29 Thread Allen Beacon
Hi, I would like to completelly remove the error pages( the ones like http request not found 404, etc) in tomcat. Basically, the user will access the right url via a link but in case they try to find other pages by typing in the url, then no error message will display and neither infomation about

Removing the 404 error mesajes in tomcat

2004-11-29 Thread Allen Beacon
Hi, I would like to completelly remove the error pages( the ones like http request not found 404, etc) in tomcat. Basically, the user will access the right url via a link but in case they try to find other pages by typing in the url, then no error message will display and neither infomation about

Re: wecome servlet return 404 in tomcat 4.1.31 (Linux)

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 06:32:45AM -0700, Mark wrote: : Somehow I cannot use a servlet as a welcome-file in tomcat 4.1.31 - : 404 error get returned, however it works with no problem in 5.0.24 That's because servlet-as-welcome-file is a feature of servlet spec 2.4 (Tomcat 5.x), not 2.3 (Tom

wecome servlet return 404 in tomcat 4.1.31 (Linux)

2004-10-18 Thread Mark
Hi, Somehow I cannot use a servlet as a welcome-file in tomcat 4.1.31 - 404 error get returned, however it works with no problem in 5.0.24 here a part of my web.xml: welcome /Welcome

Re: 404 etc

2004-09-18 Thread QM
On Fri, Sep 17, 2004 at 07:21:19PM -0300, Eugene wrote: : How to disable ServerTokens in Tomcat and how to replace : the error pages on custom static pages? For the latter, review the servlet spec for "error-page" -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX

Re: 404 etc

2004-09-17 Thread ALWAYSRIA
Unsubscribe me!

Re: 404 etc

2004-09-17 Thread ALWAYSRIA
unsubscribe me!

404 etc

2004-09-17 Thread Eugene
Hello all! How to disable ServerTokens in Tomcat and how to replace the error pages on custom static pages? Thank you for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Getting 404 error deploying my servlet

2004-08-31 Thread Shaun Campbell
- Original Message - From: "Kimmy Lin" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 10:13 PM Subject: Re: Getting 404 error deploying my servlet > In your web.xml, you

Re: Getting 404 error deploying my servlet

2004-08-31 Thread John Villar
ll [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 6:12 AM To: Tomcat Users List Subject: Re: Getting 404 error deploying my servlet In your web.xml, you might want to try add the following ... invoker /servlet/* I take it that's apt/WEB-INF/web.xml? A

RE: Getting 404 error deploying my servlet

2004-08-31 Thread Shapira, Yoav
List >Subject: Re: Getting 404 error deploying my servlet > > >> In your web.xml, you might want to try add the following >> >> >> ... >> >> >> invoker >> /servlet/* >> >> >> > >I take it tha

Re: Getting 404 error deploying my servlet

2004-08-31 Thread Shaun Campbell
> In your web.xml, you might want to try add the following > > > ... > > > invoker > /servlet/* > > > I take it that's apt/WEB-INF/web.xml? Anyway I seem to have that set in my web.xml file. Here's the contents of my web.xml file. I don't suppose you can see anythin

Re: Getting 404 error deploying my servlet

2004-08-30 Thread Kimmy Lin
- From: "Shaun Campbell" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 5:01 PM Subject: Getting 404 error deploying my servlet I've developed a servlet on my windows laptop using a product called Turb

Getting 404 error deploying my servlet

2004-08-30 Thread Shaun Campbell
ferred it to my Linux server and Tomcat has unpacked it. I've restarted Tomcat and no matter what I do I keep getting a 404 error saying that resource apt/servlet/apt is not available. I'm running Tomcat 4.1.30 and I've installed Java 1.4. SSL and Tomcat seems to be workin

404 response form authentication problem

2004-08-29 Thread Jon Wilmoth
I have a login form that works fine in my local development environment with a single webapp deployed to the default localhost "host". However, in a hosted environment with multiple "host"s defined in my server.xml Tomcat returns a 404 response and a blank page. The html form

Re: 404 error accessing servlet in Tomcat5

2004-08-27 Thread Preeti Iyer
Hi Yoav, Thanks for the response. I do not get the 404 error anymore after implementing the changes. But when I access the servlet using http://host:port/myApp/HelloServlet, I do not get get any response and I get a blank screen. I am attaching my modified servlet code and web.xml Why am I

RE: 404 error accessing servlet in Tomcat5

2004-08-26 Thread Shapira, Yoav
ta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Preeti Iyer [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 26, 2004 3:06 PM >To: [EMAIL PROTECTED] >Subject: 404 error accessing servlet in Tom

404 error accessing servlet in Tomcat5

2004-08-26 Thread Preeti Iyer
Hi, I have a simple webapp with 1servler. When I run my webapp in Tomcat5 and try accessing my servlet using http://localhost:8080/HelloServlet/HelloServlet , I get a 404 error page stating -- HTTP Status 404 - /HelloServlet/HelloServlet type Status report message /HelloServlet/HelloServlet

tomcat4 - 3 of 4 sites work, 4th gives only 404

2004-08-25 Thread Techs
I have tomcat setup and working fine for 3 sites, but the 4th only shows the apache-tomcat 404 page for every jsp page. I have compared the server.xml setup for all 4 sites and they are identical, except for the path, which is correct. I have even tried re ordering the host definitions within

RE: Alternative causes of msg 404 "resource not avaialble"?

2004-08-18 Thread Shapira, Yoav
Hi, >dir = /export/home/tomcat/jakarta-tomcat-4.1.12/webapps/SerialsAnalysis/ >Init Error Name jdbc is not bound in this Context >... >So the reason the servlet class was not found was that it was never >initialized. Next question, what does it mean that jdbc is not bound? It means a configurat

Re: Alternative causes of msg 404 "resource not avaialble"?

2004-08-18 Thread Jeffrey Barnett
te: I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding and tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step

RE: Alternative causes of msg 404 "resource not avaialble"?

2004-08-18 Thread Shapira, Yoav
48 AM >To: Tomcat Users List >Subject: Re: Alternative causes of msg 404 "resource not avaialble"? > >Yes to both no luck. I'm thinking that somehow WEB-INF/classes is >not getting into the CLASSPATH. Is there a way to check this at run time? > >Dennis Dai wrote:

Re: Alternative causes of msg 404 "resource not avaialble"?

2004-08-18 Thread Jeffrey Barnett
when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Alternative causes of msg 404 "resource not avaialble"?

2004-08-17 Thread Dennis Dai
WEB-INF/classes. and added the corresponding and tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? -- Dennis Dai [EMAIL PROTECTED

Re: Alternative causes of msg 404 "resource not avaialble"?

2004-08-17 Thread Jeffrey Barnett
redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Alternative causes of msg 404 "resource not avaialble"?

2004-08-17 Thread Jeffrey Barnett
PS: Server is 4.1.12 Jeffrey Barnett wrote: I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding and tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there

Alternative causes of msg 404 "resource not avaialble"?

2004-08-17 Thread Jeffrey Barnett
I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding and tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I

RE: 404 page's characters are not displayed correctly.

2004-08-09 Thread Shapira, Yoav
Hi, Ahh, good, I didn't remember if I'd applied that patch to CVS HEAD or not. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Chris [mailto:[EMAIL PROTECTED] >Sent: Saturday, August 07, 2004 2:41 PM >To: Tomcat Users List >Subject: Re:

Re: 404 page's characters are not displayed correctly.

2004-08-07 Thread Chris
I 'v downloaded the latest nightly build version , the problem has been fixed :) http://issues.apache.org/bugzilla/show_bug.cgi?id=28875 - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday,

404 page's characters are not displayed correctly.

2004-08-07 Thread Chris
Howdy, I am using TC 5.0.27 under win2k pro Japanese version, When my IE request a web page that does not exist, the 404 page's characters are jumbled. I 'v seeking solutions for a long time and finally turn to this mailing list. Would anyone give me a hint? BTW, TC 4.1.x does no

RE: How to disable CGI's 404 error

2004-07-29 Thread Shapira, Yoav
2004 9:29 AM >To: Tomcat Users List >Subject: Re: How to disable CGI's 404 error > >Yes, that did the trick. > >I still wonder why I'm in the development state, after setting >web.xml the jsp servlet with development to false. Is this a compiled >in option for the CGI

Re: How to disable CGI's 404 error

2004-07-29 Thread tomcat-users
wrote: > > Hola, > The normal 404 error page doesn't have that information, so I'm guessing > you're seeing the CGI servlet's more detailed error page. That page was > created to assist developers in debugging CGI problems, and you're right > to not want to s

RE: How to disable CGI's 404 error

2004-07-29 Thread Shapira, Yoav
Hola, The normal 404 error page doesn't have that information, so I'm guessing you're seeing the CGI servlet's more detailed error page. That page was created to assist developers in debugging CGI problems, and you're right to not want to show it to the world. C

How to disable CGI's 404 error

2004-07-29 Thread tomcat-users
Hello, We have a per user tomcat4 installation with Proxy enabled. I've configured tomcat4 to serve CGI files and it works fine for that user. However there's one problem. When I enter an non-existing URL under the cgi-bin/ path, I get a html source of a "CGI script not found or not specified" err

Re: Apache 2 + mod_jk2 404 handling

2004-07-22 Thread QM
On Wed, Jul 21, 2004 at 11:32:12PM -0700, Nerius Landys wrote: : One of the reasons I want this is for Apache to : spit back Apache-configured 404 messages instead of spitting back : Tomcat-produced 404 messages when requests for non-existant .jsp URLs are : invoked. A workaround would be to

Re: Apache 2 + mod_jk2 404 handling

2004-07-22 Thread Nerius Landys
s of "Options Indexes", just sends the request off to mod_jk2, hoping that it could determine the existance of index.jsp. Tomcat reports a 404 not found, and so Apache spits that back instead of displaying the directory index. By the way I actually like mod_jk version 1.x bette

Apache 2 + mod_jk2 404 handling

2004-07-21 Thread Nerius Landys
f the .jsp file being asked for exists. One of the reasons I want this is for Apache to spit back Apache-configured 404 messages instead of spitting back Tomcat-produced 404 messages when requests for non-existant .jsp URLs are invoked. In a nutshell, my httpd.conf and workers2.properties

RE: simple HelloWorld example -> 404

2004-07-20 Thread Shapira, Yoav
;Subject: Re: simple HelloWorld example -> 404 > >From: "Scott D. Anderson" <[EMAIL PROTECTED]> >> when I click on the link to "servlet/HelloWorld" I get a 404. > >Examples with /servlet/ in the URL usually depend upon the Invoker Servlet >being enable

Re: simple HelloWorld example -> 404

2004-07-19 Thread Wendy Smoak
From: "Scott D. Anderson" <[EMAIL PROTECTED]> > when I click on the link to "servlet/HelloWorld" I get a 404. Examples with /servlet/ in the URL usually depend upon the Invoker Servlet being enabled. It is now disabled by default, and although it's more frustra

Re: simple HelloWorld example -> 404

2004-07-19 Thread Schalk Neethling
I've eliminated the parsing errors for the web.xml file. I'm able to visit the index.html file, but when I click on the link to "servlet/HelloWorld" I get a 404. Note that the web.xml.txt file says that I should be able to execute my servlet just by accessing localhost:8080/foo/se

simple HelloWorld example -> 404

2004-07-19 Thread Scott D. Anderson
under "foo" that has a hyperref to "servlet/HelloWorld" 8. restarted Tomcat I checked the log files and I've eliminated the parsing errors for the web.xml file. I'm able to visit the index.html file, but when I click on the link to "servlet/HelloWorld" I

RE: How to get the offending uri when handling a 404 error?

2004-06-03 Thread Shapira, Yoav
Hi, >-Original Message- >From: Ariel Valentin [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 02, 2004 10:19 PM >To: [EMAIL PROTECTED] >Subject: RE: How to get the offending uri when handling a 404 error? > >I believe the ErrorData class only holds 500 errors. W

RE: How to get the offending uri when handling a 404 error?

2004-06-02 Thread Ariel Valentin
I believe the ErrorData class only holds 500 errors. To get the 404 url use the getRequestURL method of HttpServletRequest: request.getRequestURL() That returns a string representation of the URL that generated the request. Your might also consider setting up a filter that recognizes and logs

Re: 404 Error when accessing pre-compiled JSPs

2004-06-02 Thread Jason Palmatier
etc.) and then merge this into my > existing > web.xml file. > > 4. I then remove all my .jsp files, wipe out > everything under my work/Standalone/localhost > directory, and restart Tomcat. > > When I try to access my first page > (http://myserver:8080/pt/logon.jsp) I g

404 Error when accessing pre-compiled JSPs

2004-06-02 Thread Jason Palmatier
ocalhost directory, and restart Tomcat. When I try to access my first page (http://myserver:8080/pt/logon.jsp) I get a 404: Requested resource is not available. Here are a few things I've noticed and have questions about: 1. In my servlet declaration statement can I name my servlet the s

RE: How to get the offending uri when handling a 404 error?

2004-06-02 Thread Mike Curwen
> Sent: Wednesday, June 02, 2004 7:50 AM > To: Tomcat Users List > Subject: RE: How to get the offending uri when handling a 404 error? > > > > Hi, > Does your 404.jsp have the isErrorPage directive set to true? > > Yoav Shapira > Millennium Research Informatics >

RE: How to get the offending uri when handling a 404 error?

2004-06-02 Thread Shapira, Yoav
Hi, Does your 404.jsp have the isErrorPage directive set to true? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Joseph Shraibman [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 01, 2004 7:57 PM >To: [EMAIL PROTECTED] >Subject: How to get the off

How to get the offending uri when handling a 404 error?

2004-06-01 Thread Joseph Shraibman
I put this in my web.xml: 404 /404.jsp ... and this in 404.jsp: ErrorData ed = pageContext.getErrorData(); if (ed != null) url = ed.getRequestURI() ; but it throws: StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException

RE: Tomcat/Web application conf: status code 404 versus status code 302 + 200

2004-04-09 Thread Farid C
Good evening I want that it serve the /index.jsp file when a page is not found but as I described (see below) I need a 404 status code in the http response header. thank you for any advise F --- Daniel Huang <[EMAIL PROTECTED]> a écrit : > If you don't want tomcat to serve y

RE: Tomcat/Web application conf: status code 404 versus status code 302 + 200

2004-04-09 Thread Daniel Huang
If you don't want tomcat to serve your /index.jsp when 404 is encountered, just remove the config from your web.xml. Is this what you are asking? Not sure I got your question right. Regards, Daniel -Original Message- From: Farid C [mailto:[EMAIL PROTECTED] Sent: Friday, April 09,

Tomcat/Web application conf: status code 404 versus status code 302 + 200

2004-04-09 Thread Farid C
Good Morning We use Tomcat 5.0.18 with 2 instances: A) For the both instances, we catch the 404 status code returned in the http response to display an index page. file web.xml: 404 /index.jsp B) If a web browser asks a non existing url, as expected the 2 tomcat instances return the

nativeDispatch SEVERE error with apache ErrorDocument on 404 to a servlet

2004-04-07 Thread Daniel Gibby
k2 tomcat4.1.27 In apache I have ErrorDocument directives that send 404 errors to a servlet. This was supposed to be setup so that I could forward people who make invalid requests to a valid page. Also I could send errors to a log, and give people a nice looking page rather than apache's

RE: Tomcat 4.1Configuration <404 error>

2004-04-01 Thread Taj
Subject: Re: Tomcat 4.1Configuration <404 error> On Thu, Apr 01, 2004 at 11:26:54PM +0530, Taj wrote: : : : GetInput : GetInput : : : Even after all this I get the 404 error: the required source was not found. Which JDK are you using? Ar

Re: Tomcat 4.1Configuration <404 error>

2004-04-01 Thread QM
On Thu, Apr 01, 2004 at 11:26:54PM +0530, Taj wrote: : : : GetInput : GetInput : : : Even after all this I get the 404 error: the required source was not found. Which JDK are you using? Are your classes are really called "GetInput

Tomcat 4.1Configuration <404 error>

2004-04-01 Thread Taj
: I have also added to the environment variables of my OS, the following: CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1 TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1 But to no difference Even after all this I get the 404 error: the required source was not found. I would

Re: HTTP Status 404 -- Please Help

2004-03-24 Thread Chan Ho
thx very much, it works now. I put the To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 9:05 PM Subject: Re: HTTP Status 404 -- Please Help > The path "" is IMHO correct. The context below should work. > > Anyway, to fi

Re: HTTP Status 404 -- Please Help

2004-03-24 Thread staf wagemakers
8080/test.jsp do you still get the error 404 page? If it doesn't work check your server.xml the . There is a example line root context line in the default server.xml (search ROOT), uncomment it, update the docbase to your apache's docroot and restart tomcat. Hope this helps, -- Staf Wa

RE: HTTP Status 404 -- Please Help

2004-03-24 Thread Adam Fowler
That path should actually have your context path in it. I.e. "/" not "" Adam. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 11:36 To: Tomcat Users List Subject: Re: HTTP Status 404 -- Please Help I have add the line t

  1   2   3   4   5   6   7   >