[OT] Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread Bob Hall
If the DB login requirement is removed you might want to take a look at Apache Turbine, it supports finer-grained access to a web app. http://jakarta.apache.org/turbine/index.html - Bob --- [EMAIL PROTECTED] wrote: > Thanks for the suggestion Bob, > > I think what you are saying about realms

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread jeffery . s . eaton
Thanks for the suggestion Bob, I think what you are saying about realms is valid and most likely the easiest way to enforce security. It would be my choice if it wasn't a corporate standards issue. I will read up on the link you sent and see if I can get away with it in terms of meeting with pol

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread Bob Hall
Jefferey, Are the uses going to be allowed to execute "ad hoc" queries? If yes, I can see why you would choose to take the take the direct DB authentication route. If not, then a a JDBCRealm could be used and specific role(s) assigned to each user that would govern what they could do in the weba

RE: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread jeffery . s . eaton
That's right Sasha, I will have to ensure connections are closed down automatically if the user doesn't log out, but at this stage I will note your comment for further research. Thanks, Jeffery S. Eaton Opinions contained in this e-

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread jeffery . s . eaton
Good question Bob, This system may eventually be implemented for the government department I work for in Queensland, Australia. This project is a pilot one which will involve four separate district offices in four different cities. The department has policies on data security which includes auth

RE: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread Akoulov, Alexandre [IT]
ober 2005 3:48 PM To: Tomcat Users List Subject: Re: using a datasource connection pool resource with username and password supplied by user Thanks Doug and Chuck, I suspected as much re. the connection pool. This sort of negates the value of it a little (for me anyway). My original plan was to

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread Bob Hall
Jefferey, Coming into this thread late, but I'm curious. Why do you want each user to obtain a connection to the database, effectively logging into the DB, instead of using a connection pool with a single, application specific, DB userid/password? - Bob --- [EMAIL PROTECTED] wrote: > Thanks Dou

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread jeffery . s . eaton
Thanks Doug and Chuck, I suspected as much re. the connection pool. This sort of negates the value of it a little (for me anyway). My original plan was to go with saving the connection to the session once it was established but I had read somewhere that connections are not 'serializable' and the

Re: using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread Parsons Technical Services
Doug - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, October 09, 2005 11:26 PM Subject: RE: using a datasource connection pool resource with username and password supplied by user From: [EMAIL PROT

RE: using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: using a datasource connection pool resource with > username and password supplied by user > > But what I really want to do is to get a database user and > password from the user and (after validating i

using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread jeffery . s . eaton
pool I use the following code: Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/rsams_oracle"); conn = ds.getConnection(); . It all works fine: But what I

Re: Tracking Datasource Connection Usage?

2005-10-07 Thread Kyle
Brian Cook wrote: JWM wrote: Two things you can do here. 1. Set both "removeAbandoned" and "logAbandoned" parameters to true. This will reclaim most lost connections. And log a trace of what code called a connection that was never closed. See, I don't get all this "removeAbandoned

RE: Tracking Datasource Connection Usage?

2005-10-07 Thread JWM
from getting successfully closed? Thx. JWM -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 3:38 PM To: Tomcat Users List Subject: Re: Tracking Datasource Connection Usage? JWM wrote: Two things you can do here. 1. Set both "remov

Re: Tracking Datasource Connection Usage?

2005-10-07 Thread Brian Cook
ose(); } I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I noticed that I did not have the 

Re: Tracking Datasource Connection Usage?

2005-10-06 Thread Darryl L. Miles
Rob Hills wrote: I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I noticed that I di

Re: Tracking Datasource Connection Usage?

2005-10-06 Thread Rob Hills
Hi, On 6 Oct 2005 at 15:09, JWM wrote: > I started getting exceptions saying no connections were available on my JDBC > datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough > to handle the load. So it appears that I'm not freeing the all the > connection

RE: Tracking Datasource Connection Usage?

2005-10-06 Thread George Sexton
5 2:09 PM > To: tomcat-user@jakarta.apache.org > Subject: Tracking Datasource Connection Usage? > > I started getting exceptions saying no connections were > available on my JDBC > datasource (org.gjt.mm.mysql.Driver). The pool was > definitely large enough > to handle

Tracking Datasource Connection Usage?

2005-10-06 Thread JWM
I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I noticed that I did not have the 'remov

Re: Cannot connect to database using DataSource

2005-09-14 Thread Sonja Löhr
I have unable to connect my database using > Java's DataSource method. Here is my ROOT.xml setup for my application > context: > > debug="0" reloadable="true" > >auth="Container" /> >

Cannot connect to database using DataSource

2005-09-14 Thread Michael Lai
I have a MySQL database in which I created a database named, javatest, and I am using Tomcat 5.5.9. I have unable to connect my database using Java's DataSource method. Here is my ROOT.xml setup for my application context: username jav

Re: Re: Tomcat Struts Datasource problem

2005-07-29 Thread Anoop kumar V
dosen't work) > Kris74 > > > De: Anoop kumar V <[EMAIL PROTECTED]> > > A: Kris74 <[EMAIL PROTECTED]>, Tomcat Users List > > > > Objet: Re: Tomcat Struts Datasource problem > > Date: Thu, 28 Jul 2005 14:50:21 -0400 > > > Did you check out

Re: Tomcat Struts Datasource problem

2005-07-28 Thread Anoop kumar V
Did you check out this link: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html HTH, Anoop On 7/27/05, Kris74 <[EMAIL PROTECTED]> wrote: > Thank you for your answer on my topic. > > I am using Tomcat 5, (I have 2 versions : 5.0.28 and 5.5.9) &

RE: DBCP datasource works on 5.0.28 but fails on 5.5.

2005-07-21 Thread Warren Taylor
ECTED] Sent: Thursday, July 21, 2005 3:53 PM To: Tomcat Users List Subject: Re: DBCP datasource works on 5.0.28 but fails on 5.5. This issue was originally submitted by Steve Kirk on 20-May-2005 and RESOLVED on 22-May. FYI, I experienced the same error(s) as Steve and tried all the same things Stev

Re: DBCP datasource works on 5.0.28 but fails on 5.5.

2005-07-21 Thread Kenneth B. Harwood
This issue was originally submitted by Steve Kirk on 20-May-2005 and RESOLVED on 22-May. FYI, I experienced the same error(s) as Steve and tried all the same things Steve did before discovering Steve's question (and thread) on the User List. The fix (as first advised by Lutz & Nicola) was to cr

Re: Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-12 Thread Craig Dixon
wrote: > I am encountering a very strange problem when trying to use a > datasource in Tomcat. I got Tomcat 5.5.4 to access the datasource by > using the following in > \conf\Catalina\localhost\.xml > > debug="5" reloadable="true" crossContext="

Re: Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-12 Thread Craig Dixon
wrote: > I am encountering a very strange problem when trying to use a > datasource in Tomcat. I got Tomcat 5.5.4 to access the datasource by > using the following in > \conf\Catalina\localhost\.xml > > debug="5" reloadable="true" crossContext="t

install automatically a datasource with tomcat 5.0.25

2005-07-12 Thread [EMAIL PROTECTED]
hi all i have tomcat 5.0.25 and i used context.xml in META-INF for configuring the datasource. But I notice that I have to configure the datasource data(url.path , driver) also with the tomcat administrator. I notice that with tomcat 5.5.7 that do not happen I want for sure using tomcat

Re: How to create a MySQL datasource (DBCP) into TOMCAT 4.1.31...

2005-07-11 Thread Hassan Schroeder
Patrick Gelin wrote: I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration parameters... 2. This is my server.xml conf

How to create a MySQL datasource (DBCP) into TOMCAT 4.1.31...

2005-07-11 Thread Patrick Gelin
Hi, I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration parameters... It seems to be all right but if I debug with Eclipse IDE my DataSource is null... I followed TOMCAT 4.1 JNDI DataSource h

Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-08 Thread Craig Dixon
I am encountering a very strange problem when trying to use a datasource in Tomcat. I got Tomcat 5.5.4 to access the datasource by using the following in \conf\Catalina\localhost\.xml I use this in conjunction with the following in \webapps\\WEB-INF

Re: JNDI DataSource configuration

2005-07-08 Thread Joe Plautz
I'm not sure about 5.5.x, but in 5.0.x and earlier it was put in META-INF. Joe [EMAIL PROTECTED] wrote: Hi! I am trying to connect my web-app running under tomcat 5.5.9 to connect to a postgresql database. I read the JNDI Datasource HOW-TO on http://jakarta.apache.org/tomcat/tomcat-5.

JNDI DataSource configuration

2005-07-08 Thread Peter . Zoche
> Hi! > > I am trying to connect my web-app running under tomcat 5.5.9 to connect to > a postgresql database. I read > the JNDI Datasource HOW-TO on > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-h > owto.html. > I would like to have an appli

Creating a MySQL datasource (DBCP) into TOMCAT 4.1.31

2005-07-08 Thread Patrick Gelin
Hi, I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration parameters... It seems to be all right but if I debug with Eclipse ide I see my DataSource is null... I followed TOMCAT 4.1 JNDI DataSourc

Datasource & Drivers Question

2005-07-07 Thread James Reynolds
I'm having trouble setting up a data source in Tomcat 5.5.7. I'm not certain if I'm having a configuration problem, or if the drivers I'm trying to use are not compatible with Tomcat. Starting with the latter question, I'm attempting to use the jdbc oracle drivers that ship with Sun's Java Studio

Re: Datasource/jstl problem

2005-06-23 Thread Charl Gerber
Its seems you have correctly defined the datasource, but it is not linked to your application. In the server.xml your application should be defined as a "context" and in the context you have to specify that the global resource defined earlier is available to this application. Look at re

Datasource/jstl problem

2005-06-22 Thread werner
Hi, I followed the example on : http://jakarta.apache.org/tomcat/ tomcat-5.0-doc/jndi-datasource-examples-howto.html The only thing I changed was jdbc/TestDB into jdbc/weblog. on al locations I could find. If I look at my page (http://www.karnhuis.nl/gastenboek.jsp) The ${row.name} and

RE: redeploy of webapp loses GlobalNamingResource DataSource

2005-05-25 Thread bob_b
8 To: tomcat-user@jakarta.apache.org Subject: redeploy of webapp loses GlobalNamingResource DataSource I have a globally named db pool resource that I use across multiple contexts to access a particular database. When I redeploy a webapp in Tomcat 5.0.28, I am losing the DataSource and getting

RE: redeploy of webapp loses GlobalNamingResource DataSource

2005-05-24 Thread Steve Kirk
b_b [mailto:[EMAIL PROTECTED] > Sent: Tuesday 24 May 2005 22:28 > To: tomcat-user@jakarta.apache.org > Subject: redeploy of webapp loses GlobalNamingResource DataSource > > > I have a globally named db pool resource that I use across multiple > contexts to access a particular dat

redeploy of webapp loses GlobalNamingResource DataSource

2005-05-24 Thread bob_b
I have a globally named db pool resource that I use across multiple contexts to access a particular database. When I redeploy a webapp in Tomcat 5.0.28, I am losing the DataSource and getting a pooled connection fails with the following (truncated) message: org.apache.commons.dbcp

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-23 Thread Lutz Zetzsche
Hi Steve, Am Montag, 23. Mai 2005 00:39 schrieb Steve Kirk: > I started replying to yr post including my full config, had nearly > finished, then saw the problem - I had a leading space in the 'url' > value within the tag of my context.xml file. Grrr! I [...] > Thanks very much to both of you

RE: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-22 Thread Steve Kirk
tomorrow is now looking like being productive :) > -Original Message- > From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] > Sent: Sunday 22 May 2005 22:42 > To: Tomcat Users List > Subject: Re: DBCP datasource works on 5.0.28 but fails on 5.5.9 > > > Hi Steve, > >

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-22 Thread Lutz Zetzsche
Tomcat? > - mysql works from the command line using my datasource username/pw; Are you really using the correct URL to connect to the database? Are host name, port and database name ok? I.e. the database name is case-sensitive (at least on Linux, check it on Windows)! Are you running To

RE: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-22 Thread Steve Kirk
g problem. I say this because: - I have fresh installed TC, mysql and jdk; - mysql works from the command line using my datasource username/pw; - I have checked and rechecked my config a thousand times; - the mysql driver is in the right folder; - the error is suggestive of the fact that TC c

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-21 Thread Nikola Milutinovic
Steve Kirk wrote: Thanks nix. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those ... Yes I already changed that. I used to use the approach you mention in 5.0.28

RE: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Steve Kirk
L PROTECTED] > Sent: Friday 20 May 2005 16:59 > To: Tomcat Users List > Subject: Re: DBCP datasource works on 5.0.28 but fails on 5.5.9 > > > Hi, > > Am Freitag, 20. Mai 2005 17:22 schrieb Nikola Milutinovic: > > Steve Kirk wrote: > > This most commonly means tha

RE: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Steve Kirk
Thanks nix. > Could it be that you've missed the fact that > DataSource JNDI resource setup definition has changed in TC > 5.5? It is > no longer with those > ... Yes I already changed that. I used to use the approach you me

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Lutz Zetzsche
Hi, Am Freitag, 20. Mai 2005 17:22 schrieb Nikola Milutinovic: > Steve Kirk wrote: > This most commonly means that the definition of the DataSource > resource lacks driver definition. Could it be that you've missed the > fact that DataSource JNDI resource setup definition has ch

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Nikola Milutinovic
InitialContext(); String resourceString = "java:comp/env/jdbc/" + config.getString(ConfigConstants.JNDI_DATABASE_RESOURCE_NAME); DataSource pool = (DataSource)ctx.lookup(resourceString); However, an Exception is thrown the first time that I do this: Connection conn = pool.getConnection(

DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Steve Kirk
:comp/env/jdbc/" + config.getString(ConfigConstants.JNDI_DATABASE_RESOURCE_NAME); DataSource pool = (DataSource)ctx.lookup(resourceString); However, an Exception is thrown the first time that I do this: Connection conn = pool.getConnection(); I'm stumped after hours working on this. I've read throu

configure DataSource Question

2005-04-15 Thread Scott Purcell
(); DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/strutsDB"); Connection conn = ds.getConnection(); // THIS WORKS, BUT I AM NOT USING THE BasicDataSourceFactory to create the pool. // SO I WANT TO USE THE FOLLOWING, WHICH FAILS

Re: address for documentation bugs? (jndi datasource examples broken)

2005-03-24 Thread Mark Thomas
All bugs, documentation or otherwise, should be reported via bugzilla. Mark Michael Stillwell wrote: Where should I send documentation bugs? There's a few problems with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html: 1. Section 2 says to add a slug o

address for documentation bugs? (jndi datasource examples broken)

2005-03-24 Thread Michael Stillwell
Where should I send documentation bugs? There's a few problems with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html: 1. Section 2 says to add a slug of XML between a tag and a tag. Tomcat's conf/server.xml (at least version 5.0.28) does not have

Re: DataSource using Commons libraries 5.5.7

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 08:55:35AM -0800, sven morales wrote: :I am not exactly sure what you meant by "you don't : have to do that" ? For example, how would a class : differentiate between : org.apache.commons.dbcp.BasicDataSourceFactory and : org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactor

Re: DataSource using Commons libraries 5.5.7

2005-03-14 Thread sven morales
Hi, I am not exactly sure what you meant by "you don't have to do that" ? For example, how would a class differentiate between org.apache.commons.dbcp.BasicDataSourceFactory and org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory without doing anything? Off course the import declarations have to

Re: DataSource using Commons libraries 5.5.7

2005-03-14 Thread QM
On Sun, Mar 13, 2005 at 11:56:02PM -0800, sven morales wrote: : Tomcat 5.5.x and newer have repackaged the commons : libraries into naming-xxx.jar files and it is probably : causing lots of headache to people doing a conversion : from older distro. I don't see the problem. Chances are, this was

DataSource using Commons libraries 5.5.7

2005-03-13 Thread sven morales
: org.apache.tomcat.dbcp.dbcp. org.apache.tomcat.dbcp.collection. org.apache.tomcat.dbcp.pool. org.apache.tomcat.dbcp.jocl. Note: the double dbcp.dbcp for DataSource and commons name is not on the path. Also subtle change of elements and attributes and no more . I guess there are no DTD that is used

Re: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Peter Johnson wrote: As shown in the examples Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/rofDB"); Thanks for the quick reply! That has solved th

Re: getting datasource in a JSP?

2005-03-08 Thread Peter Johnson
As shown in the examples Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/rofDB"); Parsons Technical Services wrote: Try "jdbc/rofDB" Doug ---

Re: getting datasource in a JSP?

2005-03-08 Thread Parsons Technical Services
Try "jdbc/rofDB" Doug - Original Message - From: "Darryl Wagoner" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, March 08, 2005 4:15 PM Subject: Re: getting datasource in a JSP? Rahul Akolkar wrote: javax.naming.Context Thank Rahul that

Re: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Rahul Akolkar wrote: javax.naming.Context Thank Rahul that help, but now I have another problem. When I use the tomcat example JSP tags page: This works *** <%@ taglib uri="http://java.sun.com/jsp/jstl/sql"; prefi

Re: getting datasource in a JSP?

2005-03-08 Thread Rahul Akolkar
javax.naming.Context On Tue, 08 Mar 2005 09:32:19 -0500, Darryl Wagoner <[EMAIL PROTECTED]> wrote: > I think the main problem is that I haven't found the import for the > Context class. - To unsubscribe, e-mail: [EMAIL PROTECT

getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Greetings, I am trying to follow some of the examples and got some more questions and problems. I think the main problem is that I haven't found the import for the Context class. Should this a class in common/lib to get the connection? thanks <%@ page import = "java.io.*" import = "java.

Re: Single-Tag DataSource Definition?

2005-03-04 Thread Parsons Technical Services
Single tag for 5.5.x Multiple for 5.0.x Doug - Original Message - From: "J Malcolm" <[EMAIL PROTECTED]> To: Sent: Friday, March 04, 2005 10:57 AM Subject: Single-Tag DataSource Definition? I know the docs define a jdbc datasource using multiple

Single-Tag DataSource Definition?

2005-03-04 Thread J Malcolm
I know the docs define a jdbc datasource using multiple nested tags, e.g.: factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 100

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
No problem. Amazing what an extra set of eyes will catch, isn't it? Enjoy! David Darryl Wagoner wrote: David, I have been looking at this off and on for weeks and could not see the problem. I changed the context to be jdbc/TestDB and it worked. Thank you very much David Smith wrote: In your

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread Darryl Wagoner
David, I have been looking at this off and on for weeks and could not see the problem. I changed the context to be jdbc/TestDB and it worked. Thank you very much David Smith wrote: In your context definition, you have In your web.xml, you have jdbc/TestDB These two need to match. If one is

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
lling this request._ *exception* javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'" org.apache.jasper.runtime.Pa

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Drew Jorgenson
Woops, my bad, that's not it, I should have read the entire message :( Drew. On Tue, 2005-03-01 at 18:51, Drew Jorgenson wrote: > javax.servlet.ServletException: Unable to get connection, DataSource > invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Drew Jorgenson
javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'" what is your connection URL? it doesn't seem like you're supplying

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Parsons Technical Services
What version are you running of Tomcat? Did you put in your resource link? Doug - Original Message - From: "Darryl Wagoner" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JD

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
>Sounds like it can't find the driver. Do you have the Connector/J jar installed in the correct place? Should be in common/lib. I think so! I have $CATALINA/common/lib/mysql-connector-java-3.0.16-ga-bin.jar which I believe to be the correct. I just downloaded and installed 3.1 with same res

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Justin Crabtree
ROTECTED]> To: "Tomcat Users List" Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JD

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Parsons Technical Services
uot; Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missi

newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
*type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot c

Help on config JNDI datasource for DB2

2005-02-22 Thread tom chen
Hello All, Can some show how to set db2 jndi datasource in tomcat 5.5.7. DB2 and tomcat all in windows XP. tomcat can talk to db2 with direct jdbc connection. Why it is so hard for db2? Thank you very much! --tom - Do you Yahoo!? Yahoo

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-22 Thread Richard Mixon (qwest)
> Hope this helps > Tom. > > On Mon, 21 Feb 2005 07:32:29 -0700, Richard Mixon (qwest) > <[EMAIL PROTECTED]> wrote: >> >> -Original Message- >> From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] >> Sent: 21 February, 2005 7:53 AM >> To: tomcat-u

Re: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-22 Thread Tom A
ailto:[EMAIL PROTECTED] > Sent: 21 February, 2005 7:53 AM > To: tomcat-user@jakarta.apache.org > Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? > > We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL > Connector/J 3.0.15 with Hibernate 2.1.7c with n

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? New approach [SOLVED]

2005-02-21 Thread Richard Mixon (qwest)
maxWait="1" > defaultAutoCommit="true" > userName="ltojsw" > password="586579" > driverClassName="com.mysql.jdbc.Driver" > > ur

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? New approach

2005-02-21 Thread Richard Mixon (qwest)
mangled or swallowed. I've double checkd and it is correctly specified in my context.xml But by the time the failure occurs, it is a null or empty string. So, how can I enable logging on my DBCP datasource so that I can see where the connection "userName" property gets trashed? I&#

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-21 Thread Richard Mixon (qwest)
ation works in Tomcat 5.0.19, but not in Tomcat 5.5.7. Thanks - Richard -Original Message- From: Shakeel Ahmad [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 6:39 AM To: Tomcat Users List Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? Try to hard

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-21 Thread Shakeel Ahmad
stan. SCJP,SCWCD & SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: 21 February, 2005 6:16 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what chan

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-21 Thread Richard Mixon (qwest)
Shakeel, Thanks for the suggestion but we were already using DBCP 1.2.1. I downloaded it and tried it again, but get the same error. Any other ideas why the username would not be passed correctly when creating the datasource/pool? -Original Message- From: Shakeel Ahmad [mailto:[EMAIL

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
; SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: 21 February, 2005 10:24 AM To: Tomcat Users List Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? Actually I tried

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Richard Mixon (qwest)
Users List Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? Have you changed the corresponding mysql connector jar file ? -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: 21 February, 2005 7:53 AM To: tomcat-user@jakarta.apache.org

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
, Pakistan. SCJP,SCWCD & SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: 21 February, 2005 7:53 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.7 cannot connect to mysql datasource -

Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Richard Mixon (qwest)
vider:51 - Using datasource: java:comp/env/jdbc/stars 19:37:27,648 INFO [http-8080-Processor25] TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) AbandonedObjectPool is used ([EMAIL PROTECTED]) Lo

Problem configure Datasource on Tomcat 4

2005-02-08 Thread Mario Bittermann
Hi, I tried to configure datasource as described in the How-To manual on tomcat 4, but it doesn´t work. I found two ways to define a datasource and work with it: On tomcat 4.1.24: 1. Define context-entry in server.xml for my application with resource entry for datasource. 2. Define resource-ref

Re: order of creation of JNDI datasource from context.xml and Filter.init() using it

2005-02-07 Thread Wouter Boers
The easiest way to add a JNDI datasource is to install the webadmin and define the datasource not as a global JNDI but 'local' to the context. This can easily be achieved with the admin application. I have seen this problem where I defined the global datasource in TC 5.5 and it was n

Re: order of creation of JNDI datasource from context.xml and Filter.init() using it

2005-02-05 Thread Mario Winterer
Hi Jeroen! Two weeks ago I (almost) exactly did what you want to do - make hibernate use a JNDI-DataSource defined as a GlobalNamingResource! The differences: My database is Oracle and I didn't configure hibernate directly because I use the spring-framework in between. I experienced pro

Re: order of creation of JNDI datasource from context.xml and Filter.init() using it

2005-02-05 Thread Jacob Kjome
quot;10" >maxIdle="100" >maxWait="3000" >/> > >In the web.xml I put: > > >HibernateSessionFilter > >nl.kransen.mywebapp.context.HibernateSessionFilter > > >HibernateSessionFilter >/* > >... > >

order of creation of JNDI datasource from context.xml and Filter.init() using it

2005-02-05 Thread Jeroen Kransen
ainer In the hibernate.cfg.xml I make a JNDI reference to the datasource: java:comp/env/jdbc/mydb net.sf.hibernate.dialect.PostgreSQLDialect true Now I created a HibernateSessionFilter that will filter any request to the webapp and provide it w

Re: Tomcat datasource not persisting across restarts

2005-01-31 Thread Parsons Technical Services
Johnny wrote: I'm confused by this. First, I found that to get the datasource to work at all I had to use a context file with a docbase pointing to an exploded war file rather than just installing a complete war file into Tomcat's webapps directory. Thinking that there might be

Re: Tomcat datasource not persisting across restarts

2005-01-31 Thread Johnny Tolliver
e with the tag. I deploy using the web app manager page and giving a file: URL pointing to the context file. But this sounds crazy! Surely there should be some way to just deploy a war file and still use a global datasource. But how? Your second sugg

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Parsons Technical Services
Always better to be too much than not enough. At a quick glance I see two errors. One make this for the root of the app. When the war or root folder resides. Two make Rave generated DataSource Reference jdbc/APLregistration javax.sql.DataSource should be

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Johnny Tolliver
Finally, here's the rather long conf/web.xml. This one may get bounced back too, but I'll try it. Heck, I'll remove most of the comments first. I guess there were quite a few HTML comments. Thanks for your interest and help. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Johnny Tolliver
And here's conf/server.xml with the database password removed factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml maxWait 5000

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Johnny Tolliver
Rave generated DataSource Reference jdbc/APLregistration javax.sql.DataSource Container Johnny S. Tolliver Oak Ridge National Laboratory [EMAIL PROTECTED], 865-574-1305 - To unsubscribe, e-mail: [EMAIL P

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Johnny Tolliver
Doug wrote... > Post your config files. server.xml and web.xml from ../conf/ and the web and > context files for you app. My first reply was blocked due to "excessive HTML comments". It was mostly XML. Guess the rule engine needs to be made smarter... Oh well, here it is in pieces. First context

Re: Tomcat datasource not persisting across restarts

2005-01-28 Thread Johnny Tolliver
faces/APLRegistration.jsp Rave generated DataSource Reference jdbc/APLregistration javax.sql.DataSource Container And, finally, here is my context file: Johnny S. Tolliver Oak

Re: Tomcat datasource not persisting across restarts

2005-01-27 Thread Parsons Technical Services
Post your config files. server.xml and web.xml from ../conf/ and the web and context files for you app. Doug - Original Message - From: "Johnny Tolliver" <[EMAIL PROTECTED]> To: Sent: Thursday, January 27, 2005 2:07 PM Subject: Tomcat datasource not persisting across

  1   2   3   4   5   6   7   8   9   >