SocketException: Software caused connection abort: recv failed

2004-09-10 Thread Antony Paul
Hi , I am getting this error when SSL is enabled. Sep 10, 2004 11:14:30 AM org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Remote Host /192.168.4.66 SocketException: Software caused connection abort: recv failed This is on console. What may be the cause for it ?. Tomcat 4.1.30 Java

[OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat Connection Pooling Questions????

2004-09-10 Thread Luke (Terry) Vanderfluit
Hi Yoav and all, - Hold the connection for as little a time as possible. That is, get it from the pool, use it, and return it to the pool as soon as possible. - That means you don't get the connection in a servlet init() method and return it in a destroy() method. That's too long a time to

AW: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-10 Thread SH Solutions
Hi Sorry, I haven't read the whole treads, but: Before I made this change I didn't have a conn.close() statement or a finally clause anywhere either (I DID have resultset.close and statement.close()). Never never do that. If you do not call connection.close(), the connection is NOT returned to

Re: How to create/run a Java Service on UNIX

2004-09-10 Thread Nikola Milutinovic
John Najarian wrote: It's very easy to launch a Java daemon in Linux/Unix. It used to be difficult require some JNI programming. On the GNU site I found a slick way someone wronte in Java and it is simple. What I wanted to know from the person asking the question is what they're trying to do

$catalina_home/work/* ??

2004-09-10 Thread David . Pawson
tc 5.0.27 After running tc for a while, a directory work has suddenly appeared, with contents /work /Catalina /localhost with a directory structure mirroring the whole app, each containing a xxx.ser file (binary) What are these please? Regards DaveP. snip here * -- DISCLAIMER:

segmentation faults with jk2 w/ apache 2.0.50 and jakarta-tomcat-5.0.18/24

2004-09-10 Thread Alex
First i'll describe the environment: [environment] Linux monkeyboy 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686 i686 i386 GNU/Linux apache-2.0.50 with the following options: --enable-so \ --enable-http \ jakarta-tomcat-connectors-jk2-2.0.4-src compiled with the following: --with-jni

access restriction limits

2004-09-10 Thread David . Pawson
With a single context is it possible to have variant access roles for different child directories or different html files within the single context? /webapps /myapp a.html b.jsp c.html Is it possible to configure 3 different roles for a.html b.jsp c.html? I.e. to restrict users

Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread MATHOT Jacques
Hi All, I am implementing an upload function for my web applications using Tomcat 4.0.14 server. I was expecting the files to be stored on the root directory of my application and not in one of the own Tomcat directories. How can I specify that the directory to be used is my application root

Re: Can session time be modified at runtime?

2004-09-10 Thread Tim Funk
The session timeout can be changed at runtime (sort of). If you change web.xml - you would need to restart your webapp. This would cause a brief outage while sessions are saved to ???. (Unless your using clustering) If you really need this changed on the fly, this might be able to be changed

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread Tim Funk
javascript:history.go(-1) ? -Tim Keith Hankin wrote: Here's the scenario: I am getting input data from the user and have determined that the user has made an error. I want to redisplay the last page so they can fix the errors. - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat

Re: $catalina_home/work/* ??

2004-09-10 Thread Tim Funk
The ser files are generated on shutdown which store the current sessions. If you don't want these - see the FAQ on how to get rid of them. -Tim [EMAIL PROTECTED] wrote: tc 5.0.27 After running tc for a while, a directory work has suddenly appeared, with contents /work /Catalina /localhost

Re: access restriction limits

2004-09-10 Thread Tim Funk
You can but it is a PITA. The servlet spec doesn't do well for fine grained control of resources withoiut a lot of effort (in web.xml) -Tim [EMAIL PROTECTED] wrote: With a single context is it possible to have variant access roles for different child directories or different html files within

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread Keith Hankin
My code is in the Servlet, and I can't access Javascript within the Servlet. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 10, 2004 4:10 PM Subject: Re: 'referer' header contains Servlet path, not referrer

RE: $catalina_home/work/* ??

2004-09-10 Thread David . Pawson
-Original Message- From: Tim Funk The ser files are generated on shutdown which store the current sessions. If you don't want these - see the FAQ on how to get rid of them. Thanks Tim. Just wanted to make sure they were there for a good reason. regards

RE: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread Bedrijven.nl
I think you should use struts. -Oorspronkelijk bericht- Van: Keith Hankin [mailto:[EMAIL PROTECTED] Verzonden: Friday, September 10, 2004 11:52 AM Aan: Tomcat Users List Onderwerp: Re: 'referer' header contains Servlet path, not referrer My code is in the Servlet, and I can't access

RE: access restriction limits

2004-09-10 Thread David . Pawson
-Original Message- From: Tim Funk You can but it is a PITA. The servlet spec doesn't do well for fine grained control of resources withoiut a lot of effort (in web.xml) With 3 days reading/trials, I'm coming to that conclusion. Does that mean I need

Re: Can session time be modified at runtime?

2004-09-10 Thread Mike Fowler
You could use the session instance method setMaxInactiveInterval which takes a single int paramter which is the maximum time in seconds between client requests before invalidation. For example, for ten minute timeout: session.setMaxInactiveInterval(600); -Mike Fowler I could be a genius if I

Re: access restriction limits

2004-09-10 Thread Tim Funk
No. You can define multiple roles in web.xml. A simple way of doing so is to split your roles by directory. /rolea/ /roleb/ /rolec/ -Tim [EMAIL PROTECTED] wrote: -Original Message- From: Tim Funk You can but it is a PITA. The servlet spec doesn't do well for

Re: Can session time be modified at runtime?

2004-09-10 Thread Arun Prasad R
hi if i don't control in application, so i can not do session.setMaxInactiveInterval(600); but for that application i experience frequent timeout. is there any other way, so that i need not to restart tomcat arun On Fri, 10 Sep 2004 11:59:39 +0100, Mike Fowler [EMAIL PROTECTED] wrote: You

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread Ronald Klop
You can send this back to the browser. body onload='alert(you have an error.); history.go(-1);'/body On Fri Sep 10 12:51:42 CEST 2004 Keith Hankin [EMAIL PROTECTED] wrote: My code is in the Servlet, and I can't access Javascript within the Servlet. - Original Message - From: Tim Funk

Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Arun Prasad R
hi you can set a session property like System.setProperty(user.dir, /your/application/home); this will change the applications current working dir. i have not checked the side effects. whether tomcat will be affected by this action or not arun On Fri, 10 Sep 2004 12:00:45 +0200, MATHOT Jacques

Question about multiple instances instead virtual hosts

2004-09-10 Thread Bedrijven.nl
Hello, Now I have a production server with tomcat 4.1.24. I have several applications installed (in webapps) and sets them up as virtual hosts. I get the idea that using multiple instances would work better for me. I read the documentation but what I read is there are 2 possible solutions: for

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread Keith Hankin
Struts is an awfully heavy way to solve this little problem. Besides, we're using JDO combined with a light-weight framework that solves most of the problems addressed by Struts. - Original Message - From: Bedrijven.nl [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent:

Re: Read MS Word using Java?

2004-09-10 Thread Dov Rosenberg
We use an open source library from http://www.textmining.org/ - it seems to work OK. On 9/10/04 12:32 AM, Aris Javier [EMAIL PROTECTED] wrote: Hello everyone! I know this is out of tomcat discussion.. but I need help on how to read MS Word files in java.. does anybody have working

How to configure jakarta-struts-1.2.2 with tomcat 4.1.27

2004-09-10 Thread Arun Prasad R
hi all, i want to know step by step process of configuring jakarta-struts-1.2.2 with tomcat 4.1.27, any help thanks in advance arun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
My recommendations: - Use one installation and define CATALINA_BASE for each. - Define one virtual ip per instance - bind each instance to one ip -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 2:16 PM To: 'Tomcat Users List' Subject:

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-10 Thread Shapira, Yoav
Hi, I'd say your new version is much better designed and significantly more scalable than the old, yeah. But you went a bit too far: the DataSource lookup is potentially expensive. That you can do in the init() method and keep a reference to the DataSource, because keeping that reference

RE: Can session time be modified at runtime?

2004-09-10 Thread Shapira, Yoav
Hi, Why don't you investigate the cause for your timeouts instead of jumping through hoops to apply band-aids? ;) Consider an HttpSessionLister to track your sessions in a portable manner. Then you can zoom though the sessions and do whatever you want (e.g. invalidate or extend the timeout) as

RE: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav
Hi, Both this and the original poster's intent are pretty bad as far as portability goes. First, instead of re-inventing the wheel, use a good and proven componet for upload handling, like commons-fileupload (http://jakarta.apache.org/commons/fileupload/using.html). Second, know that the

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Bedrijven.nl
can you give examples of: - how to define CATALINA_BASE (i.e. a new director applications/applicationX/webapps, applications/applicationY/webapps etc is that OK??) - how to bind the one ip address?? Maarten -Oorspronkelijk bericht- Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED]

RE: How to create/run a Java Service on UNIX

2004-09-10 Thread Shapira, Yoav
Hi, Commons-Daemon is used by Tomcat (in fact, it used to be part of the Tomcat internals before we made it more generic and its own project). To the OP: get a basic unix sysadmin book, it will cover cron and daemons. These are fairly essential basic unix skills, so if you work in the unix

[OFF-TOPIC] RE: Read MS Word using Java?

2004-09-10 Thread Shapira, Yoav
Hi, Please mark off-topic threads on this list as such by adding the [OFF-TOPIC] prefix to your subject line. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 12:32 AM To: [EMAIL

RE: shutdown tomcat in command line error

2004-09-10 Thread Shapira, Yoav
Hi, One idea: instead of copying all around, do a clean installation, try start and stop out of the box, make sure that works for you. After that, apply your configuration changes slowly (possibly one at a time) to see which one causes this error. Yoav Shapira Millennium Research Informatics

Re: [OFF-TOPIC] RE: Read MS Word using Java?

2004-09-10 Thread Rhino
Have a look at POI, http://jakarta.apache.org/poi. I've never used it but I stumbled across it while researching a similar question the other day. Rhino - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 10, 2004

Tomcat Start.bat and shutdown.bat

2004-09-10 Thread Venkat Radha Venkataramanan
Hello: When I installed Tomcat 5.5.1 on Windows XP Professional, it failed to create the program group. I understand that it should have created two batch files for starting and shutting down the Tomcat instance. Can somebody share with me either the batch files or the command line for

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
To bind a IP to an engine have a look at either: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html For the installation structure: First: Have a look at RUNNING.txt in the tomcat distribution ... Second: We

Re: Tomcat Start.bat and shutdown.bat

2004-09-10 Thread Hongsong Zhou
http://www.mail-archive.com/[EMAIL PROTECTED]/msg135694.html [EMAIL PROTECTED] 09/10/04 08:49AM Hello: When I installed Tomcat 5.5.1 on Windows XP Professional, it failed to create the program group. I understand that it should have created two batch files for starting and shutting down

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread QM
On Fri, Sep 10, 2004 at 11:19:09AM +0530, Keith Hankin wrote: : Here's the scenario: I am getting input data from the user and have : determined that the user has made an error. I want to redisplay the last : page so they can fix the errors. Someone mentioned Struts as a solution. That, in and

Re: How to configure jakarta-struts-1.2.2 with tomcat 4.1.27

2004-09-10 Thread QM
On Fri, Sep 10, 2004 at 05:58:46PM +0530, Arun Prasad R wrote: : i want to know step by step process of configuring : jakarta-struts-1.2.2 with tomcat 4.1.27, Struts is a collection of JARs and XML files meant to be used within a webapp. See the Tomcat docs for setting up a webapp (review the

RE: Running EXE CGI's from Tomcat 5.0.28

2004-09-10 Thread Mike Curwen
Try this: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=56t= 002491 -Original Message- From: Benjamin Goldsmith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 8:38 PM To: [EMAIL PROTECTED] Subject: Running EXE CGI's from Tomcat 5.0.28 Is

basic FORM-based authentication failing

2004-09-10 Thread Fred Blaise
Hello all I have been trying to set up FORM based authentication, but it only works half-way. When I try to get to the protected resource, it sends me to the login page: good. If I authenticate incorrectly, then it sends me to the login error page: good. If I authenticate _correctly_, it also

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Bedrijven.nl
I think I want to use several Tomcat installations, since the applications are not so dependent on one jvm. So how could I do that?? (especially all connect to port 80) Maarten -Oorspronkelijk bericht- Van: Bedrijven.nl [mailto:[EMAIL PROTECTED] Verzonden: Friday, September 10, 2004

Re: 'referer' header contains Servlet path, not referrer

2004-09-10 Thread erh
On Fri, Sep 10, 2004 at 12:58:30PM +0200, Bedrijven.nl wrote: I think you should use struts. How would that help? Struts is completely useless for figuring out which page a user came from. -Oorspronkelijk bericht- Van: Keith Hankin [mailto:[EMAIL PROTECTED] Verzonden: Friday,

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
You just need one installation. See my previous post for an exaple structure. -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 4:42 PM To: 'Tomcat Users List' Subject: RE: Question about multiple instances instead virtual hosts I

Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread erh
On Fri, Sep 10, 2004 at 12:00:45PM +0200, MATHOT Jacques wrote: I am implementing an upload function for my web applications using Tomcat 4.0.14 server. I was expecting the files to be stored on the root directory of my application and not in one of the own Tomcat directories. How can I

Re: [SOLVED] basic FORM-based authentication failing

2004-09-10 Thread Fred Blaise
Awful typo... works much better when j_user_name is spelled j_username Issue resolved. Thanks. fb. Quoting Fred Blaise [EMAIL PROTECTED]: Hello all I have been trying to set up FORM based authentication, but it only works half-way. When I try to get to the protected resource, it

RE: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav
Hi, This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your

Re: Question about multiple instances instead virtual hosts

2004-09-10 Thread Mark Lowe
One reasonably strait forward way is to have a different startup script for each host.. The tricky part comes when you need to start them all up (nothing another shell script cant deal with). export JAVA_HOME=/opt/jdkversion export CATALINA_HOME=/opt/tomcat-4.1 export

DBCP Performance?

2004-09-10 Thread Henrik Rathje
Hi, has enyone of you recently measured the performance of the DBCP Connection Pool? I compared snip long start = System.currentTimeMillis(); Class.forName(ca.edbc.jdbc.EdbcDriver); Connection dbcon = DriverManager.getConnection(loginUrl, loginUser, loginPa$ long diff = System.currentTimeMillis()

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-10 Thread Shilpa Nalgonda
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact ory, cause: java.sql.SQLException: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(E RR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4 at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)

RE: DBCP Performance?

2004-09-10 Thread Shapira, Yoav
Hi, The initial connections can be closed if idle, depending on your pool configuration, so you might be creating new connections each time even with the pool. Check your minIdle setting. If you're creating a new connection each time, a tiny bit of overhead can be expected for a pool over a

Re: tomcat as AJP frontend to other tomcats?

2004-09-10 Thread Matt Robinson
Tore, We have a somewhat similar configuration. By configuring workers in your main Tomcat, you can redirect your client1, client2,... clientN contexts to other tomcat servers via AJP13. The Tomcat documentation has some decent examples of how to configure this (at least in 3.2.4 which is what

which jar files help accomplish JNDI/LDAP/ADS authentication in 4.1.12

2004-09-10 Thread Robyne Vaughn
I have a configuration of tomcat 4.1.17 which uses a JNDI realm to authenticate to Active Directory Server. It works well. Unfortunately, I must accomplish the same thing in a configuration of Tomcat 4.1.12 in order to be in step with a vendor supplied tool. 4.1.12 is not able to accomplish

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-10 Thread Shapira, Yoav
Hi, Look at the cause. The connection is refused by your database. It's not a Tomcat problem, it's likely a simple misconfiguration. Use another tool to figure out the correct DB connection parameters, or ask your DBA if you're not sure. Yoav Shapira Millennium Research Informatics

Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread erh
On Fri, Sep 10, 2004 at 10:57:18AM -0400, Shapira, Yoav wrote: Isn't that crap self-evident? ;) Most companies attach such footers and related disclaimers or legal notices to all outgoing mail, and most users can't control it. well then you shouldn't be using a work email address to

Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread John Villar
Actually, the list and all its recipients are the actual individual(s) (Lawyer lingo, yuck!!) the mail is intended to Remember, most of us have a daily work and use tomcat as a tool on our works... [EMAIL PROTECTED] escribió: On Fri, Sep 10, 2004 at 10:57:18AM -0400, Shapira, Yoav wrote:

RE: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav
Hi, Nope, I don't expect the maintainers of this list to strip out my messages. They, you, and all the subscribers to the list (including computerized archive addresses like MARC and Eyebrowse) are the intended individual(s) for whom this email is addressed, so they may save and copy it. I had

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
Hi, The minIdle value during this test was: parameter nameminIdle/name value20/value /parameter any other suggestions? Thanks in advance, Henrik On Fri, 10 Sep 2004 11:21:08 -0400 Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, The initial connections can be closed if idle,

RE: DBCP Performance?

2004-09-10 Thread Shapira, Yoav
Hi, Hmm, with minIdle set to 20 and assuming your test gets one connection at a time (or less than 20 at a time), I'm a bit confused. One next step would be to really verify that the pool has available connections before the get connection call. You obviously wouldn't do this in a production

RE: Tomcat Start.bat and shutdown.bat

2004-09-10 Thread Venkat Radha Venkataramanan
Hongsong: I tried using the batch files I found in the zipped version. Here's the problem I am running into. I have JRE 1.4.2 installed on my machine. But SetClassPath.bat looks for the following executables in JAVA_HOME: java.exe javaw.exe jdb.exe javac.exe In my case, javac.exe and jdb.exe

RE: Tomcat Start.bat and shutdown.bat

2004-09-10 Thread Hongsong Zhou
You should install JDK instead of JRE. If you install JDK, you'll have all these 4 exe files. If you only installed JRE, you'll not be able to compile servlets and jsps. [EMAIL PROTECTED] 09/10/04 11:06AM Hongsong: I tried using the batch files I found in the zipped version. Here's the

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
Hi, seems you are rite: org.apache.commons.dbcp.BasicDataSource source = (org.apache.commons.dbcp.BasicDataSource)ds; System.out.println(num of idle connections + source.getNumIdle() ); System.out.println(num of max act connections + source.getMaxActive() );

RE: Tomcat Start.bat and shutdown.bat

2004-09-10 Thread Shapira, Yoav
Hi, One of the big Tomcat 5.5 changes is that there's no need for a JDK, only a JRE. But maybe there's a bug in the Tomcat 5.5.1 setclasspath.bat ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Hongsong Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, September

RE: DBCP Performance?

2004-09-10 Thread Shapira, Yoav
Hi, Try minIdle = 19, maxIdle = 20, maxActive = 20, initialSize = 20. I think the maxActive 0 effectively means no pooling. Yoav Shapira Millennium Research Informatics -Original Message- From: Henrik Rathje [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 12:20 PM To:

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-10 Thread Shilpa Nalgonda
But i use the same configuration and try to connect without using datasource i have no error. I have used this code to connect-- Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@IPADDRESS:1521:ODINPRD,

Issue Running Current Forrest Dev under Tomcat 5

2004-09-10 Thread Hare, Michael
Hi, I am coming from the Forrest Mailing List. I noticed that forrest 0.6 was causing a problem when trying to access the Tomcat homepage. I first noticed the problem with Tomcat 5.0.27 (I never tried anything earlier), but it carries through to 5.0.28 and 5.5.1 (I am currently using Windows

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
Hi, I tried your settings, but getNumIdle() still returns 0. Why that? The maxActive value was 0 because i thought this is neccesary to let the pool never run out of connections: http://jakarta.apache.org/commons/dbcp/configuration.html maxActive default:8The maximum number of

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
I have to correct myself: getNumIdle() returned 19 after a little bit of waiting. but getConnection( ) still takes 1238 miliseconds. Henrik On Fri, 10 Sep 2004 18:47:46 +0200 Henrik Rathje [EMAIL PROTECTED] wrote: Hi, I tried your settings, but getNumIdle() still returns 0. Why that? The

Re: DBCP Performance?

2004-09-10 Thread Peter Lin
wow, that just seems wrong. Have you tried other jdbc drivers? I know from first hand experience with Oracle's jdbc driver, w/o pooling it's minimum of 100ms to get connection. With pooling, it's usually less than 5ms. peter On Fri, 10 Sep 2004 18:56:42 +0200, Henrik Rathje [EMAIL PROTECTED]

mod_jk2 : apr_socket_send error

2004-09-10 Thread Jacques Poulin
Hi, I am hosted on linux (I'm pretty sure it's redhat, but not 100%), with apache 2.0.40 running to handle my Perl scripts. I want to be able to run Tomcat side-by-side with Apache to handle all JSP requests. I hope that I'm right in figuring out that mod_jk2 is the module that I need...

Re: mod_jk2 : apr_socket_send error

2004-09-10 Thread QM
On Fri, Sep 10, 2004 at 01:03:42PM -0400, Jacques Poulin wrote: : Cannot load /etc/httpd/modules/mod_jk2.so into server: : /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send : [snip] : I was hoping someone could help me. I've seen a lot of messages in the : archive about the

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
hi, im note sure if there exists another jdbc driver for ingres beside the one i use. can this really be a driver issue? which connectionpool did you use while doing the measurements for your 'so you want high performance' paper? regards, henrik On Fri, 10 Sep 2004 12:02:13 -0500 Peter Lin

Re: DBCP Performance?

2004-09-10 Thread Peter Lin
I used oracle's drivers :) since I'm most experienced with Oracle and I have it installed at home for development. peter On Fri, 10 Sep 2004 19:11:53 +0200, Henrik Rathje [EMAIL PROTECTED] wrote: hi, im note sure if there exists another jdbc driver for ingres beside the one i use. can this

Re: DBCP Performance - solved.

2004-09-10 Thread Henrik Rathje
Hi, i did not change any settings, no restart and no anything; but now the timings are: 67 miliseconds pool 956 miliseconds nopool. seems it simply takes several minutes until the pool is ready to use. sorry for asking those stupid questions + thanks for helping, Henrik On Fri, 10 Sep 2004

RE: Issue Running Current Forrest Dev under Tomcat 5

2004-09-10 Thread Shapira, Yoav
Hi, How does Forrest 0.6 configure (or try to) its logging? Yoav Shapira Millennium Research Informatics -Original Message- From: Hare, Michael [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 12:38 PM To: Tomcat Users List Subject: Issue Running Current Forrest Dev under

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-10 Thread Shapira, Yoav
Hi, It just occurred to me that at some point the DBCP configuration changed from username to user as the user name parameter. Try changing username to user in your configuration file and restarting Tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: Shilpa

Re: DBCP Performance - solved.

2004-09-10 Thread Peter Lin
it's an easy mistake to make. the usual trick to benchmark and performance testing is to prime the server a bit. we've all made that mistake at some point. peter On Fri, 10 Sep 2004 19:35:43 +0200, Henrik Rathje [EMAIL PROTECTED] wrote: Hi, i did not change any settings, no restart and no

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-10 Thread Shilpa Nalgonda
When i do that i get invalid arguments error.. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:38 PM To: Tomcat Users List Subject: RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using

RE: Issue Running Current Forrest Dev under Tomcat 5

2004-09-10 Thread Hare, Michael
Hi Yoav, The only log files I find for forrest are located in forrest's WEB-INF/logs directory under webapps. The log files are 9 of them and they are all empty. Other than that I do not know how forrest performs logging. - m -Original Message- From: Shapira, Yoav [mailto:[EMAIL

RE: How to create/run a Java Service on UNIX

2004-09-10 Thread Daxin Zuo
First I thank very much for the replies. Please continue forward instruction. this service, written in Java, will serves two applications: one is online with Tomcat, and another one is an offline application. these two applications will sometimes update the same data tables. This service will

RE: How to create/run a Java Service on UNIX

2004-09-10 Thread John Najarian
Hi Daxin, How are you going to genereate the keys? Via the database? Also, seeing as you are going to use 'service' with without Tomcat I'd like to know if either application will be up as long as the server(s) is up. If that's the case you could have both applications check at startup if

RE: How to create/run a Java Service on UNIX

2004-09-10 Thread Mike Curwen
I think we should assume that 'the program' will function correctly and do what it's advertised to do, since if that was the actual problem, then a list like 'java-rmi-user' or 'java-io-user' would be more appropriate. The tomcat application, and that second application should be coded to handle

Re: How to create/run a Java Service on UNIX

2004-09-10 Thread Tom Simons
Are you just looking for Unix to start a daemon every time it boots? That's typically done via a shell script, which accepts start stop arguments (sometimes start_msg stop_msg, too). These scripts are in /etc/init.d (/sbin/init.d for HPUX), and there are corresponding links in /etc/rc.*

at the tomcat start up...log4j error..

2004-09-10 Thread Shilpa Nalgonda
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester). log4j:WARN Please initialize the log4j system properly. Starting service Tomcat-Standalone I am getting the above error as the tomcat starts up, i hav elog4j.jar under commom/lib and log4j.proprties under

RE: How to create/run a Java Service on UNIX

2004-09-10 Thread Daxin Zuo
Thank John, Mike, and Tom, and all other repliers. I hope Tome's instruction will work. I left UNIX for a long time. What Tom told is familiar to me. I will test it after next week. It is still a (rare) case that the Sever is not up when one of the applications talks to it. In this rare case, I

Re: Running EXE CGI's from Tomcat 5.0.28

2004-09-10 Thread Benjamin Goldsmith
That's the solution. Thanks! Set executable to an empty string. Thanks! Mike Curwen wrote: Try this: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=56t= 002491 -Original Message- From: Benjamin Goldsmith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09,

How to make Apache direct Servlet to Tomcat

2004-09-10 Thread Daxin Zuo
My Apache 2.0.49 Tomcat 5.0.19, windows 2000. (Soon I will move them to UNIX) I have a difficult in running servlet from Apache. For example I have a servlet TestServlet.class (package: myServlet) in C:\Program Files\Apache Group\Apache2\tomcat\webapps\ROOT\WEB-INF\classes\myServlet\ I register

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-10 Thread Luke (Terry) Vanderfluit
Hi Yoav and all, Thanks for your reply, But you went a bit too far: the DataSource lookup is potentially expensive. That you can do in the init() method and keep a reference to the DataSource, because keeping that reference doesn't use a connection resource. Then in your servlet methods,

Re: at the tomcat start up...log4j error..

2004-09-10 Thread Jacob Kjome
At 05:21 PM 9/10/2004 -0400, you wrote: log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester). log4j:WARN Please initialize the log4j system properly. Starting service Tomcat-Standalone I am getting the above error as the tomcat starts up, i hav elog4j.jar under