Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Christopher Schultz
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

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Yucca Nel
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

RE: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Martin Gainty
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

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
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

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
. 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

Re: sneaky JDBC connection

2010-05-28 Thread Christopher Schultz
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread Christopher Schultz
-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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht
- - 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

Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
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

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
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

Unregister jdbc driver on tc shutdown

2010-03-09 Thread David kerber
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

RE: Unregister jdbc driver on tc shutdown

2010-03-09 Thread Caldarale, Charles R
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

Re: Unregister jdbc driver on tc shutdown

2010-03-09 Thread David kerber
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

Tomcat 6 NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource

2010-03-04 Thread Logan Scott
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

RE: Tomcat 6 NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource

2010-03-04 Thread Caldarale, Charles R
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

RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-28 Thread Dan Denton
[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

RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-28 Thread Jeffrey Janner
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

Re: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-27 Thread Christopher Schultz
-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

Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Dan Denton
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

RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Jeffrey Janner
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

Re: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Konstantin Kolinko
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-19 Thread Guillermo Fernandes
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-17 Thread Guillermo Fernandes
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-17 Thread Filip Hanik - Dev Lists
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-16 Thread Guillermo Fernandes
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-16 Thread Filip Hanik - Dev Lists
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

tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-15 Thread Guillermo Fernandes
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-15 Thread Mark Thomas
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-15 Thread Guillermo Fernandes
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

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-15 Thread Filip Hanik - Dev Lists
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

Re: jdbc-pool ignoring minIdle ?

2009-11-17 Thread Xavier Poinsard
. 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

jdbc-pool ignoring minIdle ?

2009-11-16 Thread Xavier Poinsard
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

Re: jdbc-pool ignoring minIdle ?

2009-11-16 Thread Filip Hanik - Dev Lists
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

Re: How do I get hold of Tomcat JDBC pool lib

2009-09-17 Thread Filip Hanik - Dev Lists
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

How do I get hold of Tomcat JDBC pool lib

2009-09-16 Thread Gaurav Lohiya
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

Re : How do I get hold of Tomcat JDBC pool lib

2009-09-16 Thread Chetouani
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

Re: Re : How do I get hold of Tomcat JDBC pool lib

2009-09-16 Thread Gaurav Lohiya
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

RE: Re : How do I get hold of Tomcat JDBC pool lib

2009-09-16 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-27 Thread Neil Youngman
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:

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-27 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-27 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-27 Thread Caldarale, Charles R
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-27 Thread Christopher Schultz
-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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-24 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-24 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-24 Thread Neil Youngman
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-24 Thread Christopher Schultz
-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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-24 Thread Neil Youngman
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.

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-17 Thread Christopher Schultz
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

oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread santosh.singh
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

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Mikolaj Rydzewski
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

RE: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread santosh.singh
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

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Mikolaj Rydzewski
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

RE: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread santosh.singh
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

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Mark Thomas
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

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Mark Thomas
, 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

RE: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread santosh.singh
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

Re: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Mikolaj Rydzewski
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

RE: oracle JDBC sessions not closing while tomcat shutdown

2009-07-16 Thread Martin Gainty
ê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

[ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Pid
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Konstantin Kolinko
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
: 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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Rainer Frey
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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'

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Rainer Frey (Inxmail GmbH)
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
. 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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Rainer Frey
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Mark Shifman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL'null'

2009-07-14 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Christopher Schultz
-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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread David Smith
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Christopher Schultz
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Caldarale, Charles R
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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
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

Re: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Christopher Schultz
-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

RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'

2009-07-14 Thread Neil Youngman
= 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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread André Warnier
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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Oliver Block
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

RE: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Geofrey Rainey
. -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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread André Warnier
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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Mark Thomas
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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Oliver Block
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 )

RE: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Geofrey Rainey
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

FW: JAAS Realm with JDBC Authentication

2009-07-06 Thread Geofrey Rainey
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

Re: FW: JAAS Realm with JDBC Authentication

2009-07-06 Thread Mark Thomas
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

<    5   6   7   8   9   10   11   12   13   14   >