Re: http errors

2001-07-05 Thread Francisco Areas Guimaraes



I tried what you said, put the error-page 
in the web.xml in the WEB-INF inside my app(webapps/test/WEB-INF) and in the 
web.xml in the conf directory( tomcat/conf). I´m using tomcat 3.2.1 and win2000, 
i tried in tomcat 3.3 and it didn´t workout either, what could be 
wrong?

  - Original Message - 
  From: 
  Hughes, Tim 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 04, 2001 4:39 
  AM
  Subject: 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 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.xmlfile 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:25To: 
[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]

  - Original Message - 
  From: 
  Hughes, 
  Tim 
  To: '[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:15To: Lista tomcat UserSubject: http 
errors
Anyone know if I can set tomcat to use a 
custom page for http errors, like 500, instead of it´s 
default???

Re: http errors

2001-07-03 Thread Francisco Areas Guimaraes



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]

  - Original Message - 
  From: 
  Hughes, Tim 
  
  To: '[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:15To: 
Lista tomcat UserSubject: 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
FranciscoThis 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, print, retain, copy, 
  disseminate, distribute, or use this message or any part thereof. If you 
  receive this message in error, please notify the sender immediately and delete 
  all copies of this message.


Re: need help for rmi calls from tomcat 3.2.1

2001-07-02 Thread Francisco Areas Guimaraes



Have you copied to "/webapps/ROOT" ?

Francisco

  - Original Message - 
  From: 
  Shyam 
  Sarkar 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 6:43 PM
  Subject: need help for rmi calls from 
  tomcat 3.2.1
  
  I installed 
  rmi example problem (Helloworld) in a directory called 
  getStartunderC:\rmi\rmi. I can start the server and the client 
  applet as described inthe trail.Next I started tomcat server and 
  copied getStart under webapp directory.I started rmiregistry and then the 
  server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the 
  resultmessage is 'blank' rather than 'Hello World'. I added the 
  wrapper classpathetc.Any suggestions what is 
  wrong.Regards.[EMAIL PROTECTED]


Re: need help for rmi calls from tomcat 3.2.1

2001-07-02 Thread Francisco Areas Guimaraes



Assumming you installed tomcat in "c:\tomcat", you 
have to copy the "getStart" directory to "c:\tomcat\webapps\ROOT", so it would 
end up like this "c:\tomcat\webapps\ROOT\getStart". Now your url will 
work.

You just have to think that 
"c:\tomcat\webapps\ROOT" is the physical address of "localhost:8080", got 
it?

[]´s
Francisco

  - Original Message - 
  From: 
  Shyam 
  Sarkar 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 7:02 PM
  Subject: Re: need help for rmi calls from 
  tomcat 3.2.1
  
  No, I copied to a separate directory called 
  getStart and accesing hello.html in that 
  directory using http://loalhost:8080/getStart/hello.html.
  
  Any suggestions ?
  
  Thanks.
  [EMAIL PROTECTED]
  
  
- Original Message - 
From: 
Francisco Areas 
Guimaraes 
To: [EMAIL PROTECTED] 

Sent: Monday, July 02, 2001 3:00 
PM
Subject: Re: need help for rmi calls 
from tomcat 3.2.1

Have you copied to "/webapps/ROOT" 
?

Francisco

  - Original Message - 
  From: 
  Shyam 
  Sarkar 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 6:43 
  PM
  Subject: need help for rmi calls from 
  tomcat 3.2.1
  
  I 
  installed rmi example problem (Helloworld) in a directory called 
  getStartunderC:\rmi\rmi. I can start the server and the 
  client applet as described inthe trail.Next I started tomcat 
  server and copied getStart under webapp directory.I started 
  rmiregistry and then the server.I tried to open hello.html from a 
  browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the 
  resultmessage is 'blank' rather than 'Hello World'. I added the 
  wrapper classpathetc.Any suggestions what is 
  wrong.Regards.[EMAIL PROTECTED]


http errors

2001-07-02 Thread Francisco Areas Guimaraes



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


tomcat + IIS 5

2001-06-07 Thread Francisco Areas Guimaraes



I have win2k, tomcat 3.2, and IIS5. I have 
done everything that the "IIS-tomcat-Howto" says, including the "Filter DLLs" 
option, got the "green arrow" in the IIS ISAPI filters, but when I open a page, 
it simply doesn´t compile the code.
Here´s what has been writen in the log 
file:

[jk_isapi_plugin.c (408)]: HttpFilterProc 
started[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/jakarta/teste.jsp[jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::map_uri_to_worker[jk_uri_worker_map.c (435)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a 
match[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/teste.jsp] is not a 
servlet url[jk_isapi_plugin.c (461)]: HttpFilterProc check if 
[/jakarta/teste.jsp] is points to the web-inf directory
Anyone have a clue on what´s happening? Please, 
help me, because i´m tottaly clueless...

thanks,
Francisco
[EMAIL PROTECTED]


Re: Tomcat IP change (sorry about wrong Subject)

2001-06-07 Thread Francisco Areas Guimaraes

Hi Matthew,
Do managed to do an error handling like IIS outside of IIS? Sorry to
intrude, but i´ve looked almost everywhere about this but couldn´t find
it...

thanks,
Francisco
[EMAIL PROTECTED]


- Original Message -
From: Winer, Matthew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 5:24 PM
Subject: Tomcat IP change (sorry about wrong Subject)


 I am sorry about my last post with the wrong subject.

 OK well nevermind my last post.  I have given up with IIS.  I have no use
 for it.  (I hope)  I got everything work except...

 I am trying to get tomcat to respond to a different IP other then
localhost
 or the localhost address.  I know this can be done in IIS but I am looking
 for a way to get by that.

 Thanks
 Matt Winer





Re: Tomcat/JSP Question

2001-06-01 Thread Francisco Areas Guimaraes

I could be wrong, but 'int' is a primitive type, I don´t know if it extends
Object, have you tried 'Integer my_object = EX.myObject' ?

Francisco

- Original Message -
From: Mike Alba [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 01, 2001 7:17 PM
Subject: Re: Tomcat/JSP Question


 Actually I was wondering if you can do this

 Class Example
 {

   public Object myObject;

   public Example()
   {
  this.myObject = new myObject();
   } // end constructor

 }

 then acess it via my JSP

 jsp:useBean id = EX class = Example scope = session /
 % int my_object = EX.myObject %

 It says that this doesnt exist? Is there no way
 to do this?

 Thanks so much for your help!

 Mike

 - Original Message -
 From: Purcell, Scott [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 01, 2001 12:47 PM
 Subject: RE: Tomcat/JSP Question


  I think you may have the syntax for
jsp:get_property
jsp:set_property
  wrong.
  It is jsp:getProperty()
  and jsp:setProperty()
 
  Here is a textbook example from Fields and Kolbs book. Hope it helps
  #JSP
 
  % page import = com.taglib.wdjsp.components.CompoundIntrestBean %
  jsp:useBean id=calculator class=CompoundInterestBean /
  jsp:setProperty name=calculator property=principal /
  /jsp:useBean
  jsp:getProperty name=calculator property=principal /
 
  Hope that helps,
  Scott
 
 
 
 
  -Original Message-
  From: Mike Alba [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 01, 2001 2:47 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat/JSP Question
 
 
  Hi,
 
Forgive me for the beginner question but I am trying to
  instantiate a class for a JSP.
  I am using:
  jsp:useBean id = EX class = Example scope = session /
 
  Thus I am under the assumption that my Example class is being
  instantiated and the constructor is called, is this incorrect?
  Basically I am trying to instantiate a class for a session and
  was wondering if this is the way to do it.
  And so if it is can I access class objects, I am assuming
  I am supposed to use
jsp:get_property
jsp:set_property
 
  rather then EX.counter
  where counter is a property of the Example class
 
  Once again sorry for the newbie question
  and thanks for any help you can give!!
 
  Mike
 






Error Handling

2001-06-01 Thread Francisco Areas Guimaraes



Is there anyway to show a cutomized page when an 
internal error occurs, instead of the tomcat´s default?

ps. I´m not talking about exception 
handling...

thanks,

Francisco
[EMAIL PROTECTED]