Re: Single Sign On(SSO) problem

2005-03-11 Thread Guillaume Lederrey
On Friday 11 March 2005 06.36, xue daoming wrote: How to config Single Single Sign On(SSO) in Tomcat? I read Tomcat document, but I can't find information about it. Is something I miss? Anybody carried out that can help me? I just gt that one working yesterday ! All the apps that need to

application can not reconnect when database restarts

2005-03-11 Thread Bhavesh Kumar
I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. Context congiguration under server.xml file is as Context path=/MyWebApp docBase=MyWebApp debug=0 reloadable=true Logger

JNDIrealm Mbean

2005-03-11 Thread jean charles jabouille
Hi, I use Tomcat 5.5 and I created a JNDIRealm in the server.xml file. I d'like to accede to the JNDIMean mbean but I can't find informations about source code exemple. I saw this page that contains all Tomcat Mbean

Re: Access Threads informations/state

2005-03-11 Thread David Causse
QM wrote: On Thu, Mar 10, 2005 at 08:47:25PM +0100, David Causse wrote: : I store my jdbc connections inside the user session, and I create thanks : to a Filter one connection per thread (cause we encountered multithread : issues with the oracle JDBC driver, and we use frames). Is there a way

RE: Mapping context to root of website

2005-03-11 Thread Pete Stevens
See if this helps, it's a guide to making Tomcat be like a web server, rather than the J2EE spec. If you're a linux user it includes automagic scripts for helping you do it. http://www.ex-parrot.com/~pete/tomcat-vhost.html my linux install guide is at

[slightly OT]Re: How to access web site from other computers

2005-03-11 Thread Joel
I went to www.dyndns.org and selected 'Dynamic DNS' (B and did whatever it asked me to. I'm able to access it (B locally. ie. (B (BLocally means on the same machine as the server? (B (BAnd could you mention which "whatever it asked me" you did? (B (B

Re: [slightly OT]Re: How to access web site from other computers

2005-03-11 Thread U K Laxmi
--- Joel [EMAIL PROTECTED] wrote: I went to www.dyndns.org and selected 'Dynamic DNS' and did whatever it asked me to. I'm able to access it locally. ie. Locally means on the same machine as the server? On the same machine where tomcat apache are running. And could you mention

Sudden Shutdown - EXCEPTION_ACCESS_VIOLATION

2005-03-11 Thread Irineu Avanço Jr .
Hello people... I was doing a load testing with my Web application running under Tomcat, and suddenly Tomcat has stopped. So, I went to the sdtout.log file and got the fatal error message listed below. Then I started the server again, restarted the load testing and got the same problem

Re: [slightly OT]Re: How to access web site from other computers

2005-03-11 Thread Joel
I went to www.dyndns.org and selected 'Dynamic (B DNS' (B and did whatever it asked me to. I'm able to (B access it (B locally. ie. (B (B Locally means on the same machine as the server? (B (B On the same machine where tomcat apache are running. (B (B And could you

One quick question on running TC in security mode

2005-03-11 Thread Nikola Milutinovic
Hi all. I'm faced with a situation where I need to deploy an application on a server that is running TC 4.1 with -security option enabled. I have figured out that I need to edit catalina.policy file and grant my application permissions. I'm testing config on my home machine running 5.5.7. Now

[OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered

Too many open files exception

2005-03-11 Thread Moderate Extremist
A coworker of mine had a Tomcat-driven site switched over to JVM 1.4.2 from JVM 1.3.1. He got an email from the client about two hours later saying they were getting a bunch of errors: Internal Servlet Error: javax.servlet.ServletException: common.cException: common.cException:

Re: application can not reconnect when database restarts

2005-03-11 Thread David Causse
Bhavesh Kumar wrote: I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. [...] Is there any tag which takes care that application is automatically connected whenever datbase goes up. It would be really

RE: Too many open files exception

2005-03-11 Thread Dale, Matt
Sounds like you need to up the number of open files allowed at the operating system level. Ta Matt -Original Message- From: Moderate Extremist [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 12:38 To: tomcat-user@jakarta.apache.org Subject: Too many open files exception A coworker of

Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Rodrigo Avila
To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user

Antwort: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Thanks Rodrigo, do you know of a way to get the encryption level of the request as well? (40bit, 128bit, ...) TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97

Re: application can not reconnect when database restarts

2005-03-11 Thread Bhavesh Kumar
Hi David, Thanx for the info...I will look into java classes for DBCP connection pool and would try to make out if validationQuery parameter has been implemented in classes the same way you mentioned. thanx again.. Bhavesh David Causse [EMAIL PROTECTED] 11/03/2005 12:39 Please respond

Idle servlet won't restart

2005-03-11 Thread Nat Titman
Hi, I'm using Tomcat 5.5.3 running as part of an Apache webserver on Fedora Core 1. My webapps are supported by a servlet which serves gif images stored in a database, it's mapped to the URL pattern /servlet/image by the following XML which is inside the web-app tag of the web.xml files for

SSL tomcat support

2005-03-11 Thread Shahin Hadjikuliev
Hi , list! I want to configure tomcat running on https, main purpose is that: server should know his clients (only specified clients can user server) I want to achieve it with certificates I have read some documentation on java.sun.com

Re: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Rodrigo Avila
Sincerily... I don know. But, reading [http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html], I see this tip: To access the SSL session ID from the request, use: String sslID = (String)request.getAttribute(javax.servlet.request.ssl_session); And, in the ServletRequest javadoc

Antwort: Re: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Thanks a lot Rodrigo! I will try the second an see what I can come up with. Thanks again % have a nice weekend, Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97

Re: One quick question on running TC in security mode - still problems

2005-03-11 Thread Nikola Milutinovic
Nikola Milutinovic wrote: Hi all. I'm faced with a situation where I need to deploy an application on a server that is running TC 4.1 with -security option enabled. I have figured out that I need to edit catalina.policy file and grant my application permissions. I'm testing config on my home

Tomcat5.0.x - Proxy (pippoProxy)

2005-03-11 Thread Acácio Furtado Costa
Hi list, Does anyone know about Pippo Proxy?. This is a 100% pure Java HTTP proxy designed and implemented for TomCat. IF so, Is it using in production environment ? what a result ? and about a security? Thanks Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A

Re: Tomcat5.0.x - Proxy (pippoProxy)

2005-03-11 Thread Christoph Kutzinski
I have no experience with it. But this article might be helpful for you: http://www.javaworld.com/javaworld/jw-02-2005/jw-0228-pippo.html Acácio Furtado Costa wrote: Hi list, Does anyone know about Pippo Proxy?. This is a 100% pure Java HTTP proxy designed and implemented for TomCat. IF so, Is it

[More Info] Strange error-page behavior

2005-03-11 Thread Dustin
Ok, I've narrowed it down to the 401 error code. If that is defined in the web.xml, all apps that authenticate will automatically show the 401 error page without prompting for credentials. Is this a bug in tomcat? I tried the same on tomcat-5.0.30 with the same results. Please help, Dustin

RE: Idle servlet won't restart

2005-03-11 Thread Caldarale, Charles R
From: Nat Titman [mailto:[EMAIL PROTECTED] Subject: Idle servlet won't restart My webapps are supported by a servlet which serves gif images stored in a database My problem is that after leaving the webapps overnight and returning to the site, the image servlet appears to have stopped.

Why so much virtual memory?

2005-03-11 Thread Mark Winslow
I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of virtual memory usage in the linux app top. Is this normal? Is it just allocating it or is it really using it? It takes about 1 to 2 seconds to start and there's no way an application can write 450 megs of disk memory in that

null pointer

2005-03-11 Thread Tony Lavalle
I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i have check the html and the jsp. but i can see no error. can you folks give me some ideas as where to start to fix this. i am

Re: Idle servlet won't restart

2005-03-11 Thread Mark Winslow
What happens when you try to get an image? What, if any, error messages do you get? --- Nat Titman [EMAIL PROTECTED] wrote: Hi, I'm using Tomcat 5.5.3 running as part of an Apache webserver on Fedora Core 1. My webapps are supported by a servlet which serves gif images stored in a

Re: null pointer

2005-03-11 Thread Mark Winslow
What program gives you the null pointer exception? Is it your own servlet/jsp? --- Tony Lavalle [EMAIL PROTECTED] wrote: I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i

Re: null pointer

2005-03-11 Thread David Causse
Tony Lavalle wrote: I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i have check the html and the jsp. but i can see no error. can you folks give me some ideas as where to start

Exception on JDBCRealm Authorization

2005-03-11 Thread J Malcolm
Just moved to 5.5.7. After the server runs for several hours, I start getting the following exception on JDBCRealm access. After restarting the server, it works for a while, then starts failing again. The exception dump doesn't give a whole lot of information to go on. I did not update my

Re: Why so much virtual memory?

2005-03-11 Thread David Causse
Mark Winslow wrote: I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of virtual memory usage in the linux app top. Is this normal? Is it just allocating it or is it really using it? It takes about 1 to 2 seconds to start and there's no way an application can write 450 megs of

Problem with Tomcat 4.1.31

2005-03-11 Thread vsubramanian
I am upgrading my application from 4.1.27 to 4.1.31. The problem is that I am unable to get session attributes in my Servlets after upgrading. This problem only occurs when I run only tomcat without IIS/ Apache. I tried to use different connectors but that does not solve my problem. If anyone

Survey on Understanding Code

2005-03-11 Thread Vineet Sinha
Hi, We are running a set of small surveys, in an attempt to understand developers problems when attempting to understand code. Results from this survey will be used in refining (open-source) tools that we are building. If you have looked at the code of any of the (Java) projects below, we would

RE: tomcat load-balancing maintenance strategy?

2005-03-11 Thread Dan Carwin
I also experienced cluster failure when restarting a downed cluster member in 5.0. I tested with Tomcat 5.0.30. Randall, what version of Tomcat did you succeed with? Thanks, Dan -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005

Re: sending a JSP page by email

2005-03-11 Thread Gabriel Belingueres
Hi, Thanks for the response. This is really a neat solution of my problem , since I can use Tomcat's JSP engine to create dynamic emails. I copied the solution you posted on your blog. The email is sent OK but, since a use a model 2 web framework like Struts, I send the email, and then I need to

host tag in server.xml

2005-03-11 Thread Michael Sharkey
Hi - I am running tomcat 5.5 as a standalone web server. I want to know how to use wildcards in the host tag (or alias tag) so that when someone types xxx.mydomain.com, the xxx can be anything at all and they go to the same place. In apache, I know you could say something like: *.mydomain.com

Re: tomcat load-balancing maintenance strategy?

2005-03-11 Thread Filip Hanik - Dev Lists
its fixed in 5.5.x, you need a patch for 5.0.x? Dan Carwin wrote: I also experienced cluster failure when restarting a downed cluster member in 5.0. I tested with Tomcat 5.0.30. Randall, what version of Tomcat did you succeed with? Thanks, Dan -Original Message- From: Richard Mixon

Re: Exception on JDBCRealm Authorization

2005-03-11 Thread alexander dosher
J Malcolm [EMAIL PROTECTED] sez: Just moved to 5.5.7. After the server runs for several hours, I start getting the following exception on JDBCRealm access. hello. i've just worked through the same problem in the past week, and with the help of the list (thanks Remy Maucherat Hassan Schroeder!)

Re: host tag in server.xml

2005-03-11 Thread Drew Jorgenson
Hey Michael, The way I do it is first of all set the wildcard in the DNS config for the domain and point it to a certain IP address, e.g. * IN A 1.2.3.4 then I set up the virtual host in server.xml to contain the IP address as an alias Host name=www.mydomain.com debug=0