From: David kerber [mailto:dcker...@verizon.net]
Subject: Re: Trouble with jdbc drivers in TC 7
Was something changed in 7 from previous versions wrt
database connections?
Even if it had been changed, it shouldn't matter in your case, since you're
handling your own connections
On 4/7/2011 3:28 PM, Caldarale, Charles R wrote:
From: David kerber [mailto:dcker...@verizon.net]
Subject: Re: Trouble with jdbc drivers in TC 7
Was something changed in 7 from previous versions wrt
database connections?
Even if it had been changed, it shouldn't matter in your case, since
[snip]
I have also tried moving jodbc.jar to %catalina_home%/lib,
but that didn't help either.
Is this a pure Java driver? JDBC-ODBC drivers (which looks like yours
might be) often have a native component. Could you be missing a shared
library from your java.library.path? Sometimes, missing shared
DB: Sybase ASA 9.0.2.3951, x64 version
[snip]
I have also tried moving jodbc.jar to %catalina_home%/lib,
but that didn't help either.
Is this a pure Java driver? JDBC-ODBC drivers (which looks like yours
It is a jdbc-odbc bridge driver, and has windows dlls.
might be) often have
:\Program Files\..., so it detected an x64
installation
DB: Sybase ASA 9.0.2.3951, x64 version
[snip]
I have also tried moving jodbc.jar to %catalina_home%/lib,
but that didn't help either.
Is this a pure Java driver? JDBC-ODBC drivers (which looks like yours
It is a jdbc-odbc bridge
The config has changed from
Resource ...
param
to
Resource
driverClassName=
that could be your culprit
On 4/7/2011 12:08 PM, David kerber wrote:
System: Windows Server 2008 R2 Standard (64-bit)
JRE: 1.6.0_24 x64
TC: 7.0.11, installed in c:\Program Files\..., so it detected an x64
On 4/7/2011 5:01 PM, Filip Hanik - Dev Lists wrote:
The config has changed from
Resource ...
param
to
Resource
driverClassName=
I don't use any of those, because TC isn't managing the pool; the app
handles its own pool. The file layout that works in 5.5 doesn't seem to
work in 7.0,
To close this loop, I got it fixed. The issue was a (apparently very
slightly) corrupt jodbc.jar file. I say very slightly because I could
open it with windows explorer's .zip handling functionality and
everything looked fine, but tomcat choked on it when trying to open it
with
2011/4/8 David kerber dcker...@verizon.net:
To close this loop, I got it fixed. The issue was a (apparently very
slightly) corrupt jodbc.jar file. I say very slightly because I could open
it with windows explorer's .zip handling functionality and everything looked
fine, but tomcat choked on
On 4/7/2011 5:57 PM, Konstantin Kolinko wrote:
2011/4/8 David kerberdcker...@verizon.net:
To close this loop, I got it fixed. The issue was a (apparently very
slightly) corrupt jodbc.jar file. I say very slightly because I could open
it with windows explorer's .zip handling functionality and
2011/4/8 David Kerber dcker...@verizon.net:
On 4/7/2011 5:57 PM, Konstantin Kolinko wrote:
2011/4/8 David kerberdcker...@verizon.net:
To close this loop, I got it fixed. The issue was a (apparently very
slightly) corrupt jodbc.jar file. I say very slightly because I could
open
it with
On 4/7/2011 8:02 PM, Konstantin Kolinko wrote:
2011/4/8 David Kerberdcker...@verizon.net:
On 4/7/2011 5:57 PM, Konstantin Kolinko wrote:
2011/4/8 David kerberdcker...@verizon.net:
To close this loop, I got it fixed. The issue was a (apparently very
slightly) corrupt jodbc.jar file. I say
On 4/5/2011 7:31 AM, הילה wrote:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
maxActive=200
minIdle=0
:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
maxActive=200
minIdle=0
maxIdle=10
maxWait=1
Listsdevli...@hanik.com
On 4/5/2011 7:31 AM, הילה wrote:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
maxActive
:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
maxActive=200
minIdle=0
maxIdle=10
maxWait=1
it? what does it do, exactly?
Thanks
Hila
2011/4/6 Filip Hanik - Dev Listsdevli...@hanik.com
On 4/5/2011 7:31 AM, הילה wrote:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false
, הילה wrote:
name=jdbc/com/vstechnology/appname
scope=Shareable
type=javax.sql.Datasource
url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
maxActive=200
minIdle=0
maxIdle=10
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
הילה,
On 4/6/2011 3:36 PM, הילה wrote:
I wanted to add it, bu the company that developed the application
that runs on the tomcat, says that it affect performance and has
issues.
What is your RDBMS? If it happens to be MySQL, I know that they
Hey,
I have lately (with your help) switched the pool that tomcat uses , from the
basic pool to the JDBC pool, with these actions-
1. under resource tag in xml configuration
[conf/catalina/localhost/Appname.xml] I specified the factory name, as you
can see below-
name=jdbc/com/vstechnology
It seems that only using the new jdbc pool has solved the memory leak :]
it's funny that the idea to use it came from a different thread here in the
users list. :]
Thanks for your help
Hila
בתאריך 9 במרס 2011 22:33, מאת הילה hilavalen...@gmail.com:
Sure, when I'll have a final results
to
close connections that ran out of memory.
Look at the maxAge property in
http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
it is created just to deal with the database sessions that have memory
leaks, and the leak is somewhat predictable timing wise
best
Filip
Don't know
I'll define it. thanks :]
I've implemented 2 changes in production servers - one with the new pool
(and still jtds drivers) and one with new pool + switching to jdbc drivers.
both has windows authentication enabled.
the servers look pretty stable until now, but I'm waiting to see the memory
הילה wrote:
I'll define it. thanks :]
I've implemented 2 changes in production servers - one with the new pool
(and still jtds drivers) and one with new pool + switching to jdbc drivers.
both has windows authentication enabled.
the servers look pretty stable until now, but I'm waiting to see
pool
(and still jtds drivers) and one with new pool + switching to jdbc
drivers.
both has windows authentication enabled.
the servers look pretty stable until now, but I'm waiting to see the
memory
behaviour in the next few days. on servers with the jtds driver, basic
pool
and windows
On 3/7/2011 8:00 AM, הילה wrote:
How do I know if I use the new pool?
just by specifying the
org.apache.tomcat.jdbc.pool.DataSourceFactory
AFAICT yes.
what is the advantages of using the new pool?
in which cases should I use it?
See http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
of using the new pool?
in which cases should I use it?
See http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
I guess that will be merged into the Tomcat docs eventually.
-- O.L.
-
To unsubscribe, e-mail: users
I found this
http://people.apache.org/~fhanik/tomcat/jdbc-pool.html
that I see that it suits for tomcat 6 as well
but I can't find tomcat-jdbc.jar for download, and I understood I need it to
use the new pool.
from where can I download it?
Thanks
Hila
בתאריך 7 במרס 2011 12:28, מאת הילה hilavalen
On 07/03/2011 10:39, הילה wrote:
I found this
http://people.apache.org/~fhanik/tomcat/jdbc-pool.html
that I see that it suits for tomcat 6 as well
but I can't find tomcat-jdbc.jar for download, and I understood I need it to
use the new pool.
from where can I download
On 3/7/2011 3:48 AM, Mark Thomas wrote:
On 07/03/2011 10:39, הילה wrote:
I found this
http://people.apache.org/~fhanik/tomcat/jdbc-pool.html
that I see that it suits for tomcat 6 as well
but I can't find tomcat-jdbc.jar for download, and I understood I need it to
use the new pool.
from where
Thanks :]
Let's see if it'll somewhat help with the memory leak, or with memory
management at all
2011/3/7 Filip Hanik - Dev Lists devli...@hanik.com
On 3/7/2011 3:48 AM, Mark Thomas wrote:
On 07/03/2011 10:39, הילה wrote:
I found this
http://people.apache.org/~fhanik/tomcat/jdbc
I don't think the default pool has any glaring leaks. However, your db may.
I have ran into cases when Oracle would run out of PGA memory, which cleared
with tomcat restart.
It may help to use connection validation feature of tomcat's new pool to
close connections that ran out of memory.
Don't
to clean up the pool?
Thanks
Hila
The Factory we were talking about was from Tomcat's new jdbc pool, not from
the default pool. If you're using the default pool, you don't need to do
anything special like specifying factory in your context.
So, if you are using the _new_ pool, make sure to have
Hila
The Factory we were talking about was from Tomcat's new jdbc pool, not
from
the default pool. If you're using the default pool, you don't need to do
anything special like specifying factory in your context.
So, if you are using the _new_ pool, make sure to have the tomcat-jdbc.jar
$session.program=MyApp-@release@
@instance.title@;
driverClassName=oracle.jdbc.driver.OracleDriver
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
initialSize=1
maxActive=10
name=jdbc/Db1
password=@db1.password
Thanks! But this:
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
is the default, I believe. Didn't you say you were using something else?
-- O.L.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For
On 03/04/2011 02:04 PM, Olivier Lefevre wrote:
Thanks! But this:
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
is the default, I believe. Didn't you say you were using something else?
is not the default. org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
is default
Filip
-- O.L.
hi Nicholas,
where is your pool configured? In server.xml or in your application context?
If it is configured in server.xml, then this is a bug, the thread should have
been created with the class loader from the pool itself.
If it is configured in the application context, then this simply means
webapp context.xml
Resource name=jdbc/AppDesignerDB
auth=Container
type=javax.sql.DataSource
/
and I don't get the error the OP reported. Are you both
talking about something else?
It will only start a thread if you have configured it to do clean up while
Hi, Filip,
My tomcat jdbc pool is configured in my app's context.xml. My app uses MyBatis
3 to do the work. I store MyBatis SqlSessionFactory in ServletContext
attributes.
I was able to get DataSources back from Batis SqlSessionFactory, and invoke
.close on each. The leak seems to have gone
Can we see the relevant part of your context.xml, too?
Thanks,
-- O.L.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
Hi, Filip,
Is there a recommended way to clean up after the pool? I am getting the
following error message and I wonder if I need to add some code to prevent
memory leak.
2011-03-02 22:20:20,786 ERROR [http-8081-1]
org.apache.catalina.loader.WebappClassLoader - The web application [/…]
Hi,
I am checking out the new Tomcat's jdbc-pool. So far it's great. I like JMX
monitoring feature.
I searched lists and google for how to change database password in the JNDI
data source and couldn't find anything. Can it be done?
If not, then can JMX MBean be extended with an operation
needed support to refresh the pool with configuration
changes.
I will open a Bugzilla enhancement request, and we can get this implemented.
best
Filip
On 02/22/2011 10:54 AM, Nicholas Sushkin wrote:
Hi,
I am checking out the new Tomcat's jdbc-pool. So far it's great. I like JMX
monitoring feature
...@christopherschultz.net]
Sent: 17 November 2010 16:44
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rob,
On 11/17/2010 7:07 AM, Rob Gregory wrote:
Is it possible to just store my existing
List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
Rob,
On 11/17/2010 7:07 AM, Rob Gregory wrote:
Is it possible to just store my existing collection of datasources in
some global context?
I.e.
initCtx = new InitialContext();
Context envCtx = (Context
On 18/11/2010 09:34, Rob Gregory wrote:
Thanks Chris,
After messing around with JNDI yesterday I came to the same conclusion that
Tomcat is doing some isolation
Random thoughts that may or may not help.
If you look in the DataSourceRealm you will see some code that lets a
web-app use a
Thanks Pid,
That’s two suggestions for me to try. Many thanks for your assistance.
Rob
-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: 18 November 2010 10:26
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11
: 18 November 2010 10:30
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11/2010 09:34, Rob Gregory wrote:
Thanks Chris,
After messing around with JNDI yesterday I came to the same conclusion that
Tomcat is doing some isolation
(dataSourceName, datasource);
Thanks again for the push in the right direction.
Rob
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: 18 November 2010 10:30
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11/2010 09:34
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11/2010 09:34, Rob Gregory wrote:
Thanks Chris,
After messing around with JNDI yesterday I came to the same conclusion that
Tomcat is doing some isolation
Random thoughts that may or may
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11/2010 16:54, Rob Gregory wrote:
Spot on Mark.
I have been googling and playing around for over a day on this, Following
your suggestion it boils down to a couple of lines of code
.
Mark
Thanks Again.
Rob
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: 18 November 2010 16:59
To: Tomcat Users List
Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
On 18/11/2010 16:54, Rob Gregory wrote:
Spot on Mark.
I have been
Tomcat Users,
We are trying to migrate a web application from a single context
containing multiple JDBC datasources to a web application deployed over
multiple contexts but without duplicating the shared datasources.
Reading the docs at
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource
);
or something along those lines?
Thanks
Rob
-Original Message-
From: Rob Gregory [mailto:rob.greg...@ibsolutions.com]
Sent: 17 November 2010 11:09
To: Tomcat Users List
Subject: Dynamic GlobalNamingResources / Shared JDBC connection pools
Tomcat Users,
We are trying to migrate
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rob,
On 11/17/2010 7:07 AM, Rob Gregory wrote:
Is it possible to just store my existing collection of datasources in
some global context?
I.e.
initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup(java:/comp/env);
=/
without resource name definition.
Context
docBase=C:\springsource\tc-server-developer-2.0.4.RELEASE\spring-insight-instance\wtpwebapps\myapp
path=/myapp reloadable=true
source=org.eclipse.jst.jee.server:myapp
Resource name=jdbc/postgres auth=Container
type=javax.sql.DataSource
) {
System.out.println(JNDI failure: + ex);
ex.printStackTrace();
}
}
I get the below error.
before initialcontext
Before Context list
org.apache.naming.NamingContext jdbc
org.apache.naming.NamingContext jdbc
JNDI failure: javax.naming.NamingException
2010/11/14 Jayaprakash Ramsaran jayaprakash.ramsa...@gmail.com:
Sever: Springsource tc server-developer-2.1.0/ tomcat-6.0.29.B
O/S: Windows Vista
I am using Springsource Tool Suite 2.5.1 and tc server 2.1. I am
trying to configure a data source to PostgresSql. I followed the steps
outlined in
Sorry. Please find the full URL below.
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#PostgreSQL
On Sun, Nov 14, 2010 at 10:44 AM, Konstantin Kolinko
knst.koli...@gmail.com wrote:
2010/11/14 Jayaprakash Ramsaran jayaprakash.ramsa...@gmail.com:
Sever: Springsource
I'm running Tomcat 6.0.29 with the security manager enabled. I'm getting
these entries in my log:
2010-10-07 12:09:01,710 WARN http-80-76
org.apache.catalina.loader.WebappClassLoader - JDBC driver de-registration
failed for web application []
java.lang.reflect.InvocationTargetException
On 08/10/2010 21:20, George Sexton wrote:
Could any give me a hint as to what I need to add to the catalina.policy
file to make this work?
Should I file this as a bug?
https://issues.apache.org/bugzilla/show_bug.cgi?id=49209
Mark
HI,
you can check HA JDBC.
http://ha-jdbc.sourceforge.net/doc.html
Peter
Am 10.09.2010 um 10:59 schrieb Michael Knümann:
Hi
I'm currently working on migrating single server web application for
deployment in a cluster.
We have JDBC connection pools to talk with several databases. I'm
Hi
I'm currently working on migrating single server web application for
deployment in a cluster.
We have JDBC connection pools to talk with several databases. I'm going
to divide the max db connection attribute for each by the number of
nodes then.
But I'm wondering if it is possible
On 10/09/2010 09:59, Michael Knümann wrote:
Hi
I'm currently working on migrating single server web application for
deployment in a cluster.
We have JDBC connection pools to talk with several databases. I'm going
to divide the max db connection attribute for each by the number of
nodes
Hi All,
Kindly help me to resolve an issue in our production system, where tomcat is
frequenctly getting hunged and axis request threads are been in BLOCKED state.
Below is the snaphot of jstack during hunged state.
Tomcat : 5.5
MySQL : 5
Post your JDBC code
On Tue, Aug 17, 2010 at 4:23 PM, Sunil Sharma sunil.sharm...@hotmail.comwrote:
Hi All,
Kindly help me to resolve an issue in our production system, where tomcat
is frequenctly getting hunged and axis request threads are been in BLOCKED
state. Below is the snaphot
From: Sunil Sharma [mailto:sunil.sharm...@hotmail.com]
Subject: RE: Tomcat Thread BLOCKED due to JDBC getConnection
Kindly help me to resolve an issue in our production system, where
tomcat is frequenctly getting hunged and axis request threads are been
in BLOCKED state. Below
david.sm...@cornell.edu
Sent: Monday, June 21, 2010 2:54 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null' AGAIN!
I do not see the mistake that you see
I didn't say I saw
)initContext.lookup(java:/comp/env);
DataSource ds = (DataSource)envContext.lookup(jdbc/my_db_name_here);
Connection conn = ds.getConnection();
From:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
p
--
From: David Smith david.sm
On 20/06/2010 21:49, akhlaqur Rahman wrote:
How do I unsubscribe from this list? I have tried following the unsubscribe
link in the emails and it has not worked... Any tips would be appreciated.
Ask one of the list owners for help.
I'll unsubscribe you in a sec.
Mark
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null' AGAIN!
On 20/06/2010 21:49, akhlaqur Rahman wrote:
How do I unsubscribe from this list? I have tried following the
unsubscribe
link
. This
is not good. I have even moved host provider in hope that it was previous
fult tomcat install from dailyrazor (tomcat 6 does not hav common/lib) and is
meant to have tomcat/lib
I can say that my new container is correct and that I am 100% sure that all
mus jdbc configuration is correct in zml
--
From: Martin Gainty mgai...@hotmail.com
Sent: Monday, June 21, 2010 1:16 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null
:
--
From: Martin Gainty mgai...@hotmail.com
Sent: Monday, June 21, 2010 1:16 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null
Hello, I have done as David suggested and has not fixed issue. If you visit
thejarbar.org you will see the test page that confirms the jdbc has been
opned and therefore the lib is present
I found a possible reason in hibernate .cfg and fixed it but still got error
after redeployment 1 my databse
: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null' AGAIN!
On 6/19/2010 1:31 PM, yucca...@live.co.za wrote:
I have no choice left but to not let hibernate use my tomcat datasource.
This is not good. I have even moved host provider in hope
I moved hosting provider and have found eapps to be excellent. Despite the
same version of tomcat and same layout, I am unable to resolve this
exception. my databases are correct, the jdbc jar is in tomcat/lib. I don't
know what more to do
is correct and that I am 100% sure that all mus
jdbc configuration is correct in zml after having gone though it at least 20
times and checked the wiki that was linked here earlier and still have issues.
Yes mysql jdbc bin is in tomcat/lib so that is not cause of the error. /the
error is very weird
to have tomcat/lib
I can say that my new container is correct and that I am 100% sure that all
mus jdbc configuration is correct in zml after having gone though it at least
20 times and checked the wiki that was linked here earlier and still have
issues. Yes mysql jdbc bin is in tomcat/lib so
@gurkan Chris: actually I don't want to use the resource directly in a
servlet or JSP - due to architectural reasons - so is there a way to inject
resources into plain java classes?
@Pid: Thanks for the Information. I will check out the spec and hope that it
is not too much to read ;-)
And
To: users@tomcat.apache.org
Sent: Thu, June 17, 2010 6:37:56 PM
Subject: Re: Resource Annotation has no effect but JNDI Lookup works (JDBC
Resource)
@gurkan Chris: actually I don't want to use the resource directly in a
servlet or JSP - due to architectural reasons - so is there a way to inject
AM
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
Ok, no need to accuse me of lying, please see screenshot showing
common/lib
and other screenie showing there is no tomcat
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
production is tomcat 6.0.20 thanks for the reply. had to call it a night
so sorry for delay in reply
;/welcome-filegt;
lt;/welcome-file-listgt;
lt;resource-refgt;
lt;descriptiongt;testDblt;/descriptiongt;
lt;res-ref-namegt;jdbc/testDblt;/res-ref-namegt;
lt;res-typegt;javax.sql.DataSourcelt;/res-typegt;
lt;res-authgt;Containerlt;/res-authgt;
lt;/resource
Documentation at /docs/jndi-resources-howto.html
--
GlobalNamingResources
!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
--
Resource
name=jdbc/auth
description=The Jar Bar user authentication
type
also be used by
UserDatabaseRealm to authenticate users
--
Resource
name=jdbc/auth
description=The Jar Bar user authentication
type=javax.sql.DataSource
auth=Container
driverClassName=com.mysql.jdbc.Driver
maxActive=30 maxIdle=10
: Wednesday, June 16, 2010 1:18 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
-
To unsubscribe, e-mail: users
enough to try a connection directly (no jdbc pool) just to see
if the jar is found. Lastly (and maybe I missed it in the thread),
could you post a complete stack trace including any root causes and
related exceptions from when the webapp was started?
--David
On 6/16/10 7:08 AM, yucca...@live.co.za
, 2010 1:18 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
-
To unsubscribe, e-mail: users-unsubscr
What is a TestClass? Tomcat has no knowledge about your class for injection
occurs.
Please define some servlet and try with it,
class TestClass extends HttpServlet{
private @Resource(name=jdbc/TestDb) DataSource datasource;
@PostConstruct
public void postConstruct
Thank you, that helped a lot! I am new to j2ee... I have a lot of application
logic that will be used without representation as a jsp or a servlet:
objects that extend TimerTask and register at a timer objekt. they execute
code which accesses a database (importer classes that collect data from
On 16/06/2010 23:13, marble4u wrote:
Thank you, that helped a lot! I am new to j2ee... I have a lot of application
logic that will be used without representation as a jsp or a servlet:
objects that extend TimerTask and register at a timer objekt. they execute
code which accesses a database
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gurkan,
On 6/16/2010 10:44 AM, Gurkan Erdogdu wrote:
Please define some servlet and try with it,
class TestClass extends HttpServlet{
private @Resource(name=jdbc/TestDb) DataSource datasource;
@PostConstruct
public void
...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Thu, June 17, 2010 2:37:05 AM
Subject: Re: Resource Annotation has no effect but JNDI Lookup works (JDBC
Resource)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gurkan,
On 6/16/2010 10:44 AM, Gurkan Erdogdu wrote:
Please define some
I have tried to check why this exception is thrown in production but not
development
The difference between production snd development server is:
development) put mysql jar into CATALINA/lib (tomcat 6.0.26)
production) choice of common/lib or share/lib
exception is thrown by hibernate
Are you developing on 6.0.x but deploying on 5.?.x (5.0 or 5.5)?
What version is running in production?
--- On Tue, 6/15/10, yucca...@live.co.za yucca...@live.co.za wrote:
From: yucca...@live.co.za yucca...@live.co.za
Subject: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
Are you developing on 6.0.x but deploying on 5.?.x (5.0 or 5.5)?
What version is running in production?
--- On Tue, 6/15/10, yucca...@live.co.za yucca...@live.co.za wrote:
From: yucca
From: yucca...@live.co.za [mailto:yucca...@live.co.za]
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create JDBC driver of class '' for connect URL 'null'
production is tomcat 6.0.20
Then there's no common/lib or shared/lib in production either. Get your story
users@tomcat.apache.org
Subject: RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
From: yucca...@live.co.za [mailto:yucca...@live.co.za]
Subject: Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create JDBC driver
801 - 900 of 1590 matches
Mail list logo