this connection? I am using hibernate btw.
Search your code for DriverManager or getConnection.
Can you post the log message that you get? Can you post a sanitized
sample of your JDBC code so we can see it?
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG
to try various methods of logging out where I either used a
backing method that also returned String after invalidating the session or a
hardcoded redirect myself inside the backing bean
with the JDBC driver, the message does not appear in tomcat logs but I
googled anf found something similar
anyone who lands on WebappName/home/* will invoke package.Servlet
(other than political)..is there any reason you want to use a JDBC driver on a
Microsoft Database?
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de
the
connection in a finally block ehrnever it has been opened. Any idea
where I should close this connection? I am using hibernate btw.
Search your code for DriverManager or getConnection.
Can you post the log message that you get? Can you post a sanitized
sample of your JDBC code so we can see
.
Secondly, there have been some permgen leaks fixed in the latest versions of
the MySQL JDBC driver. Make sure you're using 5.1.12 (latest version). 5.1.11
fixed a permgen leak from java.util.Timer.
Here's the permgen leak bug notation:
- Fixed Bug#36565 - permgen leak from
java.util.Timer
the
session or a hardcoded redirect myself inside the backing bean
I don't understand any of that.
I found one place I was not closing connection :p
Keep looking. Might I suggest reading my blog post about JDBC resource
handling:
http://blog.christopherschultz.net/index.php/2009/03/16/properly
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Suresh,
On 4/22/2010 8:33 PM, suresht wrote:
I see a char array being set to a number.
charstring1[charstring1-1] = 0;
That's obviously not actual code. Can you decompile or otherwise browse
the source of the method where the exception
the security
manager with equivalent policy
Ok.
The web application works fine without the security manager.
Since the error occurs in the JDBC driver, I would imagine that the
problem is there: the driver is not properly checking array bounds when
accessing a String.
Now, more than
-
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
View this message in context:
http://old.nabble.com/Running-tomcat-6.0.26-with-security-manager-generates-ORACLE-jdbc-error-tp28333480p28343802.html
Sent from
in context:
http://old.nabble.com/Running-tomcat-6.0.26-with-security-manager-generates-ORACLE-jdbc-error-tp28333480p28333480.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users
policy definitions?
java.lang.ArrayIndexOutOfBoundsException: -1
oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:942)
Are you running the latest version of Oracle's JDBC driver?
when I run the similar program outside tomcat with -security it runs
fine. any
hi Christopher
i have attached a copy of the policy file.
yes that is true but the command line application includes the security
manager with equivalent policy,
Tomcat + your webapp + Oracle JDBC Driver + SecurityManager = Exception
Some other app + Oracle JDBC Driver = no exception
application works fine without the security manager.
Since the error occurs in the JDBC driver, I would imagine that the
problem is there: the driver is not properly checking array bounds when
accessing a String.
Now, more than likely it's some String that is no longer available due
to the presence
by the list.
yes that is true but the command line application includes the security
manager with equivalent policy
Ok.
The web application works fine without the security manager.
Since the error occurs in the JDBC driver, I would imagine that the
problem is there: the driver
a memory leak, the JDBC Driver has
been forcibly unregistered.
I think I understand what this is telling me, but how do I unregister
the jdbc driver to prevent this warning?
D
-
To unsubscribe, e-mail: users-unsubscr
From: David kerber [mailto:dcker...@verizon.net]
Subject: Unregister jdbc driver on tc shutdown
I think I understand what this is telling me, but how do I unregister
the jdbc driver to prevent this warning?
java.sql.DriverManager.deregisterDriver()
http://java.sun.com/javase/6/docs/api
Caldarale, Charles R wrote:
From: David kerber [mailto:dcker...@verizon.net]
Subject: Unregister jdbc driver on tc shutdown
I think I understand what this is telling me, but how do I unregister
the jdbc driver to prevent this warning?
java.sql.DriverManager.deregisterDriver()
http
Hello.
I am a new subscriber.
I have used Tomcat 5.5 without errors for almost two years, but I am still a
novice at modifying the default configuration.
I have twenty servers with an identical configuration.
I have just upgraded one of my servers to Tomcat 6.
I have verified that the only
From: Logan Scott [mailto:lo...@sqlist.com]
Subject: Tomcat 6 NoClassDefFoundError:
oracle/jdbc/pool/OracleDataSource
I have verified that the only change is Tomcat -- all other server
config details remain unchanged from tomcat 5.5, including a minimalist
server.xml file.
If you used
[mailto:jeffrey.jan...@polydyne.com]
Sent: Tuesday, January 26, 2010 11:55 AM
To: Tomcat Users List
Subject: RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing
Dan -
I'd look into why Oracle took an improper index (whatever that means).
There is nothing in Tomcat/JDK that would mess with your queries
Users List
Subject: RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing
Thanks for the reply. I'm pretty sure we pinpointed the reason why
oracle was using the wrong indexes. Stats for the indexes weren't
updated since the 12th of January and when oracle re-parsed the query it
chose the index based
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dan,
On 1/26/2010 12:40 PM, Dan Denton wrote:
While it's possible there's something we missed, I would like to know
if anyone out there knows why a webapp restart would cause the
database to reparse and choose a new execution plan.
If the JDBC
restart would cause the database to reparse and
choose a new execution plan. We're running Tomcat 5.5.12 with JDK 1.5.0_12.
This is on an RHEL4 server running a 2.6.9 kernel. The tomcat instance is using
a JDBC thin client to connect to the database. I know of no queries that are
made
11:41 AM
To: users@tomcat.apache.org
Subject: Tomcat/JDBC Thin Client and Oracle SQL Parsing
Hello all. Several days ago we saw some strange behavior with an Oracle
database after the restart of a tomcat webapp. Immediately after
restart, Oracle was processing the query for a certain page using
2010/1/26 Dan Denton dden...@remitpro.com:
Can anyone point out any instances they've had where Tomcat or Tomcat with
the Oracle JDBC driver has exhibited similar behavior?
Is your JDBC driver up-to-date, or as old as the Tomcat version that
you are using? I once solved a thing by updating
are aware that the API allow us to write our own JdbcInterceptor
so
we are writing an interceptor to handle this issue by creating a proxy
for
the statement and resultSet.
We will attach it to the bugzilla ticket as a workaround, but we think
the
issue should be fixed inside the jdbc-pool
it to the bugzilla ticket as a workaround, but we think the
issue should be fixed inside the jdbc-pool (it could be a fixed
JdbcInterceptor).
Thanks,
Guillermo
On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev Lists
devli...@hanik.com wrote:
On 12/15/2009 10:34 AM, Guillermo Fernandes
to handle this issue by creating a proxy for
the statement and resultSet.
We will attach it to the bugzilla ticket as a workaround, but we think the
issue should be fixed inside the jdbc-pool (it could be a fixed
JdbcInterceptor).
Thanks,
Guillermo
On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev
the jdbc-pool (it could be a fixed
JdbcInterceptor).
Thanks,
Guillermo
On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev Lists
devli...@hanik.com wrote:
On 12/15/2009 10:34 AM, Guillermo Fernandes wrote:
Hi,
I'm using ddlutils 1.0 and tomcat jdbc pool 1.0.7.1 and I getting an error
due
this issue by creating a proxy for
the statement and resultSet.
We will attach it to the bugzilla ticket as a workaround, but we think the
issue should be fixed inside the jdbc-pool (it could be a fixed
JdbcInterceptor).
Thanks,
Guillermo
On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev Lists
Hi,
I'm using ddlutils 1.0 and tomcat jdbc pool 1.0.7.1 and I getting an error
due to a connection is closed and the pool is not aware of that.
Basically the issue is that ddlutils has a resultset iterator and when it
finishes it closes the connection by getting it from
On 15/12/2009 17:34, Guillermo Fernandes wrote:
Hi,
I'm using ddlutils 1.0 and tomcat jdbc pool 1.0.7.1 and I getting an error
due to a connection is closed and the pool is not aware of that.
Basically the issue is that ddlutils has a resultset iterator and when it
finishes it closes
Ok, I agree it is a bug. I have created the ticket:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48392
https://issues.apache.org/bugzilla/show_bug.cgi?id=48392Actually I'm using
commons-dbcp but were are not getting good performance results so I wanted
to try out with the tomcat jdbc-pool
On 12/15/2009 10:34 AM, Guillermo Fernandes wrote:
Hi,
I'm using ddlutils 1.0 and tomcat jdbc pool 1.0.7.1 and I getting an error
due to a connection is closed and the pool is not aware of that.
Basically the issue is that ddlutils has a resultset iterator and when it
finishes it closes
.
The connection pool itself at this point in time will not create a new
connection. Only when you actually call getConnection() may another
connection be created.
Filip
On 11/16/2009 09:04 AM, Xavier Poinsard wrote:
Hi all,
I have seen a strange behaviour with the new Tomcat jdbc-pool (1.0.7.1
Hi all,
I have seen a strange behaviour with the new Tomcat jdbc-pool (1.0.7.1).
It seems to ignore the minIdle parameter.
I have been able to reproduce it with a simple program.
minIdle is set to 5 and after a few seconds, I don't have any idle
connection left.
Could anybody confirm the bug
at this point in time will not create a new
connection. Only when you actually call getConnection() may another
connection be created.
Filip
On 11/16/2009 09:04 AM, Xavier Poinsard wrote:
Hi all,
I have seen a strange behaviour with the new Tomcat jdbc-pool (1.0.7.1).
It seems to ignore the minIdle
http://people.apache.org/~fhanik/jdbc-pool/
On 09/16/2009 09:18 AM, Gaurav Lohiya wrote:
Hi,
I recently heard about the new Tomcat JDBC library, an alternative for the
DBCP lib. We see concurrency issues with the DBCP lib and are desperately
looking for a lib which can work in a highly
Hi,
I recently heard about the new Tomcat JDBC library, an alternative for the
DBCP lib. We see concurrency issues with the DBCP lib and are desperately
looking for a lib which can work in a highly concurrent application.
Had some questions about this lib...
1. Can this library be used
What about c3p0 ?
--- En date de : Mer 16.9.09, Gaurav Lohiya gloh...@gmail.com a écrit :
De: Gaurav Lohiya gloh...@gmail.com
Objet: How do I get hold of Tomcat JDBC pool lib
À: users@tomcat.apache.org
Date: Mercredi 16 Septembre 2009, 17h18
Hi,
I recently heard about the new Tomcat JDBC
What is c3p0?
On Wed, Sep 16, 2009 at 11:20 AM, Chetouani kchet...@yahoo.fr wrote:
What about c3p0 ?
--- En date de : Mer 16.9.09, Gaurav Lohiya gloh...@gmail.com a écrit :
De: Gaurav Lohiya gloh...@gmail.com
Objet: How do I get hold of Tomcat JDBC pool lib
À: users@tomcat.apache.org
From: Gaurav Lohiya [mailto:gloh...@gmail.com]
Subject: Re: Re : How do I get hold of Tomcat JDBC pool lib
What is c3p0?
http://lmgtfy.com/?q=c3po+dbcp
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended
The solution to this one seems to be that removing webapps/axis2.war allows it
to see the context.xml file.
Neil Youngman
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
The solution to this one seems to be that removing webapps/axis2.war
allows it to see the context.xml file.
I'm confused; isn't the Context element
Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
The solution to this one seems to be that removing webapps/axis2.war
allows it to see the context.xml file.
I'm confused
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
No, the axis2.war is the standard Axis2 WAR distribution, as downloaded
from the relevant website. I've loaded my classes/config into the
directories
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Neil,
On 7/24/2009 3:39 PM, Neil Youngman wrote:
I don't think there's a permissions issue.
$ ls -l
~/wirefast/dev/tomcat6/servlet-example/webapps/axis2/META-INF/context.xml
-rw-r--r-- 1 neil neil 343 2009-07-22 14:44
I'm still banging my head against this particular brick wall. I've cut the
servlet down to a minimal example and tried to get as much debug out as
possible, but I've not got much in the way of clues. I've reached a point where
tracing the tomcat session with strace was the only thing I could
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
That is interesting, because it appears to check the existence of the
axis2/META-INF/context.xml file, but, as far as can be seen from the
strace output
Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
That is interesting, because it appears to check the existence of the
axis2/META-INF/context.xml file, but, as far as can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Neil,
On 7/24/2009 10:21 AM, Neil Youngman wrote:
type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDr\
iver
Is that really the content from your XML file with the backslash and
everything? 'cause XML doesn't do
Christopher Schultz wrote:
Neil,
On 7/24/2009 10:21 AM, Neil Youngman wrote:
type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDr\
iver
Is that really the content from your XML file with the backslash and
everything? 'cause XML doesn't do backslashes like that.
standalone
program. There are other possibilities, too.
But the same java program is run via/through tomcat then opened JDBC
sessions at oracle database level is not releasing.
Take a thread dump and post the results. Marks' suggestion for outside
research was apparently too subtle. I'll save
Hi
Apache Tomcat is working as a middleware between JAVA and ORACLE
Databse. The problem is that when I am starting the tomcat, each time it
opens 3 JDBC sessions on database level and using those sessions at
application level. But when shutting down the tomcat, it is not
closing/releasing those
santosh.si...@birlasoft.com wrote:
Apache Tomcat is working as a middleware between JAVA and ORACLE
Databse. The problem is that when I am starting the tomcat, each time it
opens 3 JDBC sessions on database level and using those sessions at
application level. But when shutting down the tomcat
Hi
We are getting same JDBC Sessions at oracle database which has been
created/pooled while tomcat started. I would also like to update you
that java.exe is not terminating for the same tomcat. However , we have
performed proper shutdown of tomcat using shutdown.sh file.
Regards
Santosh
santosh.si...@birlasoft.com wrote:
We are getting same JDBC Sessions at oracle database which has been
created/pooled while tomcat started. I would also like to update you
that java.exe is not terminating for the same tomcat. However , we have
performed proper shutdown of tomcat using
Hi
How can I verify that and while shutting down or restarting tomcat, how
it will close.
Regards
Santosh
-Original Message-
From: Mikolaj Rydzewski [mailto:m...@ceti.pl]
Sent: Thursday, July 16, 2009 3:53 PM
To: Tomcat Users List
Subject: Re: oracle JDBC sessions not closing while
santosh.si...@birlasoft.com wrote:
Hi
How can I verify that and while shutting down or restarting tomcat, how
it will close.
Do a thread dump when is doesn't shutdown and see what is still running.
Mark
-
To
, July 16, 2009 4:01 PM
To: Tomcat Users List
Subject: Re: oracle JDBC sessions not closing while tomcat shutdown
santosh.si...@birlasoft.com wrote:
Hi
How can I verify that and while shutting down or restarting tomcat,
how it will close.
Do a thread dump when is doesn't shutdown and see
Hi
When I have tried to run the any java program independent of tomcat then
the opened session is releasing from oracle database.
But the same java program is run via/through tomcat then opened JDBC
sessions at oracle database level is not releasing.
Is there any parameter to modify or to add
santosh.si...@birlasoft.com wrote:
When I have tried to run the any java program independent of tomcat then
the opened session is releasing from oracle database.
But the same java program is run via/through tomcat then opened JDBC
sessions at oracle database level is not releasing
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Thu, 16 Jul 2009 11:49:14 +0200
From: m...@ceti.pl
To: users@tomcat.apache.org
Subject: Re: oracle JDBC sessions not closing while tomcat shutdown
santosh.si...@birlasoft.com wrote
with the configuration in axis2/META-INF/context.xml,
which is:
?xml version='1.0' encoding='utf-8'?
Context
Resource name=jdbc/AppDatabase
auth=Container
type=javax.sql.DataSource
factory=org.apache.commons.dbcp.BasicDataSourceFactory
name=jdbc/AppDatabase
auth=Container
type=javax.sql.DataSource
factory=org.apache.commons.dbcp.BasicDataSourceFactory
maxWait=-1
maxActive=20
maxIdle=10
url=jdbc:oracle:thin:@frogfoot:1521:w2
driverClassName=oracle.jdbc.OracleDriver
username=
password
Perhaps you should try the Tomcat configuration method then:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
Oddly enough, my configuration matches the Oracle example in that document, as
far as I can see, possibly because I've read that document half a dozen times
2009/7/14 Neil Youngman neil.young...@wirefast.com:
I'm having trouble getting Oracle access from Axis2 to work under
Tomcat 6. I've spent a lot of time Googling and prodding and poking
the application and I haven't found a solution that works for me.
Oddly the configuration I'm using seems
Konstantin Kolinko wrote:
Look at $CATALINA_BASE/conf/Catalina/localhost/your web app name.xml
That is a copy of your context.xml file that Tomcat creates when the
app is deployed. This copy takes precedence over its original. Maybe
your Resource isn't defined there.
I can't see any sign
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
Using CATALINA_BASE: /home/tomcat6/wsam
$ ls -l /home/tomcat6/wsam/conf/
total 28
-rw-r--r-- 1 tomcat6 tomcat6 426 Jul 10 13:45
Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
Using CATALINA_BASE: /home/tomcat6/wsam
$ ls -l /home/tomcat6/wsam/conf/
total 28
-rw-r--r--1 tomcat6 tomcat6
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
That's $CATALINA_BASE/conf, not $CATALINA_HOME/conf
Regardless, the lack of an [engine] subdirectory is an indication that you may
not be running Tomcat
:
The fact that the JDBC-ODBC bridge shows up in the stack trace says that your
published Resource config is not the one being used.
The resource config is in
/home/tomcat6/wsam/webapps/axis2/META-INF/context.xml
Again that seems right to me, but obviously I am missing something.
Neil Youngman
On Tuesday 14 July 2009 14:31:06 Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
That's $CATALINA_BASE/conf, not $CATALINA_HOME/conf
Regardless, the lack of an [engine
Rainer Frey wrote:
Maybe 'WSAM' is the engine name. Maybe the OP should post his complete
server.xml.
Rainer is of course right. I should have realised that WSAM is the engine name
from server.xml
The server.xml is quite simple.
$ cat /home/tomcat6/wsam/conf/server.xml
?xml version='1.0'
to work for another
application.
Let's start with the configuration in axis2/META-INF/context.xml,
which is:
?xml version='1.0' encoding='utf-8'?
Context
Resource name=jdbc/AppDatabase
auth=Container
type=javax.sql.DataSource
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
I should have realised that WSAM is the engine name from server.xml
So what's under the WSAM directory?
- Chuck
THIS COMMUNICATION MAY CONTAIN
.
Oddly the configuration I'm using seems to work for another
application.
Let's start with the configuration in axis2/META-INF/context.xml,
which is:
?xml version='1.0' encoding='utf-8'?
Context
Resource name=jdbc/AppDatabase
auth=Container
type
Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
I should have realised that WSAM is the engine name from server.xml
So what's under the WSAM directory
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
As an experiment I removed the WSAM directory and several restarts have
not recreated it.
Tomcat won't create the [engine]/[host] directory until
On Tuesday 14 July 2009 15:56:07 Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
As an experiment I removed the WSAM directory and several restarts have
not recreated
a solution that works for me.
Oddly the configuration I'm using seems to work for another
application.
Let's start with the configuration in axis2/META-INF/context.xml,
which is:
?xml version='1.0' encoding='utf-8'?
Context
Resource name=jdbc/AppDatabase
auth
From: Mark Shifman [mailto:mark.shif...@yale.edu]
Subject: Re: [ERROR] Cannot create JDBC driver of class '' for connect
URL'null'
My tomcat6/lib contains tomcat-dbcp.jar and I don't have
commons-dbcp-1.1.jar in my webapp at all.
The OP is attempting to use his own DBCP pooling factory
From: Rainer Frey [mailto:rainer.f...@inxmail.de]
Subject: Re: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
Tomcat won't create the [engine]/[host] directory until it
needs to, such as when copying a Context element from a
META-INF/context.xml file.
Has
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 7/14/2009 8:31 AM, Caldarale, Charles R wrote:
The fact that the JDBC-ODBC bridge shows up in the stack trace says
that your published Resource config is not the one being used.
Actually, I think it's the driver registration that's
Christopher Schultz wrote:
Chuck,
On 7/14/2009 8:31 AM, Caldarale, Charles R wrote:
The fact that the JDBC-ODBC bridge shows up in the stack trace says
that your published Resource config is not the one being used.
Actually, I think it's the driver registration that's failing. Since
or not.
Tsk, tsk. It was only a few hours ago:
META-INF/context.xml:
Resource name=jdbc/AppDatabase
web.xml:
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/AppDatabase/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res
that.
private static final String CONTEXT_NAME = java:/comp/env;
private static final String DB_NAME = jdbc/InterceptDatabase;
...
private static Connection getConnection ()
throws Exception, SQLException
{
if( DATA_SOURCE == null )
{
// Get
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
private static final String DB_NAME = jdbc/InterceptDatabase;
But your Context has:
Resource name=jdbc/AppDatabase
- Chuck
THIS COMMUNICATION
Caldarale, Charles R wrote:
From: Neil Youngman [mailto:neil.young...@wirefast.com]
Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
URL 'null'
private static final String DB_NAME = jdbc/InterceptDatabase;
But your Context has:
Resource name=jdbc/AppDatabase
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Neil,
Just a few comments on your connection acquisition code:
On 7/14/2009 12:45 PM, Neil Youngman wrote:
private static final String CONTEXT_NAME = java:/comp/env;
private static final String DB_NAME = jdbc/AppDatabase;
If you have
= jdbc/AppDatabase;
If you have the same class in two applications (except for these two
constants), why not use the same class plus a configuration file?
It's not the same class, but they share the code that connects to the database.
It might be advantageous to factor it out, but they are currently
Geofrey Rainey wrote:
Hi Mark,
Yes i've read that document many times. However still need a few
pointers
on writing the Login Module and how it integrates with the
Callbackhandler
to create the popup dialog. I can't really find any comprehensive doco
on this.
If you are talking about the
find any comprehensive doco
on this.
regards,
Geoff.
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Tuesday, 7 July 2009 10:44 a.m.
To: Tomcat Users List
Subject: Re: FW: JAAS Realm with JDBC Authentication
Geofrey Rainey wrote:
Hello,
I'm writing a Login
.
-Original Message-
From: Oliver Block [mailto:li...@oliver-block.eu]
Sent: Tuesday, 7 July 2009 10:25 p.m.
To: users@tomcat.apache.org
Subject: Re: FW: JAAS Realm with JDBC Authentication
Please ask your questions.
Am Dienstag, 7. Juli 2009 00:51:29 schrieb Geofrey Rainey:
Hi Mark,
Yes
Geofrey Rainey wrote:
I am confused about integrating the JAAS Login Module with HTTP basic
auth. I was under
the impression that one had to handle this in a custom callback handler.
However I'm now
under the impression that the JAASRealm has a built-in callback hander
that does this.
Is this
Geofrey Rainey wrote:
I am confused about integrating the JAAS Login Module with HTTP basic
auth. I was under
the impression that one had to handle this in a custom callback handler.
However I'm now
under the impression that the JAASRealm has a built-in callback hander
that does this.
Is
Am Dienstag, 7. Juli 2009 13:55:17 schrieb Geofrey Rainey:
However I'm now
under the impression that the JAASRealm has a built-in callback hander
that does this.
Is this correct?
That's what the how-to says under 1. (See
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JAASRealm )
Thankyou for the responses, they've been helpful.
What do you folks think the best design would be to
auth an application to our database based on the
following information;
Presently we have a custom login module that authenticates
users to our database using JDBC. However we really need
Hello,
I'm writing a Login Module to autheniticate users and basing my code on
the example provided by Sun whereby the CallBackHandler prompts users
from the command line. However I'd like to do this using the web server
dialog box and JDBC auth to the database.
Any ideas would be helpful
Geofrey Rainey wrote:
Hello,
I'm writing a Login Module to autheniticate users and basing my code on
the example provided by Sun whereby the CallBackHandler prompts users
from the command line. However I'd like to do this using the web server
dialog box and JDBC auth to the database
901 - 1000 of 1590 matches
Mail list logo