looks like you are using the 5.0 docs rather than 5.5
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html
Context ...
...
Resource name=jdbc/EmployeeDB auth=Container
type=javax.sql.DataSource username=dbusername password=dbpassword
see my post from yesterday RE: JNDI DataSource GlobalResources problem :)
This exception means that TC cannot find your Resource.
Your only guess is correct! Put your Context in either
webapps/yourwebapp/META_INF/context.xml (if you are deploying in a
war)
or
small correction: putting Context inside server.xml is not recommended
since v5.0, not 5.5
-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Wednesday 27 October 2004 13:14
To: 'Tomcat Users List'
Subject: RE: Database connection pooling
see my post from
HI Thanks a lot. I am sending the server.xml and web.xml files below.
Server.xml
?xml version=1.0 encoding=utf-8 ?
- Server
Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
-
have
declare application is using which resource.
I need that also to tell you the excat issue.
Regards,
Pradeep
-Original Message-
From: Bhaskar Jyoti Phukan [mailto:[EMAIL PROTECTED]
Sent: 06.08.2004 16:49
To: Tomcat Users List
Subject: [SPAM_EMAIL] - Re: Database connection - Found
Please can you help me. I do I stop receiving emails from this
community? It's filling up my mail box rapidly
Thanks
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 9:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Database connection problems
]
cc
06/14/2004 01:06
AMSubject
RE: Database connection problems
to restart Tomcat.
-Original Message-
From: Chad Boyd
Sent: Friday, June 11, 2004 10:01 PM
To: Tomcat Users List
Subject: RE: Database connection problems after redeploying war
How about the original question. It seems we got off subject here. Can
someone please read the original post
Subject
Please respond to RE: Database connection problems
Tomcat Users after redeploying war
List
Just a side note. I couldn't get this to work in Tomcat 5.0.19. I had
to upgrade to 5.0.25.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Saturday, June 12, 2004 2:27 PM
To: [EMAIL PROTECTED]
Subject: RE: Database connection problems after redeploying war
We've got the exact same issue in our environment at all. Every time we
define a datasource, we have to restart Tomcat so that datasource can be
accessed. Additionally, when using a traditional web server frontend, like
Apache or IIS, with mod_jk or mod_jk2, we have to restart the web
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Database connection problems after redeploying war
We've got the exact same issue in our environment at all. Every time
we
define a datasource, we have to restart Tomcat so
To: [EMAIL PROTECTED]
Subject: Re: Database connection problems after redeploying war
We've got the exact same issue in our environment at all. Every time
we
define a datasource, we have to restart Tomcat so that datasource can be
accessed. Additionally, when using a traditional web server
: Database connection problems after redeploying war
We've got the exact same issue in our environment at all. Every time
we
define a datasource, we have to restart Tomcat so that datasource can be
accessed. Additionally, when using a traditional web server frontend,
like
Apache or IIS, with mod_jk
!
-Original Message-
From: Hans [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 2:29 PM
To: Tomcat Users List; 'Tomcat Users List'
Subject: RE: Database connection problems after redeploying war
Oops! Misread the stacktrace I am afraid my previous mail does not
apply to your problem
on the similar problem. Thanks again!
-Original Message-
From: Hans [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 2:29 PM
To: Tomcat Users List; 'Tomcat Users List'
Subject: RE: Database connection problems after redeploying war
Oops! Misread the stacktrace I am afraid my
There is a jspInit() method in a JSP that you can 'override' by doing:
%!
public void jspInit() {
}
%
So the answer for 'how' is; the same way
-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 12:58 PM
To: [EMAIL PROTECTED]
Subject:
where do I release my connection back into the pool?
TIA
Tom K.
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:31 PM
To: 'Tomcat Users List'
Subject: RE: Database connection going from servlet to a bean
There is a jspInit() method in a JSP
Hi,
Mike thanks for the feedback, but is this the practical solution? For
example, I am using a connection pool, the init is only done once, the
bean does the processing, after the processing it done (that is the
beans set their properties) the results are forwarded to another jsp
for viewing,
*) ;)
-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:40 PM
To: 'Tomcat Users List'
Subject: RE: Database connection going from servlet to a bean
Mike thanks for the feedback, but is this the practical
solution? For example, I am using a connection pool
:42 PM
To: Tomcat Users List
Subject: RE: Database connection going from servlet to a bean
Hi,
Mike thanks for the feedback, but is this the practical solution? For
example, I am using a connection pool, the init is only done once, the
bean does the processing, after the processing it done
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
-Tim
Luke Vanderfluit wrote:
Hi,
I want to specify a database connection in the web.xml file for an
application.
How do I do this?
Where can I find docs to describe it,
Thanks,
kind regards,
Luke
There is an discussion about the same at Sun.
http://forum.java.sun.com/thread.jsp?thread=386190forum=48message=1660462
I would use a datasource or pool to ensure a flow in the application unless you're
very sure,
that your connection implementation allows concurrent statements to be executed
Howdy,
Why did you upgrade to 4.1.23? Or was that just a typo
and you're really using 4.1.24 (as you should be)? ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 3:38 AM
To: [EMAIL PROTECTED]
Oops,
yes that was a typo (phpdev423 is in the same directory with installers ;-))).
greetz
Hans
At 08:51 AM 7/29/2003 -0400, Shapira, Yoav wrote:
Howdy,
Why did you upgrade to 4.1.23? Or was that just a typo
and you're really using 4.1.24 (as you should be)? ;)
Yoav Shapira
Millennium
Yes.
Then there is something wrong with JDBC URL you're using to connect. That message is
actually from DriverManager/DataSource code.
Nix.
:[EMAIL PROTECTED]
Sent: 3. juni 2003 14:51
To: Tomcat Users List
Subject: Re: Database connection No suitable driver?
Yes.
Then there is something wrong with JDBC URL you're using to connect. That
message is actually from DriverManager/DataSource code.
Nix
: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 14:51
To: Tomcat Users List
Subject: Re: Database connection No suitable driver?
Yes.
Then there is something wrong with JDBC URL you're using to connect. That
message is actually from DriverManager/DataSource code.
Nix
And crossContext=true that I also had set to false.
- Terje
-Original Message-
From: Terje Hopsø [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 22:22
To: 'Tomcat Users List'
Subject: RE: Database connection No suitable driver? SOLVED
It seems that the problem was in context
We also put jdbc2_0-stdext.jar in the common/lib directy.
-Original Message-
From: Terje Hopsø [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 2:54 PM
To: 'Tomcat Users List'
Subject: Database connection No suitable driver?
Hello,
I have to ask you once again. I have tried
It is there.
Tomcat version is 4.1.24.
- Terje
-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 00:05
To: 'Tomcat Users List'
Subject: RE: Database connection No suitable driver?
We also put jdbc2_0-stdext.jar in the common/lib directy
Hopsø [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 3:12 PM
To: 'Tomcat Users List'
Subject: RE: Database connection No suitable driver?
It is there.
Tomcat version is 4.1.24.
- Terje
-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 00:05
Your config looks fine. Have you placed Sybase's JDBC driver into
${CATALINA_HOME}/common/lib/?
Nix.
Yes.
- Terje
-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 07:24
To: Tomcat Users List
Subject: Re: Database connection No suitable driver?
Your config looks fine. Have you placed Sybase's JDBC driver into
${CATALINA_HOME}/common/lib/?
Nix
I tried this now but I still get the same error.
- Terje
-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: 3. juni 2003 00:41
To: 'Tomcat Users List'
Subject: RE: Database connection No suitable driver?
One other idea, we have the Resource and ResourceParams
Andoni:
Tomcat 4.1.x uses the Database Connection Pool from the Apache Commons
Project.
by default, meaning it is also shipped with it.
This is what I have been using and have not come across any problems that
effect
the web applications I develop.
Thanks,
Ej
Andoni [EMAIL PROTECTED] on
I use the connection pool that comes with Tomcat 4.1.12 to connect my servlets
to an IBM DB2 7.1 database and apart an initial problem in configuring Tomcat all
works fine.
Greetings
Mauro Brändle
Andoni wrote:
Hello,
Do you all write your own connection pooling code or is there some open
I put jdbc driver in all directories, in regular directory and in jar
file. In Tomcat 3.2 it worked, not in 4.0.
Pawel
-Original Message-
From: John Gregg [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 7:12 PM
To: 'Tomcat Users List'
Subject: RE: Database connection - Catalina
connection - Catalina
I put jdbc driver in all directories, in regular directory and in jar
file. In Tomcat 3.2 it worked, not in 4.0.
Pawel
-Original Message-
From: John Gregg [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 7:12 PM
To: 'Tomcat Users List'
Subject: RE: Database
: RE: Database connection - Catalina
you have to put all your jar files in common/lib.
Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031
-Original Message-
From: Skorupski Pawel ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 1:34 AM
To: 'Tomcat
Gerry
Have you had a look at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
Tyrex and all...
I think this should help, unless I am missing something completely..
cheers
Sanjay
-Original Message-
From: Gerry Duhig [mailto:[EMAIL PROTECTED]]
Sent:
? This method - multithreading ?
- Original Message -
From: "Jon Crater" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 6:35 PM
Subject: Re: Database connection pool scope
the singleton is just a concrete java class that ensures only one instance
First of all, there are several connection pools avaiable, so you
might want to look at those before you decide that re-inventing the wheel is
a good thing.
Second, most connection pools work by using static classes. Your
code would look something like:
Connection conn
lass which creates and manages jdbc
connections.
-jc
Original Message Follows
From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Database connection pool scope
Date: Mon, 26 Feb 2001 07:58:53 -0500
First of all, there are several
Two questions:
What is the singleton?
Where it is possible to receive such class ?
- Original Message -
From: "Jon Crater" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:17 PM
Subject: RE: Database connection pool scope
i use a connection pool
Thanks Steve and Jared, after changing user DSN to System DSN, it worked.
The nt service is also worked after logoff when it started with jdk1.2.2
From: Steve Ruby [EMAIL PROTECTED]
Make sure the DSN you are trying to get to is a System DSN and not
a User DSN, tomcat will run as a different
Thanks for the tip. It does not seem to be related with the user permission
since the same code works fine when tomcat is running as a stand alone
application(startup). The problem only appears when tomcat is running as a
service(net start jakarta). The exception I get is
Make sure the DSN you are trying to get to is a System DSN and not
a User DSN, tomcat will run as a different user when run as a service
unless you specify otherwise. User DSN can only be seen by the user
it was created by.
H Deng wrote:
Thanks for the tip. It does not seem to be related
I am extremly new to tomcat, although I suspect that it is to do with the NT
user that tha service logs in as and the permissions in the database that
the user has?
?Stab in the dark?
Jared Clinton.
-Original Message-
From: H Deng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19
The bitmechanic connection pool is excellent. Easy to use
and free, opensource.
What more does anyone want?
Dave
- Original Message -
From: "Edson Carlos Ericksson Richter" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 3:12 PM
Subject: RES: Database
- Original Message -
From: Kaushal Patel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 10:46 AM
Subject: Database connection pooling with tomcat
Question What is the best way to do connection pooling to
multiple oracle database with
Hi, Kaushal,
I haven't used that specific conn pool, but looks like that you are having a
CLASSPATH problem.
- first, make sure that your drivers (and your poolmanager jars) are
available using the global classpath of Tomcat. You'll have to modify
startup.sh in order to include them in the
What am I missing any help would be appreciated !!
Question 1 Has anyone got this working ?
Yep
Question 2 What is the best way to do connection pooling with tomcat ?
*shrug* I use PoolMan 1.4 too.
P.S.
I tired running the test PoolMan.jsp util page they provide and
got this below
is that
PoolMan preloads all the configured databases even though you may never use
them.
-- Mike
- Original Message -
From: "Julio Serje (@canada.com)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 11:50 AM
Subject: Re: Database connection pooling w
54 matches
Mail list logo