RE: HttpSessionListener: Negative session count

2003-08-14 Thread Kevin Ritter
What would be the advantage of logging the sessionDestroyed event just to be
safe. I'm currently solving problems with counting the number of active
sessions and would like to know about the strategy of doing so.

Thanks in advance,
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 9:15 AM
To: Tomcat Users List
Subject: RE: HttpSessionListener: Negative session count


Howdy,
The simple check you had before (if session count  1 don't decrement)
is not a bad idea.  You might want to log the sessionDestroyed event
just to be safe.

In the 2.4 servlet spec, you will have other options (notifications)
that apply to this scenario I think.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:14 AM
To: Tomcat Users List
Subject: Re: HttpSessionListener: Negative session count

Hi Yoav

That could be the problem as well. So if the server is restarted my
session counter variable is set to 0, but there might still be 30
active
sessions.

I didn't think of that problem, because I thought that the sessions
would be invalidated when the server is restarted.

Has anyone a good solution to this problem? Or should I just prevent
the
session counter variable from becoming negative and after a while
(session timeout for all remaining sessions) the counter will be
working
correctly again?

Cheers,
   Christian


Shapira, Yoav wrote:

 Howdy,
 I would mention one other possibility, unrelated to synchronization,
 which may cause this behavior.

 If your session listener simply increments a counter on every
 sessionCreated() and decrements the counter on every
sessionDestroyed(),
 it is vulnerable to this behavior.

 When the server is restarted, if there are active sessions they are
 persisted by default.  Then the server comes back up, and all these
 sessions are active, without a session created event, so your
listener
 has a counter value of 0, but there are actually 0 active sessions.
 When these are destroyed as usual, sessionDestroyed() will be called
for
 them, decrementing your counter and resulting in a negative value.

 Yoav Shapira
 Millennium ChemInformatics



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax.xml.transform.Transformer

2003-07-22 Thread Kevin Ritter
Can you send the top 100 or so lines of your XML that you are trying to
transform.

Thanks
Kevin Ritter

-Original Message-
From: Daniel Herbison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: javax.xml.transform.Transformer

I'm using this code to transform xml using and xsl file:
 
   TransformerFactory tFactory = TransformerFactory.newInstance();
   Transformer transformer = tFactory.newTransformer(xsl);
   transformer.setOutputProperty(omit-xml-declaration,yes);
   transformer.transform(new StreamSource(xml),sr);

When I run the code in a Tomcat standalone installation everything works
great!  However when I run the code under tomcat from Apache using the
mod_jk connector I get an error (below) on the
tFactory.newTransformer(xsl) line.  Done anyone have any idea what is
happening?
 
org.xml.sax.SAXParseException: White spaces are required between publicId
and systemId.

at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:118
9)

at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:934)

at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:750)

at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124)

at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax.xml.transform.Transformer

2003-07-22 Thread Kevin Ritter
I transformed your xml using your xsl and it yields invalid xml output
because there is no top level element that encapsulates the option elements.
Could this be the problem?? Also, suggest removing the:
   transformer.setOutputProperty(omit-xml-declaration,yes);
line and put:
   ?xml version=1.0?
declaration in the xml file and try it to see if the problem goes away.

Hope this helps.

Kevin Ritter

-Original Message-
From: Daniel Herbison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 10:58 AM
To: 'Tomcat Users List'
Subject: RE: javax.xml.transform.Transformer

I don't think it is the xml because the error is occurring in the
newTransformer method and the xml has not been seen yet.  There is something
in the xsl file that will not allow apache/tomcat to resolve an url, I
think? In both cases the xml looks exactly the same (per diff on unix).

Here is the xsl:

?xml version=1.0? 
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xsl:variable name=doExcel select=//PARAMS/EXCEL/
xsl:template match=/
   xsl:apply-templates select=/DATASET/
/xsl:template

xsl:template match=DATASET
OPTION VALUE=' ' /OPTION 
xsl:apply-templates select=REC/
/xsl:template

xsl:template match=REC
OPTION
xsl:attribute name='VALUE'xsl:value-of
select='LID'//xsl:attribute
xsl:if test=LD=//PARAMS/LINK
xsl:attribute name='SELECTED'1/xsl:attribute
/xsl:if
xsl:value-of select=LD/
/OPTION 
/xsl:template

/xsl:stylesheet

Here is the top few lines of the xml:

DATASET
PARAMS
JAVASCRIPTjavascripts/coi_debug.js/JAVASCRIPT
JAVASCRIPTjavascripts/coi_calendarList.js/JAVASCRIPT
SUMMARYfalse/SUMMARY
CSSstyles/coi.css/CSS
CSSstyles/ipadmin.css/CSS
TIMESLICE/
GETALLtrue/GETALL
EXCELfalse/EXCEL
/PARAMS
STYLES
STYLE
SRCstyles/coi.css/SRC
/STYLE
STYLE
SRCstyles/ipadmin.css/SRC
/STYLE
/STYLES
REC
LID75/LID
LNBeijing DMZ (vsupnip1:sf0_sf1_vi0 )/LN
LDBeijing-DMZ/LD
NIKSUN1/NIKSUN
FLPAC/BEI/BEIJING/FL
TLPAC/BEI/BEIJING/TL
/REC

-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:37 AM
To: 'Tomcat Users List'
Subject: RE: javax.xml.transform.Transformer


Can you send the top 100 or so lines of your XML that you are trying to
transform.

Thanks
Kevin Ritter

-Original Message-
From: Daniel Herbison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: javax.xml.transform.Transformer

I'm using this code to transform xml using and xsl file:
 
   TransformerFactory tFactory = TransformerFactory.newInstance();
   Transformer transformer = tFactory.newTransformer(xsl);
   transformer.setOutputProperty(omit-xml-declaration,yes);
   transformer.transform(new StreamSource(xml),sr);

When I run the code in a Tomcat standalone installation everything works
great!  However when I run the code under tomcat from Apache using the
mod_jk connector I get an error (below) on the
tFactory.newTransformer(xsl) line.  Done anyone have any idea what is
happening?
 
org.xml.sax.SAXParseException: White spaces are required between publicId
and systemId.

at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:118
9)

at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:934)

at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:750)

at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124)

at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax.xml.transform.Transformer

2003-07-22 Thread Kevin Ritter
That's what I found to be the case otherwise it would have never validated.
Remember, I transformed his xml using his xsl and everything worked fine
except the xml output was not valid/well-formed. Could there be issues with
ignoring whitespace when used in conjunction with Apache via default output
properties that are specified somewhere?

Kevin Ritter

-Original Message-
From: Daniel Herbison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 1:45 PM
To: 'Tomcat Users List'
Subject: RE: javax.xml.transform.Transformer

I'm sorry, there is one space character.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 1:12 PM
To: Tomcat Users List
Subject: Re: javax.xml.transform.Transformer



So you're saying that there is nothing between  sform and vers ??  Not 
a linefeed, no whitespace at all? If that's the case, I'd say that's 
your problem right there.

John

Daniel Herbison wrote:

 No spaces.
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 22, 2003 11:24 AM
 To: Tomcat Users List
 Subject: Re: javax.xml.transform.Transformer
 
 
 
 publicId and systemId are in the doctype declaration, aren't they?  If 
 that's the case, the error message is simply saying that some whitespace 
 is required between them.
 
 Is there anything between http://www.w3.org/1999/XSL/Transform; and 
 version=1.0?  It's hard to tell with the line wrapping from the post 
 to the list.
 
 John
 
 Daniel Herbison wrote:
 
 
I don't think it is the xml because the error is occurring in the
newTransformer method and the xml has not been seen yet.  There is
 
 something
 
in the xsl file that will not allow apache/tomcat to resolve an url, I
think? In both cases the xml looks exactly the same (per diff on unix).

Here is the xsl:

?xml version=1.0? 
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xsl:variable name=doExcel select=//PARAMS/EXCEL/
xsl:template match=/
   xsl:apply-templates select=/DATASET/
/xsl:template

xsl:template match=DATASET
OPTION VALUE=' ' /OPTION 
xsl:apply-templates select=REC/
/xsl:template

xsl:template match=REC
OPTION
xsl:attribute name='VALUE'xsl:value-of
select='LID'//xsl:attribute
xsl:if test=LD=//PARAMS/LINK
xsl:attribute name='SELECTED'1/xsl:attribute
/xsl:if
xsl:value-of select=LD/
/OPTION 
/xsl:template

/xsl:stylesheet

Here is the top few lines of the xml:

DATASET
PARAMS
JAVASCRIPTjavascripts/coi_debug.js/JAVASCRIPT
JAVASCRIPTjavascripts/coi_calendarList.js/JAVASCRIPT
SUMMARYfalse/SUMMARY
CSSstyles/coi.css/CSS
CSSstyles/ipadmin.css/CSS
TIMESLICE/
GETALLtrue/GETALL
EXCELfalse/EXCEL
/PARAMS
STYLES
STYLE
SRCstyles/coi.css/SRC
/STYLE
STYLE
SRCstyles/ipadmin.css/SRC
/STYLE
/STYLES
REC
LID75/LID
LNBeijing DMZ (vsupnip1:sf0_sf1_vi0 )/LN
LDBeijing-DMZ/LD
NIKSUN1/NIKSUN
FLPAC/BEI/BEIJING/FL
TLPAC/BEI/BEIJING/TL
/REC

-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:37 AM
To: 'Tomcat Users List'
Subject: RE: javax.xml.transform.Transformer


Can you send the top 100 or so lines of your XML that you are trying to
transform.

Thanks
Kevin Ritter

-Original Message-
From: Daniel Herbison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: javax.xml.transform.Transformer

I'm using this code to transform xml using and xsl file:
 
   TransformerFactory tFactory = TransformerFactory.newInstance();
   Transformer transformer = tFactory.newTransformer(xsl);
   transformer.setOutputProperty(omit-xml-declaration,yes);
   transformer.transform(new StreamSource(xml),sr);

When I run the code in a Tomcat standalone installation everything works
great!  However when I run the code under tomcat from Apache using the
mod_jk connector I get an error (below) on the
tFactory.newTransformer(xsl) line.  Done anyone have any idea what is
happening?
 
org.xml.sax.SAXParseException: White spaces are required between publicId
and systemId.

at

 

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:118
 
9)

at

 

org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
 
ctoryImpl.java:934)

at

 

org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
 
FactoryImpl.java:750)

at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124)

at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL

RE: How do I get the total number of users logged into my app

2003-07-21 Thread Kevin Ritter
I never thought about doing it this way. Great solution! I'll let you know
how it turns out.

With kind regards,
Kevin Ritter

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 9:57 PM
To: [EMAIL PROTECTED]
Subject: Re: How do I get the total number of users logged into my app

I'd go for something a little safer myself.  Declaire a HttpSessionListener
something like:

public class MyCounter implements HttpSessionListener {
private boolean registered = false;
private int sessionCount = 0;

public void sessionCreated(HttpSessionEvent ev) {
if(!registered) {
ServletContext context = ev.getSession().getServletContext();
context.setAttribute(com.myfirm.session.counter, this);
registered = true;
   }
   ++sessionCount;
   }
   public void sessionDestroyed(HttpSessionEvent ev) {
   --sessionCount;
   }
   public int getSessionCount() {
return sessionCount;
   }
}

Your servlet/jsp can then just get the attribute from the ServletContext,
and query the count.

Tim Funk [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 When you declare your webapp, it must be privledged. Look at the manager
 webapp declaration.

 -Tim

 Kevin Ritter wrote:
  Thanks for the quick response; however, when I do I get the following
error
 
  java.lang.SecurityException: Servlet of class
  org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
  loaded by this web application
 
  The url is http://localhost:8080/manager/sessions?path=/LMS
 
  Again, thanks in advance.
 
  Kevin Ritter
 
  -Original Message-
  From: Angus Mezick [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 2:12 PM
  To: Tomcat Users List
  Subject: RE: How do I get the total number of users logged into my app
 
  Look in the manager app.
 
 
 -Original Message-
 From: Kevin Ritter [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 3:17 PM
 To: 'Tomcat Users List'
 Subject: How do I get the total number of users logged into my app
 
 
 I would like to know if there is a parameter or class or JSP
 that I could
 use to return the total number of users/sessions that are
 using/logged into
 my application.
 
 Thank you in advance.
 
 Kevin Ritter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RES: Handling auth failure

2003-07-21 Thread Kevin Ritter
Hi Christian,

Here the web-app element that show where the error-page element can be
inserted:

!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-env-ref*, resource-ref*, security-constraint*, login-config?,
security-role*,
env-entry*, ejb-ref*, ejb-local-ref*)


Kevin Ritter


-Original Message-
From: Peter Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 21, 2003 8:55 AM
To: Tomcat Users List
Subject: Re: RES: Handling auth failure

Hi Christian,

Its after the welcome-list.  You can look at the dtd
(http://java.sun.com/dtd/web-app_2_3.dtd) for more info.

Peter
-- 
Peter Smith
Software Engineer
InfoNow Corporation

 From: Christian J. Dechery - ACCENTURE [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Date: Mon, 21 Jul 2003 10:50:02 -0300
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RES: Handling auth failure
 
 where exactly in web.xml does this error-page go?
 
 ___
 :: Christian J. Dechery
 :: Accenture do Brasil
 :: CHT - Solutions Operations
 :: [EMAIL PROTECTED]
 
 
 -Mensagem original-
 De: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
 Enviada em: segunda-feira, 21 de julho de 2003 10:41
 Para: Tomcat Users List
 Assunto: RE: Handling auth failure
 
 
 Add this to your web.xml and make a page called error.jsp .
 
 
 error-page
 error-code403/error-code
 location/error.jsp/location
 /error-page
 
 -Original Message-
 From: Christian J. Dechery - ACCENTURE
 [mailto:[EMAIL PROTECTED]
 Sent: 21. juli 2003 15:37
 To: Tomcat Users List (E-mail)
 Subject: Handling auth failure
 
 
 I have successfully implemented authentication in Tomcat, but
 I don't want
 that 403 screen to ever show up.
  
 Is that possible? I'd like that, for whatever reason, the
 login screen would
 always show indicating an authentication failure and
 requesting a new login.
 If that's not possible, how can I change that ugly default 403 screen?
  
 thanks
 
 ___
 :: Christian J. Dechery
 :: Accenture do Brasil
 :: CHT - Solutions Operations
 :: [EMAIL PROTECTED]
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I get the total number of users logged into my app

2003-07-18 Thread Kevin Ritter
I would like to know if there is a parameter or class or JSP that I could
use to return the total number of users/sessions that are using/logged into
my application.

Thank you in advance.

Kevin Ritter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I get the total number of users logged into my app

2003-07-18 Thread Kevin Ritter
Thanks for the quick response; however, when I do I get the following error

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application

The url is http://localhost:8080/manager/sessions?path=/LMS

Again, thanks in advance.

Kevin Ritter

-Original Message-
From: Angus Mezick [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 2:12 PM
To: Tomcat Users List
Subject: RE: How do I get the total number of users logged into my app

Look in the manager app.

 -Original Message-
 From: Kevin Ritter [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 18, 2003 3:17 PM
 To: 'Tomcat Users List'
 Subject: How do I get the total number of users logged into my app
 
 
 I would like to know if there is a parameter or class or JSP 
 that I could
 use to return the total number of users/sessions that are 
 using/logged into
 my application.
 
 Thank you in advance.
 
 Kevin Ritter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
I have spent roughly a day going through the Tomcat archives looking for a
solution to customizing an error page instead of displaying the default 401
or for that matter 403, or 404, or 500 error pages. I have modified my
web.xml file to contain the following: 

  error-page 
error-code401/error-code 
location/jcafe-error.jsp/location 
  /error-page 

I'm not getting any errors that would prevent Tomcat from starting. 

I've placed the jcafe-error.jsp (JSP containing the custom error 401 error
message) in the same directory that my index.jsp file resides in, which
kicks off the basic authentication; however, when I access my application
(e.g., index.jsp), I get the error page described in the jcafe-error.jsp
instead of the basic authentication login dialog. I've read some archive
traffic regarding this phenomena, but evidently it was a problem in Tomcat
4.0.1 and 4.0.2. I'm using Tomcat 4.0.3. So my question is this still a
problem (not supported due to bugs in 4.0.3) or am I doing something wrong.
Something that seems to be so easy turns out to be so hard so I'm assuming
I'm missing this up. Please help. 

Thank you in advance on the behalf of my manager who requested this silly
feature believing web users are all hopelessly lost and in need of
grammatically correct and informational error messages. 

With kind regards, 
Kevin Ritter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Good point--I've checked the log and I'm not seeing any errors--should I be
seeing errors?

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200
428

If I remove the error-page element from the web.xml file everything works
fine. I was hoping to use my own custom error page for 401 errors when a
user of my application forgets his userId/password or clicks Cancel form the
Authentication login dialog. Also, I have debug set at 99.

Again thank you in advance
Kevin 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:18 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

I'm not getting any errors that would prevent Tomcat from starting.

Are you getting any errors at all?  Specifically, is there really a 401
when people are trying to access index.jsp?  That would cause your
behavior.  Consult tomcat's access log (enable it if it's disabled, as
is the default).  Look for the response code when accessing index.jsp.

If you still can't see what's happening, enable debug=99 for your
host, context, engine, and post the logs.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Thanks for staying with me; however, after I deleted all temporary internet
files and repeated the test the only entry in the log is what I reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Okay here you go. I've also included the custom error page JSP.

Good luck.
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Sorry :)

*** INDEX.JSP START ***
%@ page language=java
 import=java.io.*, com.jcafeinc.xml.*
%
%@ include file=global-header.jsp %
%
application.setAttribute(imgLocation, /LMS/images/);
%
  html
head
  titleJCafe Learning Center/title
/head
frameset rows=172,* frameborder=no border=0 !-- 1st chg
rows=130, * 2nd chg rows=138,* for root-org.gif image--
  frame src=signature-header.jsp name=jcSignatureHeaderFrame
marginheight=0 
  marginwidth=0 scrolling=no
  !-- Got to get the current role and check to see if it is isAnyAdmin
--
% if (currentUser.isCurrentRoleRoot() || 
   currentUser.isCurrentRoleAdmin() ||
   currentUser.isCurrentRoleManager() )
   { 
  String adminBaseOU = currentUser.getManagerOrganization();
   %
  frame
src=plugin/control-panel/adminCatalog.jsp?currentOu=%=adminBaseOU%curren
tTab=ou name=jcHomePageFrame marginheight=0 
  marginwidth=0 scrollbars=yes scrolling=auto
% } else { %
  frame src=plugin/profile-manager/student-self-homepage.jsp
name=jcHomePageFrame marginheight=0 
  marginwidth=0 scrollbars=yes scrolling=auto
% } %
/frameset
  /html
*** INDEX.JSP END ***

*** JCAFE-ERROR.JSP START ***
%@ page language=java  
 info=JCafe Error Page isErrorPage=true %
%@ page import=java.io.* %
%--
session=false isThreadSafe=false
--%

html
  head
titleJCafe Error Page/title
meta content=
script language=javascript
/script
style
/style
  /head
  body
pbr/
  Your user ID or password are incorrect. br/
  Please try again or contact your system br/
  administrator or manager. 
  !--a href=admin/setup.jsp--!--/a--
/p
  /body
/html
*** JCAFE-ERROR.JSP START ***

Thanks!
Kevin


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 10:00 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
Attachments don't often come through -- I don't know if it's the
listserver or my company mail server.  You have to post them inline
(preferably trimming out anything nonessential to the problem).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:59 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Okay here you go. I've also included the custom error page JSP.

Good luck.
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors
when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient,
please
immediately delete this e-mail from your computer system and notify
the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail

Web.xml not found

2001-12-06 Thread Kevin Ritter

Greetings, 

I am getting this error  ContextConfig[]: Missing application web.xml,
using defaults only ...  Internal Error: File /WEB-INF/web.xml not found.

My WEB-INF directory name is all uppercase spelled actually the way I've
spelled it here. The web.xml file is a well-formed XML file. DO I have to
include the following DOCTYPE declaration or can I remove it:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

Any help would be appreciated.

Kevin Ritter

-Original Message-
From: Brian Elliott [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 06, 2001 7:17 AM
To: Tomcat Users List
Subject: Re: Can't find web.xml

Yes I did it things working. I think this fix was part of it - web-inf
was not all caps - WEB-INF.

thanks,

brian

Sriram Narayanan wrote:
 
 Hi,
 
 This is a blind shot, but have you checked that the WEB-INF name is in
capital ?
 
 And that the web.xml is a valid one ? TC 4 is stricter with this file.
 
 Sriram
 
 30/11/2001 5:27:01 PM, Brian Elliott [EMAIL PROTECTED] wrote:
 
 Brian Elliott wrote:
 
  I am trying to install Tomcat 4 with a content management system called
  Stellent. Stellent runs Tomcat as a service. But I am getting an error
  when I try to request a JSP page:
 
  Can't find WEB-INF/web.xml
 
 Here is more of the actual error message:
 
 11-29 16:48:52 StandardHost[localhost]: Installing web application at
 context path  from URL
 file:D:\Stellent\tomcat4\webapps\ROOT
 2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work
 directory
 D:\Stellent\tomcat4\work\localhost\_
 2001-11-29 16:48:52 StandardManager[]: Seeding random number generator
 class
 java.security.SecureRandom
 2001-11-29 16:48:52 StandardManager[]: Seeding of random number
 generator has been completed
 2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using
 defaults only
 2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet
 default
 2001-11-29 16:48:52 default: init
 2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet
 invoker
 2001-11-29 16:48:52 invoker: init
 2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for
 servlet jsp
 2001-11-29 16:48:52 jsp: init
 2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi
 2001-11-29 16:48:52 ssi: init
 2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found
 2001-11-29 16:48:52
 
 
 As for the logger, here is what I try - the catalina log works but the
 JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the
 following error:
 
 server.xml:
 
 !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true verbosityLevel = DEBUG/
 
   Logger name=JASPER_LOG verbosityLevel=WARNING
 timestamp=yes/
 
 
 error:
 
 ERROR reading d:\stellent\config\server.xml
 At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG
 verbosityLevel=WARNING
  timestamp=yes
 
 java.lang.NullPointerException
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
 at
 org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 
 --
 
 Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG
 error would be appreciated.
 
 Brian
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 _
 
 Do You Yahoo!?
 
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Brian Elliott
President  CTO
Unplugged Systems
[EMAIL PROTECTED]
http://www.unpluggedsystems.com
719.339.1204 (cell)
719.487.1437 (office)

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Can't find web.xml

2001-12-01 Thread Kevin Ritter

I'm also getting this error and have been trying to solve it all day. If you
find a solution, I would be very interested in hearing about it.

Kevin ritter

-Original Message-
From: Sriram Narayanan [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 01, 2001 8:09 AM
To: Tomcat Users List
Subject: Re: Can't find web.xml

Hi,

This is a blind shot, but have you checked that the WEB-INF name is in
capital ? 

And that the web.xml is a valid one ? TC 4 is stricter with this file.

Sriram

30/11/2001 5:27:01 PM, Brian Elliott [EMAIL PROTECTED] wrote:

Brian Elliott wrote:
 
 I am trying to install Tomcat 4 with a content management system called
 Stellent. Stellent runs Tomcat as a service. But I am getting an error
 when I try to request a JSP page:
 
 Can't find WEB-INF/web.xml

Here is more of the actual error message:

11-29 16:48:52 StandardHost[localhost]: Installing web application at
context path  from URL
file:D:\Stellent\tomcat4\webapps\ROOT
2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work
directory
D:\Stellent\tomcat4\work\localhost\_
2001-11-29 16:48:52 StandardManager[]: Seeding random number generator
class
java.security.SecureRandom
2001-11-29 16:48:52 StandardManager[]: Seeding of random number
generator has been completed
2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using
defaults only
2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet
default
2001-11-29 16:48:52 default: init
2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet
invoker
2001-11-29 16:48:52 invoker: init
2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for
servlet jsp
2001-11-29 16:48:52 jsp: init
2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi
2001-11-29 16:48:52 ssi: init
2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found
2001-11-29 16:48:52 


As for the logger, here is what I try - the catalina log works but the
JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the
following error:

server.xml:

!-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true verbosityLevel = DEBUG/
  
  Logger name=JASPER_LOG verbosityLevel=WARNING
timestamp=yes/


error:

ERROR reading d:\stellent\config\server.xml
At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG
verbosityLevel=WARNING
 timestamp=yes
 
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)

--

Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG
error would be appreciated.

Brian

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Logout with basic autorization

2001-11-15 Thread kevin ritter

Thank you for your quick response; however, I have a follow on question
regarding BASIC authentication and WebDAV. If I implement FORM based
authentication will I still be able to drag and drop folders using Slide's
WebDAV capabilities and perform File | Open | Open as Web Folder from
Internet Explorer. Exactly how will that work?

As always thanks in advance.
Kevin

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; kevin ritter
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:53 PM
Subject: Re: Logout with basic autorization




 On Wed, 14 Nov 2001, kevin ritter wrote:

  Date: Wed, 14 Nov 2001 18:41:01 -0600
  From: kevin ritter [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   kevin ritter [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Logout with basic autorization
 
  Can anyone one verify if this is really the case, that is, to logout
with
  BASIC authentication you have to close the browser window? This seems to
be
  a little goofy. Are there any work arounds?
 

 As far as I know, this is correct.  The problem is that when you are using
 BASIC authentication, the browser sends the credentials on every request,
 and I don't know of any way to tell it to stop doing so.

 If you use form-based login, invalidating the session is all that is
 required to log the user off.

  Thank you in advance. Peace
  Kevin Ritter

 Craig


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: session and authentication issues

2001-11-15 Thread kevin ritter

Hi I just asked this question yesterday. Search the archive for Logout with
basic autorization.

Mr Craig R. McClanahan responded as follows:

The problem is that when you are using
BASIC authentication, the browser sends the credentials on every request,
and I don't know of any way to tell it to stop doing so.

If you use form-based login, invalidating the session is all that is
required to log the user off.

We are currently working through this issue. I have posted a message asking
if we implement FORM-based authentication will we lose the ability to use
web folders.

Good luck--I'll watch for your emails.

Kevin

- Original Message -
From: Steve G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 9:25 AM
Subject: session and authentication issues


 I'm trying to use Basic authentication and session variables as a way of
 protecting my pages in all aspects. One problem arises when the user logs
in
 and then they hit the back button on the browser and try logging in again;
 the old session variable is there but in the end it creates a new one? I
 don't understand why this is happening.

 My other problem is that the code is returning a null value for
 req.getAuthType..y would this occur?

 Steve G
 Software Engineer


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Logout with basic autorization

2001-11-14 Thread kevin ritter

Can anyone one verify if this is really the case, that is, to logout with
BASIC authentication you have to close the browser window? This seems to be
a little goofy. Are there any work arounds?

Thank you in advance. Peace
Kevin Ritter

- Original Message -
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 19, 2001 8:58 PM
Subject: Re: Logout with basic autorization


 The only way to logout with basic authentication is to close the Web
 browser. Otherwise, you may want to do form-based authentication.

 Jon

 - Original Message -
 From: Oleksandr Fedorenko [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 19, 2001 8:43 AM
 Subject: Re: Logout with basic autorization


 
 
  P.Miller wrote:
 
   Hi Oleksandr,
  
   you can 'logout' with session.invalidate().
   You have to login again afterwards.
  
 
  I do it exactly.
 
  But Browser already contains information for authentication, and when I
 want
  to access
  protected page ( I want to get auth prompt ) , it pass it by.
 
  
   Hth
   Peter
  
   Oleksandr Fedorenko wrote:
   
Hi.
   
How to do really logout using basic authorization ?
   
I mean to get authorization prompt again by using tomcat engine ? ,
 i.e.
   
tomcat should care about it . To send smth. in response ?
If yes, so what to send ?
   
Thanks.
   
Alex.
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Logout with basic autorization

2001-11-14 Thread kevin ritter

Thanks for responding; however, I'm already calling session.invalidate() as
show below:

%@ page language=java import=com.jcafeinc.learningCenter.users.* %
%@ include file=global-header.jsp %
html
body background=images/icon-background.jpg bgcolor=00 link=ff
vlink=ff alink=ff text=ff
style=border-width=0;margin-top=0;margin-left=0;margin-right=0
%request.getSession().invalidate();
   RequestDispatcher rd =
getServletContext().getRequestDispatcher(/index2.jsp);
   rd.forward(request, response);%
/body
/html

Any more suggestions would be greatly appreicated.

Kevin
- Original Message -
From: Tom Drake [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; kevin ritter
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:26 PM
Subject: Re: Logout with basic autorization


 I think your servlet or jsp can simply call session.invalidate().


 - Original Message -
 From: kevin ritter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 14, 2001 4:41 PM
 Subject: Re: Logout with basic autorization


 | Can anyone one verify if this is really the case, that is, to logout
with
 | BASIC authentication you have to close the browser window? This seems to
 be
 | a little goofy. Are there any work arounds?
 |
 | Thank you in advance. Peace
 | Kevin Ritter
 |
 | - Original Message -
 | From: Jonathan Eric Miller [EMAIL PROTECTED]
 | To: [EMAIL PROTECTED]
 | Sent: Wednesday, September 19, 2001 8:58 PM
 | Subject: Re: Logout with basic autorization
 |
 |
 |  The only way to logout with basic authentication is to close the Web
 |  browser. Otherwise, you may want to do form-based authentication.
 | 
 |  Jon
 | 
 |  - Original Message -
 |  From: Oleksandr Fedorenko [EMAIL PROTECTED]
 |  To: [EMAIL PROTECTED]
 |  Sent: Wednesday, September 19, 2001 8:43 AM
 |  Subject: Re: Logout with basic autorization
 | 
 | 
 |  
 |  
 |   P.Miller wrote:
 |  
 |Hi Oleksandr,
 |   
 |you can 'logout' with session.invalidate().
 |You have to login again afterwards.
 |   
 |  
 |   I do it exactly.
 |  
 |   But Browser already contains information for authentication, and
when
 I
 |  want
 |   to access
 |   protected page ( I want to get auth prompt ) , it pass it by.
 |  
 |   
 |Hth
 |Peter
 |   
 |Oleksandr Fedorenko wrote:
 |
 | Hi.
 |
 | How to do really logout using basic authorization ?
 |
 | I mean to get authorization prompt again by using tomcat engine
?
 ,
 |  i.e.
 |
 | tomcat should care about it . To send smth. in response ?
 | If yes, so what to send ?
 |
 | Thanks.
 |
 | Alex.
 |  
 |
 |
 | --
 | To unsubscribe:   mailto:[EMAIL PROTECTED]
 | For additional commands: mailto:[EMAIL PROTECTED]
 | Troubles with the list: mailto:[EMAIL PROTECTED]
 |
 |
 |


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TOMCAT SUCKS

2001-06-27 Thread kevin ritter

Nick,

I just saw on the site
http://www.onjava.com/pub/a/onjava/2001/03/15/tomcat.html
that James Goodwill has published a book titled Using Tomcat. Although, I
have not purchased the book, I would image that it may become another
(albeit not free) source for Tomcat product documentation.

FYI, Free means free (i.e., you get what you pay for) and at Jcafeinc.com it
works wonderfully for us and the price is right.

kevin

- Original Message -
From: Nick Stoianov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 3:53 PM
Subject: TOMCAT SUCKS


 Hi guys,

 I really think that TOMCAT SUCKS so bad. I'm not against the open source
 community but this is why I think that TOMCAT sucks:

 1. The documentation for Tomcat is so bad and it covers only the basic
 server installation. HELL - usually for production purposes people
have
 load balancers, virtual hosts, etc.

 2. Virtual hosting for Tomcat is almost impossible - especially if you
have a
 load balancer in front of the web server.

 3. The integration with apache (using mod_jk) sucks. It slows down the
 productivity of the web server with at least 1000%

 4. And guess what is the hell you have to go through if your virtual hosts
 have different servlets mappings. You waste time and you know - time is
money.

 5. And what if you have a problem that is not in the documentation (99% of
 the problem with Tomcat are not even mentioned in the documentation)? I
guess
 the only way is to post in the mailing list. And guess what happens if
nobody
 has experienced this problem before? You have to start wasting your time
 again.

 I really think that TOMCAT is OK for testing purposes. Trust me - for
complex
 configurations it sucks.
 If you want to use a good production application server - take a look at
 WebLogic, Resin, Allaire JRun, etc.

 Nick




Does Tomcat provide load balancing?

2001-06-19 Thread kevin ritter

I would like to know if within Tomcat there is a component that provide load
balancing. Also, does it provide persistance?

Thank you in advance.

[EMAIL PROTECTED]




Server Side Includes using Servlet tags in an .shtml file

2001-06-15 Thread kevin ritter

Hello,

I would like to know if Tomcat supports the use of servlet tags in an
shtml file for server side includes?

Here's my shtml file:

html
  head
titletimezone!/title
  /head
  body
h1Example of Server-Side Includes/h1
p
  This an places the date and time for various time zones
   dynamically in this i.shtml/i file.
/p
p
  The current time in London is:
  servlet code=/kevin/servlet/CurrentTime
  param name=zone value=GMT
  /servlet
/p
  /body
/html

The CurrentTime class file compiles just fine. I think, Tomcat is not
parsing the .shtml file. If that's true, what can I do. I have added a new
AddType and AddHandler in the tomcat.conf file:

AddType text/x-server-parsed-html .shtml
AddHandler server-parsed html
Options +Includes

But that didn't seem to fix the problem. Any suggestions.

As always, thank you in advance for your help.

Sincerely,
[EMAIL PROTECTED]





Does Tomcat support Server Side Includes

2001-06-14 Thread kevin ritter

Hi, I'm new to Tomcat and I'm not having any luck with implementing SSI with
respect to Tomcat. Can anyone tell me does Tomcat support SSI and if so can
you point me to existing documentation that describes how-to or provide an
example. I have read the Tomcat User's Guide, but did not find any specific
information on SSI.

Thank you in advance.

Respectfully,
[EMAIL PROTECTED]






Re: Does Tomcat support Server Side Includes

2001-06-14 Thread kevin ritter

Please excuse my inability to find these tomcat example JSPs. Could you tell
me where they are?

Again thank you for your help.

[EMAIL PROTECTED]

- Original Message -
From: Michael Jennings [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; kevin ritter
[EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 12:13 PM
Subject: Re: Does Tomcat support Server Side Includes


 Tomcat is a JSP engine, and the JSP standard has an include directive.
 Check out the tomcat example JSPs, they show you the source code for
 a lot of simple JSP tricks.

 Hope this helps!
 -Mike

 - Original Message -
 From: kevin ritter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, June 14, 2001 9:25 AM
 Subject: Does Tomcat support Server Side Includes


  Hi, I'm new to Tomcat and I'm not having any luck with implementing SSI
 with
  respect to Tomcat. Can anyone tell me does Tomcat support SSI and if so
 can
  you point me to existing documentation that describes how-to or provide
an
  example. I have read the Tomcat User's Guide, but did not find any
 specific
  information on SSI.
 
  Thank you in advance.
 
  Respectfully,
  [EMAIL PROTECTED]
 
 
 




Server Side Includes using Servlet tags in an .shtml file

2001-06-14 Thread kevin ritter

Hello,

I would like to know if Tomcat supports the use of servlet tags in an
shtml file for server side includes?

Here's my shtml file:

html
  head
titletimezone!/title
  /head
  body
h1Example of Server-Side Includes/h1
p
  This an places the date and time for various time zones
   dynamically in this i.shtml/i file.
/p
p
  The current time in London is:
  servlet code=/kevin/servlet/CurrentTime
  param name=zone value=GMT
  /servlet
/p
  /body
/html

The CurrentTime class file compiles just fine. I think, Tomcat is not
parsing the .shtml file. If that's true, what can I do. I have added a new
AddType and AddHandler in the tomcat.conf file:

AddType text/x-server-parsed-html .shtml
AddHandler server-parsed html
Options +Includes

But that didn't seem to fix the problem. Any suggestions.

As always, thank you in advance for your help.

Sincerely,
[EMAIL PROTECTED]