question about protected resources in a security-constraint and login-config

2008-05-17 Thread nkdepot-misc
I am using tomcat 5.5.23 to set up form based authentication. I have looked at the source code and ran the security/protected example that is provided with tomcat, and I have a question about the resources associated with the login-config. The two jsps defined in the login-config are in the sec

Re: CGI/HTML

2008-05-17 Thread Shabu Khan
Thanks Bill. Can this be tweaked to a lesser value then? On Sat, May 17, 2008 at 6:21 PM, Bill Barker <[EMAIL PROTECTED]> wrote: > > "Christopher Schultz" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Shabu, > > > > Sha

Re: JMX MBean

2008-05-17 Thread Bill Barker
Chuck's post works for implementing custom Tomcat components (e.g. a custom Realm extending RealmBase). If you are implementing a custom class that doesn't extend any Tomcat class, then your class will have to self-register itself. Since you say you are using TC6, the default configuration sho

Re: CGI/HTML

2008-05-17 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Shabu, > > Shabu Khan wrote: > | For some reason, the cgi perl script that I run via IE/Firefox does not > | render the output immediately, but waits until it h

Re: problem about tomcat session management

2008-05-17 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Zufeng, > > Zufeng Huang wrote: > | Recently, I am suffering a problem about tomcat session management. > | It is a sign-in service, sometimes the user A logs in

Deploying Servlets in users directory

2008-05-17 Thread Cristian Bullokles
Hello all, I'm using tomcat 6.016 and have configured userconfig in server.xml to look in user's public_html subdir for jsps etc. Jsp files works fine in user directories but servlets do not. Does anyone have tomcat working with servlets in user's public_html subdirectories? Thanks Cristian ---

Re: Multiple authentication schemes within a webapp

2008-05-17 Thread Johnny Kewl
- Original Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, May 17, 2008 7:37 PM Subject: Re: Multiple authentication schemes within a webapp -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: | But I cant see

Re: Multiple authentication schemes within a webapp

2008-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: | But I cant see why you couldnt map the servlets slightly differently... | if it is servlets. You can't set up more than one authentication scheme for a webapp, at least not using the simple configuration in web.xml. - -

RE: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems

2008-05-17 Thread Caldarale, Charles R
> From: Niki Diulgerov [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit > architecture problems > > CATALINA_OPTS="-Dlogs.root=/opt/logs -Dwas.install.root=/opt" Those system properties are not used by Tomcat; are they for a webapp you've deployed? > JAVA_HOM

RE: InvalidClassException between Tomcat and Eclipse

2008-05-17 Thread Caldarale, Charles R
> From: Dola Woolfe [mailto:[EMAIL PROTECTED] > Subject: Re: InvalidClassException between Tomcat and Eclipse > > Can you explain the idea behind serialVersionUID AFAIK, its primary purpose is to insure that the deserialized object is compatible with the the current class definition. Serializab

Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems

2008-05-17 Thread Niki Diulgerov
Hello there It is very strange for me. I just installed a brand new machine with Red Hat 5.1x64 on dell power edge 860. I downloaded jdk-1.5.0.15-linux-amd64 from sun. Downloaded tomcat 5.5.26. Installed both. I have in setenv.sh JAVA_OPTS="-server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPerm

Re: InvalidClassException between Tomcat and Eclipse

2008-05-17 Thread Dola Woolfe
Thanks. Can you explain the idea behind serialVersionUID (or point to a link)? It seems (under ideal circumstances and not what I was conerned with previously) that if the classes are legitimately out of sync and I don't set it, I will get an exception saying that serialVersionUID is mismatched.

IIS/Tomcat work only on my LAN

2008-05-17 Thread Bernard2012
I want to make Tomcat 6.0.16 work with IIS 6 on Windows 2003 server. I followed all steps in http://indrayam.com/demo/HowToLinkTomcat5WithIIS6.pdf and things work only on my LAN. The tomcat examples work fine when fetched from a browser on any computer of my Local Area Network. That is, IIS liste

Re: Multiple authentication schemes within a webapp

2008-05-17 Thread Johnny Kewl
- Original Message - From: "Robert Oxspring" <[EMAIL PROTECTED]> To: Sent: Saturday, May 17, 2008 12:49 PM Subject: Multiple authentication schemes within a webapp Hi, I have a webapp that uses form based authentication but I'd like to also be able to login to it using basic auth

Re: problem about tomcat session management

2008-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zufeng, Zufeng Huang wrote: | Recently, I am suffering a problem about tomcat session management. | It is a sign-in service, sometimes the user A logs in, system sets | user¡¯s information in session and then a piece of JSP codes to read | the user¡¯

Re: Multiple authentication schemes within a webapp

2008-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Oxspring wrote: | I have a webapp that uses form based authentication but I'd like to also | be able to login to it using basic authentication. The main use case | for this is to present a nice form based login for web users, not | in

Re: [OT] User-JDBC-Realm: User case-sensitiv?

2008-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, Gregor Schneider wrote: | Sure, there are a lot of possible solutions, however, it would ease up | things if MySQL would behave as expected by the "common programmer". Sorry, but the "common programmer" ought to know that, in spite of SQL's

problem about tomcat session management

2008-05-17 Thread Zufeng Huang
Hi all, Recently, I am suffering a problem about tomcat session management. It is a sign-in service, sometimes the user A logs in, system sets user¡¯s information in session and then a piece of JSP codes to read the user¡¯s name from session, but the user gets another user¡¯s name in brows

problem about tomcat session management

2008-05-17 Thread Zufeng Huang
Hi all, Recently, I am suffering a problem about tomcat session management. It is a sign-in service, sometimes the user A logs in, system sets user¡¯s information in session and then a piece of JSP codes to read the user¡¯s name from session, but the user gets another user¡¯s name in brows

Re: JMX MBean

2008-05-17 Thread Jess Holle
Johnny Kewl wrote: If not and its a bean in your servlet that you want to use. Then this article is the only one I've ever seen on the subject http://oss.wxnet.org/mbeans.html Essentially there is a bean Registry inside tomcat... and the idea is to get your bean into that registry... then TC

Re: understanding some tomcat code

2008-05-17 Thread Ho Fat Tsang
On Sat, May 17, 2008 at 12:12 AM, Leon Rosenberg < [EMAIL PROTECTED]> wrote: > Hi, > > was just browsing through tomcat code, and the following is just a > mystery to me ->StandardSession.fireSessionsEvent(type,data): > > public void fireSessionEvent(String type, Object data) { >if (lis

Multiple authentication schemes within a webapp

2008-05-17 Thread Robert Oxspring
Hi, I have a webapp that uses form based authentication but I'd like to also be able to login to it using basic authentication. The main use case for this is to present a nice form based login for web users, not involving the standard browser's username/password prompt, but also allow pe

Re: User-JDBC-Realm: User case-sensitiv?

2008-05-17 Thread Gregor Schneider
Hi Todd, On Fri, May 16, 2008 at 11:23 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > You can use "WHERE x LIKE condition" to perform a case-sensitive search > without modifying the structure of the table(s) involved by using the > BINARY keyword. > well, I could so so - however, I'm talking ab

Re: JMX MBean

2008-05-17 Thread Johnny Kewl
- Original Message - From: "ubekhet" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, May 16, 2008 10:33 PM Subject: Re: JMX MBean Liang, When I read this, I think, "Damn, the guy is rebuilding Tomcat" ;) Are you? Are you trying to make a new version of TC... sounds like you