AW: web.xml upgrading 3.1 - 3.2.2
Hi John, the web.xml in the conf dir is not processed anymore since tomcat 3.2. Move your changes from that web.xml in conf to the web.xml in the web-app dir. The it should work. We needed very much time to figure this out and don't know if this change was offically repoerted. Kind regards Guido -Ursprüngliche Nachricht- Von: John Gentilin [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 17. Juli 2001 07:17 An: Apache TomCat Project Betreff: web.xml upgrading 3.1 - 3.2.2 I am trying to upgrade my 3.1 install to 3.2 and I am using the web.xml file in the conf directory for some special mappings so Tomcat works in my development enviorment. After installing the new version, it does not seem that Tomcat picks up my servlet mappings. The classes are part of the system class path so I should not have a visibility problem except for maybe a permissions problem and is does not seem like Tomcat is even recognizing the URL. Can anyone help with the problem, below is my web.xml changes. Thanks John G servlet servlet-name cmd-mgr /servlet-name servlet-class com.smart911.gca.CmdMgr /servlet-class /servlet servlet-mapping servlet-name cmd-mgr /servlet-name url-pattern /cmd/* /url-pattern /servlet-mapping --- This message is intended for the adressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
AW: user admin
Have a look at conf/tomcat-users.xml Kind regrads Guido -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 17. Juli 2001 09:48 An: [EMAIL PROTECTED] Betreff: user admin Which is the password and the user default for Tomcat admin? How can I Find it and replace? --- This message is intended for the adressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
AW: Images are not coming !
Please note that filename are casesensitive with tomcat. Kind regards Guido -Ursprüngliche Nachricht- Von: Paul, Samit (CORP, GEITC) [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 17. Juli 2001 08:44 An: [EMAIL PROTECTED] Betreff: Images are not coming ! I've installed tomcat3.2. My application is residing on webapps/forSahji/ I've also updated this path in the server.xml file within the context tag. The images used in the application(JSP pages) are in webapps/forShaji/images. But except two images in the top and one as background I'm not getting any other images. Is this is a problem related to WAR file? right now I'm not having any WAR file for this architecture. Also I'd like to know how to create WAR file. Thanks in advance! - Samit --- This message is intended for the adressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
Problem changing default web.xml : conf/web.xml is not processed
Hi there, I have a problem changing the web.xml in the conf dir (conf/web.xml). I wanted to configure some central stuff there and wondered why it isn't working. Then I placed a wrong tag with no closing tag into the web.xml. The sax-parser must throw an exception with this file. But nothing happened. I tested the same wrong tag in an webapps web.xml file. There I got the exception. My conclusion is now, that the default web.xml is not proccessed! I wonder why, because the server.xml file is in the same directory. If server.xml is found by tomcat, why not the default web.xml. I can post a log-trace if you are intereseted, but I don't see any informative help in it. Be method opening the default web.xml does not log anything. Any comments, how I can make tomcat reading and processing the default web.xml are welcome. Kind regards Guido --- This message is intended for the adressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
AW: http errors
Hi Tim, I tried the stuff you described, but had not success with it. I placed the error-page item in both web.xml files, but nothing changed. In addition I removed the login-config from the web-app web.xml file and placed that section into the default web.xml. The result was, that the login-config seemed to be lost. So what's wrong? I use Tomcat 3.2.2. It seems to me, that Tomcat does not implement the specification! Kind regards Guido -Ursprüngliche Nachricht- Von: Hughes, Tim [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 4. Juli 2001 09:39 An: '[EMAIL PROTECTED]' Betreff: RE: http errors Hi, You will find a full copy of the **default** web.xml in TOMCAT_HOME/conf/. What is the default web.xml -- Extract from the user guide (which you will find at TOMCAT_HOME\doc\uguide\tomcat_ug.html: recommended reading) [A detailed description of web.xml and the web application structure (including directory structure and configuration) is available in chapters 9, 10 and 14 of the http://java.sun.com/products/servlet/ Servlet API Spec and we are not going to write about it. There is however a small Tomcat related feature that is related to web.xml. Tomcat lets the user define defaultw eb.xml values for all context by putting a default web.xml file in the conf directory. When constructing a new Context, Tomcat uses the default web.xml file as the base configuration and the application specific web.xml (the one located in the application's WEB-INF/web.xml), only overwrite these defaults.] So if you want the error pages to apply to all webapps then you put the error page tags in the default web.xml like this: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- IMPORTANT: all the tags that were already in the default web.xml file should remain in the file -- error-page exception-typejavax.servlet.TryagainException/exception-type location/errors/TryAgain.html/location /error-page error-page error-code503/error-code location/errors/TryAgain.html/location /error-page /web-app (I assume that you have renamed the directories and files accordingly: errors directory and TryAgain.html file are only examples). If you only want the error pages to apply to a particular webapp then you should create a web.xml file that you place in TOMCAT_HOME/webapps/yourWebApp/WEB-INF. This file should look like this: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app error-page exception-typejavax.servlet.TryagainException/exception-type location/errors/TryAgain.html/location /error-page error-page error-code503/error-code location/errors/TryAgain.html/location /error-page /web-app I hope this works. Tim Hughes -Original Message- From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]] Sent: 4. juli 2001 02:25 To: [EMAIL PROTECTED] Subject: Re: http errors it didn´t work...could you please give a complete web.xml? and where should I put this file? in %TOMCAT_HOME%/conf or somewhere else? I´m using tomcat 3.2.2 and win2k, I would like any help you could provide, because I just started working with tomcat. thanks, Francisco [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Original Message - From: Hughes, mailto:[EMAIL PROTECTED] Tim To: '[EMAIL PROTECTED]' mailto:'[EMAIL PROTECTED]' Sent: Tuesday, July 03, 2001 4:29 AM Subject: RE: http errors Hi, Using error-page elements in the web.xml, you can program web applications to handle HTTP errors and exceptions. The deployment description below makes the container send the /errors/TryAgain.html file if either a TryAgainExeption or the HttpServletResponse.SC_SERVER_UNAVAILABLE error code occurs: web-app !-- Servlet definitions -- error-page exception-typejavax.servlet.TryagainException/exception-type location/errors/TryAgain.html/location /error-page error-page error-code503/error-code location/errors/TryAgain.html/location /error-page I hope this helps. Tim Hughes -Original Message- From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]] Sent: 3. juli 2001 02:15 To: Lista tomcat User Subject: http errors Anyone know if I can set tomcat to use a custom page for http errors, like 500, instead of it´s default??? please, help me, i´ve tried a lot of things and it didn´t help. []´s Francisco This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read,
Configuration of default error pages (Howto?)
Hi there, is there a possibility to configure TOMCAT 3.2 in a way that the default error pages look different than they look in the standard configuration? I would like to avoid displaying stack traces and display some useful information for end users, like email and phone number. Does anyone has a guess how to do that? Kind regards Guido --- This message is intended for the adressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.