You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darren Pettis <de...@hotmail.com> on 2000/05/01 22:19:18 UTC

Caching anomaly

I have a JSP page that invokes some code in an ordinary class file.  This 
class file reads a text file from disk and converts the data into a vector 
of objects.  This file is supposed to be autoupdated periodically, but what 
I'm finding is when I replace the file on disk, the original data remains 
(doesn't get picked up and read into a new set of objects in the vector).  
All I can think of is that Tomcat is somehow caching this file and not 
"detecting" a newer one.  Any suggestions to alleviate this problem would be 
greatly appreciated.

Thanks,
Darren

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Re: JDBCRealm problems 3.2

Posted by Chris Fox <cs...@extra.net>.
You are correct sir!
I had not commented that out.
as soon as i did everything worked.

In the past though I never commented it out either and it was working
so i did not think about that as being the problem

thanks again

chris

"Craig R. McClanahan" wrote:
> 
> Chris Fox wrote:
> 
> > I am uable to get a successfull login using basic authentication for
> > jdbc realm.
> > this was working for me in the tomcat 3.2 beta 6 for me but not in the
> > final release.
> >
> > the output log for the ContextManager says the authentication is okay
> > but
> > the browser shows authorization failed
> >
> > the only way to get it to work is to add the user to the
> > tomcat-users.xml file
> > and then it works fine (even if the password int the tomcat-users.xml
> > file is bogus)
> >
> > this is an unaccepatble solution as I want to add authentication for
> > many users
> > and not have to restart tomcat every time
> >
> > I am seeing this problem on two different boxes
> > one running linux and one running solaris
> >
> > I am stuck as how to fix this problem.
> >
> > has anyone seen this or got it working?
> >
> 
> DId you comment out (or remove) the entry for the SimpleRealm interceptor when
> you uncommented the entry for the JDBCRealm?  I ask this because SimpleRealm is
> the only code in all of Tomcat that cares about the tomcat-users.xml file.
> 
> >
> > Chris
> 
> Craig McClanahan

-- 
http://www.trudat.com

Re: JDBCRealm problems 3.2

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Chris Fox wrote:

> I am uable to get a successfull login using basic authentication for
> jdbc realm.
> this was working for me in the tomcat 3.2 beta 6 for me but not in the
> final release.
>
> the output log for the ContextManager says the authentication is okay
> but
> the browser shows authorization failed
>
> the only way to get it to work is to add the user to the
> tomcat-users.xml file
> and then it works fine (even if the password int the tomcat-users.xml
> file is bogus)
>
> this is an unaccepatble solution as I want to add authentication for
> many users
> and not have to restart tomcat every time
>
> I am seeing this problem on two different boxes
> one running linux and one running solaris
>
> I am stuck as how to fix this problem.
>
> has anyone seen this or got it working?
>

DId you comment out (or remove) the entry for the SimpleRealm interceptor when
you uncommented the entry for the JDBCRealm?  I ask this because SimpleRealm is
the only code in all of Tomcat that cares about the tomcat-users.xml file.

>
> Chris

Craig McClanahan



JDBCRealm problems 3.2

Posted by Chris Fox <cs...@extra.net>.
I am uable to get a successfull login using basic authentication for
jdbc realm.
this was working for me in the tomcat 3.2 beta 6 for me but not in the
final release.

the output log for the ContextManager says the authentication is okay
but 
the browser shows authorization failed

the only way to get it to work is to add the user to the
tomcat-users.xml file
and then it works fine (even if the password int the tomcat-users.xml
file is bogus)

this is an unaccepatble solution as I want to add authentication for
many users
and not have to restart tomcat every time

I am seeing this problem on two different boxes 
one running linux and one running solaris

I am stuck as how to fix this problem.

has anyone seen this or got it working?

Chris