Nikola Milutinovic wrote:
[EMAIL PROTECTED] wrote:
I think all servlet tags should be defined prior to defining the
servlet-mapping tags.
You could be right. I added both ResourceRef and the second Servlet
definition at the same time, thinking that itæs OK.
I'll test it on Monday.
-Original Message-
From: Soefara Redzuan
To: [EMAIL PROTECTED]
Sent: 3/17/02 12:02 AM
Subject: RE: jndi versus database connection pooling
Maybe but if it's just the docs that you're missing, why not get them
from
the Apache site ?
http://jakarta.apache.org/tomcat/tomcat-4.0-doc
[EMAIL PROTECTED] wrote:
I think all servlet tags should be defined prior to defining the
servlet-mapping tags.
You could be right. I added both ResourceRef and the second Servlet definition
at the same time, thinking that itæs OK.
I'll test it on Monday.
Nix.
--
To unsubscribe:
-howto.html, ssl-howto.html,
index.html, introduction.html and ..
Am I missing something here?
Thanks
Bing Zhang
-Original Message-
From: Craig R. McClanahan
To: Tomcat Users List
Sent: 3/15/02 11:26 PM
Subject: Re: jndi versus database connection pooling
On Sat, 16 Mar 2002, Soefara
: RE: jndi versus database connection pooling
Date: Sat, 16 Mar 2002 18:19:13 -0800
I asked this before, but got no answear. Since we are talking about docs,
here we go again.
I installed tomcat-4.0.1, 4.0.1-manuls and 4.0.1-webapps, all from rpms on
RedHat 6.2. However some of key docs under
I use the JNDI based connection pool with Postgres quite successfully.
You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a
server.xml configuration something like this:
Finally, someone using PostgreSQL...
Context path=/foo ...
What about automatically
On Fri, 15 Mar 2002, Nikola Milutinovic wrote:
Date: Fri, 15 Mar 2002 14:08:38 +0100
From: Nikola Milutinovic [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
I use the JNDI
[EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
I use the JNDI based connection pool with Postgres quite successfully.
You will need to have postgresql.jar in $CATALINA_HOME/common
Craig R. McClanahan wrote:
In 4.0.x, automatically deployed contexts with no Context entry do not
have any resources assigned to match up the resource references.
Therefore, you must explicitly define such webapps in the server.xml file
to give them access to the corresponding JNDI
I think all servlet tags should be defined prior to defining the
servlet-mapping tags.
RS
Nikola Milutinovic [EMAIL PROTECTED] on 03/15/2002 01:46:47 PM
Please respond to Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject: Re: jndi versus database
On Fri, 15 Mar 2002, Nikola Milutinovic wrote:
Date: Fri, 15 Mar 2002 20:46:47 +0100
From: Nikola Milutinovic [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
Craig R. McClanahan
DataSource ds = null;
Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup( java:comp/env );
ds = (DataSource)envCtx.lookup( jdbc/DB );
The problem is that returned datasource is always null.
I wish I could get that far. I am using a web.xml that is
PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
DataSource ds = null;
Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup( java:comp/env );
ds = (DataSource)envCtx.lookup( jdbc/DB );
The problem is that returned
Oh dear, Craig, I'm fairly embarassed. Sorry.
You're going to kick yourself ... the required element name is
res-ref-name, not resource-ref-name :-).
I should have noticed that when I copied my web.xml right next to the
previous person's. What is it they say about being so close to a problem
On Sat, 16 Mar 2002, Soefara Redzuan wrote:
Date: Sat, 16 Mar 2002 15:03:10 +0800
From: Soefara Redzuan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
Oh dear, Craig, I'm fairly embarassed. Sorry
: Thursday, March 14, 2002 6:51 AM
Subject: Re: jndi versus database connection pooling
On Thu, 14 Mar 2002, Dave Whitla wrote:
Date: Thu, 14 Mar 2002 16:22:01 +1000
From: Dave Whitla [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED
/2002 04:18:13 AM
Please respond to Tomcat Users List [EMAIL PROTECTED]
To:Tomcat Users List [EMAIL PROTECTED]
cc:
Fax to:
Subject:Re: jndi versus database connection pooling
There's a lot to configure to get it to work.
The coding side seems to be well documented, and there have been
]
Sent: Thursday, March 14, 2002 6:51 AM
Subject: Re: jndi versus database connection pooling
On Thu, 14 Mar 2002, Dave Whitla wrote:
Date: Thu, 14 Mar 2002 16:22:01 +1000
From: Dave Whitla [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL
Mark Muffett [EMAIL PROTECTED] on 03/14/2002 04:18:13 AM
The coding side seems to be well documented, and there have been
several instances posted here, but (as far as I can see) we're all
working in the dark with server.xml. I've spent a lot of time trying
to get database pooling to work with
PROTECTED]
To:[EMAIL PROTECTED]
cc:
Fax to:
Subject:Re: jndi versus database connection pooling
Mark Muffett [EMAIL PROTECTED] on 03/14/2002 04:18:13 AM
The coding side seems to be well documented, and there have been
several instances posted here, but (as far as I can see) we're all
working
not allow
resource-ref-name here.
I'm surprised nobody else got this following the JNDI howto.
Soefara.
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
Date: Thu, 14 Mar 2002 11:03:07 -0500
Hi
This was one of the problems I had.
Mark
- Original Message -
From: Soefara Redzuan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 4:16 PM
Subject: Re: jndi versus database connection pooling
Yes, sorry, I was using dummy values and forgot that. Thank you
On Thu, 14 Mar 2002, Mark Muffett wrote:
Date: Thu, 14 Mar 2002 09:18:13 -
From: Mark Muffett [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
There's a lot to configure
I use the JNDI based connection pool with Postgres quite successfully.
You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a
server.xml configuration something like this:
...
One Postgres-specific note is that you have to start the postmaster
application listening for
You will need to write a PooledDataSource implementation if your JDBC driver
does not ship with one.
AFAIK mm.mysql does not.
But some one somewhere would have to have done it by now for their own
project.
- Original Message -
From: Soefara Redzuan [EMAIL PROTECTED]
To: [EMAIL
On Thu, 14 Mar 2002, Dave Whitla wrote:
Date: Thu, 14 Mar 2002 16:22:01 +1000
From: Dave Whitla [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jndi versus database connection pooling
You will need to write
26 matches
Mail list logo