Re: multiple services for each Tomcat instance on NT

2005-03-10 Thread Matej Kafadar
Try to use Tomcat Service Manager, it's a nice GUI. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview regards Matej Bedrijven.nl wrote: Hello, I installed Tomcat 557 and create several instances for development applications by using the

Re: Query on mod_jk.log

2005-03-10 Thread Lionel Farbos
in your mod_jk.conf : JkLogFile /var/log/apache/mod_jk.log On Thu, 10 Mar 2005 11:58:03 +0530 [EMAIL PROTECTED] wrote: Hi All, I need to change the location of mod_jk.log file. Presently it gets logged in /apache/logs. I need to put it in /var/log/apache. How to accomplish this?

JAAS authentication and global realms

2005-03-10 Thread Guillaume Lederrey
Hello ! I'm trying to use a host wide JAAS Realm. I've written the LoginModule and tested it by declaring the Realm in the Context/ of one of my app. This app is not declared in server.xml, but in its own context.xml in /webapps. Everything is working just fine. My LoginModule logs using

Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-10 Thread David Tonhofer, m-plify S.A.
Juste pour info: I have written up my DataSourceRealm with DBCP that I got working before 02:00 this night (eww) into the DBCP Twiki. Not the best place, but hey, might be useful: http://wiki.apache.org/jakarta-commons/DBCP Enjoy, -- David --On Wednesday, March 09, 2005 8:40 PM -0800 alexander

Tomcat 5.5.7. server.xml doc may be buggy...is it bugzilla time?

2005-03-10 Thread David Tonhofer, m-plify S.A.
Hello, Question regarding Tomcat 5.5.7 and the JNDI Datasource: It seems like either the web documentation for Tomcat 5.5 or the implementation is incorrect regarding the use of JNDI Datasources. In this page: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html the

Tomcat auth problem

2005-03-10 Thread Kannan Shastri
Hi , I am facing a very peculiar problem..I have configured my web-app to use form-based auth and it is working fine, except when I give the complete URL of a JSP pafe inside a restricted area, it allows me access without redirecting to the login page. I have in my web.xml something like..

Re: Tomcat 5.5.7. server.xml doc may be buggy...is it bugzilla time?

2005-03-10 Thread Remy Maucherat
On Thu, 10 Mar 2005 12:21:29 +0100, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote: 00Exception performing authentication 01 javax.naming.NameNotFoundException: Name jdbc is not bound in this Context 02 at org.apache.naming.NamingContext.lookup(NamingContext.java:769) Ah,

Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-10 Thread Remy Maucherat
On Wed, 09 Mar 2005 17:39:21 -0800, alexander dosher [EMAIL PROTECTED] wrote: and an Engine Realm className=org.apache.catalina.realm.DataSourceRealm name=UserDatabase and i get java.lang.NullPointerException at javax.naming.NameImpl.init at javax.naming.CompositeName.init

Re: file watcher

2005-03-10 Thread deepak suldhal
if you have a file watcher Please email, it will help me a lot. Thanks Antony Paul [EMAIL PROTECTED] wrote: What you mean ?. You need a file watcher program or you have one. To start it when tomcat is started, 1. If it is servlet in web.xml use in servlet declaration and run it from init()

Re: Tomcat 5.5.7. server.xml doc may be buggy...is it bugzilla time?

2005-03-10 Thread David Tonhofer, m-plify S.A.
Ah, cool, so you did not read the docs for the datasource realm, then ... WRONG! http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#DataSourceRealm - localDataSource Easy when you know it, then. Tested ok. One problem down. Additionally: The 'factory' attribute of the 'Resource'

RE: Tomcat 5.5.7. server.xml doc may be buggy...is it bugzilla time?

2005-03-10 Thread Erkkila, Matthew
Here is my config to get a JNDI datasource. It works for me but I am not sure if all of it is actually required. ***context.xml*** Context path=/ docBase=root ResourceLink name=jdbc/ssdb type=javax.sql.DataSource global=jdbc/ssdb/ /Context ***web.xml snippet from inside web-app***

RE: file watcher

2005-03-10 Thread Anderson, M. Paul
What is a file watcher? -Original Message- From: deepak suldhal [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 7:41 AM To: Tomcat Users List; Antony Paul Subject: Re: file watcher if you have a file watcher Please email, it will help me a lot. Thanks Antony Paul [EMAIL

Re: file watcher

2005-03-10 Thread Antony Paul
You can search in Google. Two I know are log4j file watcher and Tomcat WAR watcher. rgds Antony paul On Thu, 10 Mar 2005 04:41:14 -0800 (PST), deepak suldhal [EMAIL PROTECTED] wrote: if you have a file watcher Please email, it will help me a lot. Thanks Antony Paul [EMAIL PROTECTED]

RE: Tomcat auth problem

2005-03-10 Thread Ramu, Vinod
I would try with using extension URL mapping. For instance, url-pattern*.jsp/url-pattern in my web.xml. And based on the URL sent by you and I thing the application root web context is nbpapps. If this is true, then begin your URL under the url-pattern tag with faces (based on the URL sent

RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-10 Thread Phillip Qin
Very useful info. Thx. Have you actually tested your configure in tc5.5.7/.8, i.e. Tomcat Manager app deploy/redeploy etc.? -Original Message- From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED] Sent: March 10, 2005 5:55 AM To: Tomcat Users List Subject: Re: JDBCRealm changes

RE: Query on mod_jk.log

2005-03-10 Thread Phillip Qin
JkLogFile -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: March 10, 2005 1:28 AM To: tomcat-user@jakarta.apache.org Subject: Query on mod_jk.log Hi All, I need to change the location of mod_jk.log file. Presently it gets logged in /apache/logs. I need to

Limiting number of login attempts

2005-03-10 Thread Anderson, M. Paul
Is there a way to limit the number of login attempts for a user when using a JDBC realm? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cannot compile class in WEB-INF/classes

2005-03-10 Thread Rahul Joshi
I have a Simple JSP page in my webapps/myappname. I have a utility class which this page will use. The class file for this should be in webapps/myappname/WEB-INF/classes. So I put the java source file in that directory (webapps/myappname/WEB-INF/classes). Also, a method in this utility class has

James Richardson is out of the office.

2005-03-10 Thread James Richardson
I will be Out of the Office Start Date: 10/03/2005. End Date: 14/03/2005. I will respond to your message when I return. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify

RE: Cannot compile class in WEB-INF/classes

2005-03-10 Thread Anderson, M. Paul
Did you import javax.servlet.http.* ? -Original Message- From: Rahul Joshi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 1:19 PM To: tomcat-user@jakarta.apache.org Subject: Cannot compile class in WEB-INF/classes I have a Simple JSP page in my webapps/myappname. I have a

RE: Cannot compile class in WEB-INF/classes

2005-03-10 Thread Rahul Joshi
Yes, I did. import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; API signature: String expand(HttpServletRequest request) -Rahul. --- Anderson, M. Paul [EMAIL PROTECTED] wrote: Did you import javax.servlet.http.* ? -Original Message- From:

Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
Hi, I have a sort of theoretical question. I'm wondering about the pros and cons of using a one connection per tomcat session strategy for connecting to a Postgresql server rather than connection pooling. My users generally login in the morning and keep my app open for extended periods of

RE: Cannot compile class in WEB-INF/classes

2005-03-10 Thread Anderson, M. Paul
Have you compiled the class previously? The source for the class does not go in the WEB-INF/classes directory - only the class files go here. You also need to pre-compile your classes - Tomcat doesn't do this for you. -Original Message- From: Rahul Joshi [mailto:[EMAIL PROTECTED] Sent:

JDBC Realm by-passing login page using a link

2005-03-10 Thread Fredrik Liden
Is it possible to pass login info in a link and then based on this information set the JDBC realm status to logged in? In other words is it possible to trigger the authentication manually in a filter? Thanks! /Fredrik - To

RE: Cannot compile class in WEB-INF/classes

2005-03-10 Thread Rahul Joshi
I did not try compiling it at an external location. I thought I would compile it in classes and then delete the source java file later. I will try your suggestion of compiling it outside of tomcat and then copying the class in the classes directory. But does it mean that a java file cannot be

RE: JDBC Realm by-passing login page using a link

2005-03-10 Thread Anderson, M. Paul
It is my understanding that the JDBC realm will execute prior to any filters or other servlets, so I wouldn't think this would be possible unless you perform your own authentication - possibly in a filter - to do just what you're looking for. -Original Message- From: Fredrik Liden

RE: Mapping context to root of website

2005-03-10 Thread Ronnie Tartar
Is there a way to do this with jk or jk2? Thanks -Original Message- From: Ronnie Tartar Sent: Monday, March 07, 2005 11:46 AM To: Tomcat Users List Subject: RE: Mapping context to root of website This is how I use to be able to do it with mod_warp. WebAppConnection

RE: Mapping context to root of website

2005-03-10 Thread Anderson, M. Paul
How would I do this if I am just using Tomcat (no apache, IIS, etc.)??? -Original Message- From: Ronnie Tartar [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 1:50 PM To: Tomcat Users List Subject: RE: Mapping context to root of website Is there a way to do this with jk or

Workers, workers, how do they work??

2005-03-10 Thread Klaus-F. Kaal
Hi, I am not really sure that I understand the workers right. I interface Apache 2.0.48 with Tomcat 5.0.28 via mod_jk. Obviously, Apache accepts mod_jk to some extend, because, I get this in the _mo_jk.log_: [Thu Mar 10 20:05:21 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI

Re: Connection pooling verse one connection per session

2005-03-10 Thread QM
On Thu, Mar 10, 2005 at 10:31:41AM -0800, Mark Winslow wrote: : Hi, I have a sort of theoretical question. I'm : wondering about the pros and cons of using a one : connection per tomcat session strategy for connecting : to a Postgresql server rather than connection pooling. The great benefit of

Access Threads informations/state

2005-03-10 Thread David Causse
Hi, 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). When the user hit the Home link I have to clean all the session attributes, but I don't

Re: Access Threads informations/state

2005-03-10 Thread QM
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 to refactor

Re: Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
OK, I see your points and they are well taken. A lot of my concern has to do with this http://jakarta.apache.org/tomcat/tomcat-5.5-doc/printer/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations There is one problem with connection pooling. A web

Re: Workers, workers, how do they work??

2005-03-10 Thread Adrian Robert
On Mar 10, 2005, at 2:29 PM, Klaus-F. Kaal wrote: I am not really sure that I understand the workers right. I interface Apache 2.0.48 with Tomcat 5.0.28 via mod_jk. It looks like you're trying to use a mod_jk2 config file format with mod_jk. You want a file (better called workers.properties)

Re: Connection pooling verse one connection per session

2005-03-10 Thread QM
On Thu, Mar 10, 2005 at 12:30:22PM -0800, Mark Winslow wrote: : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/printer/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations : : There is one problem with connection pooling. A web : application has to

Re: Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
I'm still not entirely sure about this issue. The close/=null + finally blocks make for pretty ugly and error prone code if you ask me. Why doesn't the connection pool encapsulate closing anyway? Can't it encapsulate closing into the finalize() methods? Are there ordering issues for closing

Strange error-page behavior

2005-03-10 Thread Dustin
Hey all. Very bizzare problem here. I am running tomcat-5.0.28. I am trying to set up custom error pages. I originally set up a 404 error page for testing (the error-page elements are in the server web.xml, not in the app's web.xml): error-page error-code404/error-code

RE: Connection pooling verse one connection per session

2005-03-10 Thread Caldarale, Charles R
On Thu, Mar 10, 2005 at 10:31:41AM -0800, Mark Winslow wrote: 2. Have better control of connection releases via the finalize() method in a session helper class that contains the one single connection. I hope you meant finally clause rather than finalize() method. A finalize() method is

RE: Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
if ever.??? Is that really the case? My personal experience with Tomcat is that it does indeed have memory leak problems. In theory, shouldn't all objects created in a web user session eventually be garbage collected after the session ends? I in fact did mean the finalize() method. Is that the

RE: Connection pooling verse one connection per session

2005-03-10 Thread Caldarale, Charles R
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: RE: Connection pooling verse one connection per session if ever.??? Is that really the case? My personal experience with Tomcat is that it does indeed have memory leak problems. Nearly all the memory leaks I've seen have been in the

Re: Connection pooling verse one connection per session

2005-03-10 Thread QM
On Thu, Mar 10, 2005 at 01:52:02PM -0800, Mark Winslow wrote: : I'm still not entirely sure about this issue. The : close/=null + finally blocks make for pretty ugly and : error prone code if you ask me. Well, certainly no one's forcing you to code that way. It's just a fairly standard

RE: Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
I don't know. I have one pure Tomcat (no Apache) server that all it does is serve about 300,000 static files per day. The memory usage grows and grows unexplicably. I run a cron job that restarts it everyday, which I had to started running with version 5.0.something or else it would eventually

RE: Connection pooling verse one connection per session

2005-03-10 Thread Mark Winslow
Sorry, just had one other question about the use of static variables. Can this really be a problem? I thought that a static variable only gets a single copy per JVM/Context. For instance the use of static variables to define formats shouls save on memory usage shouldn't it? public class Helper

RE: Connection pooling verse one connection per session

2005-03-10 Thread Caldarale, Charles R
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: RE: Connection pooling verse one connection per session The memory usage grows and grows unexplicably. Modern JVMs also try to avoid doing GC if they can. So, if you've given the JVM a large amount of memory, it will use it all before

Tuning of Tomcat 5.5

2005-03-10 Thread Rolf Zelder
Hi Guys For the last couple of days I tried to find some information regarding tuning of Tomcat 5.5 Online or as a Book but couldn't find much. Where could I get any information about this ? I performed following steps to tune my tomcat. 1. Gave tomcat enough memory to run efficient 2.

Multiple threads for one submit...how to limit?

2005-03-10 Thread Jonathan Wilson
I need some good advice: I've got a production app running on a Redhat box that is having problems with the SAN which is causing all processes to slow/stall with heavy IO(CPU util is like 3%); the network/admin guys are working on that part but it's been ongoing. On two occasions during

x509 Certificate Public key Problem - HELP

2005-03-10 Thread Sanjeev Srivastava
Hi all ! I am facing problem in displaying Public Key. When I am pasring X509 certificate the Public Key is coming as a very long String as as given in Format 1 below, though it should come like as given in Format 2 below. out.println(x509certificate.getPublicKey()); I am using Bouncy Castle

Re: Limiting number of login attempts

2005-03-10 Thread Bob Feretich
I did it by providing a custom JDBC realm? If you use the existing realm as a model, the changes are not that difficult. The server.xml file allows you to specify the class path of the custom realm and pass database column names for failed_login_count and last_failed_login_timestamp as

Re: Multiple threads for one submit...how to limit?

2005-03-10 Thread Woodchuck
the way i handled this is with javascript. on my save button i simply invoke a javascript function on the onclick event. it checks a javascript page-scoped flag variable to see if save button has been clicked or not. if it has, then i popup a message saying the previous submit is still being

Re: Mapping context to root of website

2005-03-10 Thread Parsons Technical Services
Virtual Host Then define each app as the ROOT context for that host. Doug - Original Message - From: Anderson, M. Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, March 10, 2005 1:53 PM Subject: RE: Mapping context to root of website How would I

RE: Mapping context to root of website

2005-03-10 Thread Anderson, M. Paul
I'm not sure I understand what you mean but I'll do some researching! Thanks! -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thu 3/10/2005 9:42 PM To: Tomcat Users List Subject: Re: Mapping context to root of website Virtual Host Then define each

Re: Mapping context to root of website

2005-03-10 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html Sorry for the short reply. I don't always get the luxury to go into details. The above link will take to the host element. Each host element handles a URL (www.mytest.com). What you do is copy the host element in the server.xml and

RE: Connection pooling verse one connection per session

2005-03-10 Thread Caldarale, Charles R
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: RE: Connection pooling verse one connection per session Sorry, just had one other question about the use of static variables. Can this really be a problem? I thought that a static variable only gets a single copy per JVM/Context. For

RE: load-balancing

2005-03-10 Thread Sng Wee Jim
I am using jk 1.2.8 My workers.properties === ps=\ worker.list=loadbalancer worker.tomcat1.type=ajp13 worker.tomcat1.host=localhost worker.tomcat1.port=8009 worker.tomcat1.lbfactor=1 worker.tomcat1.socket_timeout=5 worker.tomcat1.recycle_timeout=10

Single Sign On(SSO) problem

2005-03-10 Thread xue daoming
Hi, All 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? Thanks! - To unsubscribe, e-mail: [EMAIL