Re: Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-12 Thread Craig Dixon
After some more testing, I have determined that I can remove the user name and password from context.xml in Tomcat 5.5.4, and it still works. Removing the entire Resource tag, however, causes it to crash out, as it should. This means that Tomcat 5.5.4 needs the connection information in context.xml

Re: Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-12 Thread Craig Dixon
After some more testing, I have determined that I can remove the user name and password from context.xml in Tomcat 5.5.4, and it still works. Removing the entire Resource tag, however, causes it to crash out, as it should. This means that Tomcat 5.5.4 needs the connection information in context.xml

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 resource-ref

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

RE: Datasource problems on Tomcat 5.5.4

2004-11-09 Thread Mark Fleischman
Thanks Rémy & Yoav! Mark Quoting "Shapira, Yoav" <[EMAIL PROTECTED]>: > > Hi, > The ResourceParams nested elements are history, it's all in the Resource > element now. See the new configuration page at > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples > -howto.html. > >

RE: Datasource problems on Tomcat 5.5.4

2004-11-09 Thread Shapira, Yoav
Hi, The ResourceParams nested elements are history, it's all in the Resource element now. See the new configuration page at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Mark Flei

Re: Datasource problems on Tomcat 5.5.4

2004-11-09 Thread Remy Maucherat
On Mon, 8 Nov 2004 16:07:26 -0800, Mark Fleischman <[EMAIL PROTECTED]> wrote: > Hello, > > After upgrading from Tomcat 5.0.27 to Tomcat 5.5.4 my JNDI datasources are > not resolving in 5.5.4 The configuration of the datasources was too verbose, and has been changed in this release. Look in the JN

Re: DataSource and initialContext.lookup("java:comp/env")

2004-11-07 Thread Frank W. Zammetti
java:comp/env is the default namespace defined by JNDI. The call to lookup() with this as an argument is returning an instance of a context corresponding to that namespace, which you need to do a further lookup for your specific resource. On a related note, I'm pretty sure you could condense a

Re: DataSource and initialContext.lookup("java:comp/env")

2004-11-06 Thread Eric Wulff
helpful somewhat... at least in helping me narrow my question. So what is this "java:comp/env"? What exactly is being returned based on this string passed to lookup()? Eric On Sat, 06 Nov 2004 23:35:34 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I'll give it a shot... > > All JNDI

Re: DataSource and initialContext.lookup("java:comp/env")

2004-11-06 Thread Steven J. Owens
On Sat, Nov 06, 2004 at 07:05:12PM -0800, Eric Wulff wrote: > I just returned from working on a tutorial at sun which I was inspired > to go over based on my lack of understanding of the code snippet > below. I'm trying to fully understand what's going on. Docs state > that the code... > > initi

Re: DataSource and initialContext.lookup("java:comp/env")

2004-11-06 Thread Frank W. Zammetti
I'll give it a shot... All JNDI resource lookups occur relative to some context. The code you posted first gets the default initial context, then looks for a resource named "java:comp/env" relative to that default context. It then gets a reference to a DataSource that exists within the context

Re: DataSource Question

2004-08-29 Thread Big Chiz
there can be two things to change: if ur using tc5 you can change your dbcp resource via yourcustomapp.xml (conf/catalina/localhost/) and then in your web.xml javax.servlet.jsp.jstl.sql.dataSource jdbc/yourcustomname On Sun, 29 Aug 2004 14:29:22 -0700, Jack Lauman <[EMA

Re: Datasource Definition

2004-08-04 Thread Valter G. Nogueira Jr.
Yoav Shapira, thanks. After reading Tomcat docs and some books I realized the issue. Valter - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, August 04, 2004 2:57 PM Subject:

RE: Datasource Definition

2004-08-04 Thread Shapira, Yoav
Hi, Read the section on Automatic Application Deployment in the Tomcat docs, and you will see that these are simply multiple options to do the same thing. Which one is best depends on your needs and preferences, but they're not that different from each other. Yoav Shapira Millennium Research Inf

Re: DataSource -- help please

2004-07-28 Thread Koon Yue Lam
Hi, I think the exception already told you what going wrong according to: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html the url should be: url jdbc:HypersonicSQL:database so if your database call "testDB" the url would become: jdbc:HypersonicSQL:testD

RE: DataSource

2004-07-28 Thread Aris Javier
Hello! just restart tomcat and your done... =) aris -Original Message- From: Bussie, Andre D [mailto:[EMAIL PROTECTED] Sent: Wed 7/28/2004 9:35 PM To: [EMAIL PROTECTED] Cc: Subject:DataSource By adding the tag to the web.xml and including the tag in the Context of

Re: Datasource to MYSQL

2004-05-14 Thread Parsons Technical Services
Devlin, >From my understanding, this is not a function of Tomcat. The appending is MySQL looking up who is sending. If you use the MySQL prompt to access MySQL it will only prompt you for a user name and password, but MySQL check for the location. Try logging in to MySQL directly on the machine u

Re: DataSource not found

2004-03-05 Thread Parsons Technical Services
; Sent: Friday, March 05, 2004 1:08 AM Subject: RE: DataSource not found > Daniel, > > I have not been able to get Global Resources to work. I played around > with them for a while, but I decided to cheat by defining my resources > under the element in the . Below is a stripped >

RE: DataSource not found

2004-03-04 Thread Snotman
Daniel, I have not been able to get Global Resources to work. I played around with them for a while, but I decided to cheat by defining my resources under the element in the . Below is a stripped down example. I also define a context.xml and place it under /MEATA-INF/. This file has the defin

Re: DataSource not found

2004-03-04 Thread daniel
i goofed i forgot to put 2 lines in my server.xml file. inside the global naming resources thanks daniel Schulken - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 2:57 PM Subject: DataSource not found background info tomcat 5.0

Re: DataSource problem

2004-02-20 Thread Nathan Maves
I was not aware that I was :) I have turned this off in net beans. I just use this for my development and create a war file with it. I just drop this war in the webapps dir of tomcat. Now I can't seem to get rid of it! Nathan On Feb 20, 2004, at 1:55 PM, Antonio Fiol Bonnín wrote: This s

Re: DataSource problem

2004-02-20 Thread Antonio Fiol Bonnín
This sounds as anything but a DataSource problem. What are you using NetBeans "web monitor module" for? Antonio Fiol Nathan Maves wrote: Hey guys just joined the alias today! I am getting the following error from my web app. NotifyUtil::java.net.ConnectException: Connection refused Means se

RE: DataSource Realm

2004-01-19 Thread Bruno.Melloni
This is probably not the only way to accomplish what you want, but a simple one to code for. 1)Define your DataSource resource in of conf/server.xml. 2)Add a to the DataSource in the application context file in conf/Catalina//.xml This way the only applications that are able to access the dat

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
t ill-effects. -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 11:26 AM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context On a different topic, do you have the database driver under WEB-INF/lib or c

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
04 9:25 AM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context When I tested 5.0 for auto deployment, the datasource JNDI context was no longer available to the application and a SQLException was thrown in the logs (the app interacts with database on initializatio

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
involved. -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:25 AM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context When I tested 5.0 for auto deployment, the datasource JNDI context was n

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
ent: Friday, January 09, 2004 4:23 PM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context There's a catch though In TC 4.x, if you put a app context entry in the server.xml, the app doesn't get reloaded even if the war is overwritten or the app

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
leshoot, if not, the workaround works just fine. Bruno. -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 4:23 PM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context There's a catch though In

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Altankov Peter
Hi > From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED] > Sent: 11 Януари 2004 г. 11:39 > Subject: Re: Datasource - OK in app context - Fails in Global context > > > So, could someone summarize for me the different ways of > creating a JDBC > DataSource in Tomca

Re: Datasource - OK in app context - Fails in Global context

2004-01-11 Thread Antonio Fiol Bonnín
So, could someone summarize for me the different ways of creating a JDBC DataSource in Tomcat? I will start the summary, so that it's easier to correct/complete. Please fill in the gaps ;-) 1. Have the DataSource defined in your application's context. That way, if you have two apps, you have

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Jacob Kjome
, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have you defined a reference to the global resource in the element of the application context ? >>> [EMAIL PROTECTED] 01/09/04 10:38AM >

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Keshav Sarin
air on this issue for almost a month. Bruno -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have yo

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Bruno.Melloni
: Friday, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have you defined a reference to the global resource in the element of the application context ? >>> [EMAIL PROTECTED] 01/09/04 10:3

Re: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Keshav Sarin
Have you defined a reference to the global resource in the element of the application context ? >>> [EMAIL PROTECTED] 01/09/04 10:38AM >>> I have an Oracle JDBC datasource that I defined in the Tomcat5 context for an application (conf/Catalina/localhost/nwg.xml). Works fine, context file listed

Re: Datasource problem upgrading from 4.06

2003-11-26 Thread Jim Kennedy
: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 12:57 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -how

RE: Datasource problem upgrading from 4.06

2003-11-26 Thread Shapira, Yoav
t; >- Original Message - >From: "Shapira, Yoav" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Wednesday, November 26, 2003 12:41 PM >Subject: RE: Datasource problem upgrading from 4.06 > > > >Howdy, >You ne

Re: Datasource problem upgrading from 4.06

2003-11-26 Thread Jim Kennedy
o: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics &

RE: Datasource problem upgrading from 4.06

2003-11-26 Thread Shapira, Yoav
Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Jim Kennedy [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 26, 2003 12:30 PM >To: Tomcat Users List >Subject: Datasourc

Re: Datasource in JSP

2003-11-12 Thread Christopher Schultz
I have a datasource configured with the name 'jdbc/TestDB' as in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html. I wanna use this datasource in a JSP test using 'jakarta/dbtags' taglib. What is the name I should use for the 'dataSource' attribute of the 'connec

Re: Datasource connections not released when reloading context

2003-10-06 Thread Jose Alfonso Martinez
nal Message- > From: Matt Raible [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 9:52 AM > To: 'Tomcat Users List' > Subject: RE: Datasource connections not released when reloading context > > > I tried changing the "removeAbandonedTimeout"

RE: Datasource connections not released when reloading context

2003-10-06 Thread Phillip Qin
Would you mind run netstat to see what kind of connection they are, e.g. port, host, status? -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: October 3, 2003 11:52 AM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading

RE: Datasource connections not released when reloading context

2003-10-03 Thread Matt Raible
ain. Matt -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:52 AM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading context I tried changing the "removeAbandonedTimeout" to 1 and then to test

RE: Datasource connections not released when reloading context

2003-10-03 Thread Matt Raible
ing does not work on Tomcat 4.1.27/WinXP/JDK 1.4.2. Thanks, Matt -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 1:22 AM To: Tomcat Users List Subject: Re: Datasource connections not released when reloading context Sorry, but I didn't see

Re: Datasource connections not released when reloading context

2003-10-03 Thread Adam Hardy
Sorry, but I didn't see which datasource you were using. With DBCP, you have these optional parameters: removeAbandoned true removeAbandonedTimeout 60 logAbandoned true I think if you set the timeout to 1 or 2, then you may see a stacktrace from abandoned connection

Re: DataSource and JNDI problem at Tomcat 4+Apache

2003-10-02 Thread Tuna Vardar
On Thu, 2003-10-02 at 01:12, Peter Harrison wrote: > On Thu, 02 Oct 2003 01:01, Tuna Vardar wrote: > > > What can be the cause for the exception I mentioned above? Any comments? > > Sounds very similar to the issue I had when trying to move to 4.1.27. When I > moved from 4.0.4 to 4.1.27 the exa

Re: Datasource connections not released when reloading context

2003-10-02 Thread Jose Alfonso Martinez
On Wed, Oct 01, 2003 at 11:37:39AM -0500, Matt Raible wrote: > I already do this, but when I "reload" my context, I get two database > connections, rather than one. So each time I reload, I get an additional > connection - eventually resulting in an OutOfMemory Error (which I'm > attributing to t

Re: DataSource and JNDI problem at Tomcat 4+Apache

2003-10-01 Thread Peter Harrison
On Thu, 02 Oct 2003 01:01, Tuna Vardar wrote: > What can be the cause for the exception I mentioned above? Any comments? Sounds very similar to the issue I had when trying to move to 4.1.27. When I moved from 4.0.4 to 4.1.27 the exact same issue arose. If you put everything under a context it s

RE: Datasource connections not released when reloading context

2003-10-01 Thread Phillip Qin
ECTED] Sent: October 1, 2003 12:38 PM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading context I already do this, but when I "reload" my context, I get two database connections, rather than one. So each time I reload, I get an additiona

RE: Datasource connections not released when reloading context

2003-10-01 Thread Matt Raible
riginal Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:20 AM To: Tomcat Users List Subject: Re: Datasource connections not released when reloading context actually that doesn't really close them, since it's a connection pool, but it tells the con

RE: Datasource connections not released when reloading context

2003-10-01 Thread Phillip Qin
and nullify the data source. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: October 1, 2003 5:20 AM To: Tomcat Users List Subject: Re: Datasource connections not released when reloading context actually that doesn't really close them, since it's a connection

Re: Datasource connections not released when reloading context

2003-10-01 Thread Adam Hardy
ent: Monday, September 29, 2003 8:04 AM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading context - to release your DB connections when your app is shutdown or reloaded: implement destroy method in your servlet class to close them. - to prevent connect

Re: Datasource connections not released when reloading context

2003-10-01 Thread Adam Hardy
or tell me to RTFM. Matt -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 8:04 AM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading context - to release your DB connections when your app is

RE: Datasource connections not released when reloading context

2003-09-29 Thread Matt Raible
AM To: 'Tomcat Users List' Subject: RE: Datasource connections not released when reloading context - to release your DB connections when your app is shutdown or reloaded: implement destroy method in your servlet class to close them. - to prevent connections getting exhausted, use evictor if y

RE: Datasource connections not released when reloading context

2003-09-29 Thread Phillip Qin
- to release your DB connections when your app is shutdown or reloaded: implement destroy method in your servlet class to close them. - to prevent connections getting exhausted, use evictor if your use commons pooling and dbcp. -Original Message- From: Jose Alfonso Martinez [mailto:[EMAIL

Re: DataSource configuration in web.xml instead of server.xml

2003-06-04 Thread Kwok Peng Tuck
You can have a context for your application defined in a seperate xml file but not in the web.xml. If you read the dtd for the web.xml you'll see that this is not allowed. Simply copy your context that works and paste into a new xml file, which has the same name as your webapp. So if you had you

RE: DataSource in Tomcat for MS SQL server

2003-04-04 Thread Halstead, Chris
Tomcat binds the DataSource object in JNDI to jdbc/PubsDb, but relative to java:comp/env and not the root of the context. See the code examples at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html -chris -Original Message- From: Alexey Tyurin [mailto:[

RE: DataSource misconfigured?

2003-04-01 Thread Steve Gums
] Sent: Tuesday, April 01, 2003 7:39 AM To: Tomcat Users List Subject: Re: DataSource misconfigured? Are you using a finally bock to close your connections? You might be reaching the maximum connections allowed in the pool for DBCP. Please provide an example of a query statement where you do try

Re: DataSource misconfigured?

2003-04-01 Thread Jacob Kjome
Are you using a finally bock to close your connections? You might be reaching the maximum connections allowed in the pool for DBCP. Please provide an example of a query statement where you do try/catch/finally. If you are not checking if your connections are not null and then making a last d

Re: DataSource implementation

2003-03-31 Thread Jeff Mesnil
Hi, Marco Rossi wrote: Hi, it's possible to configure Tomcat 4.1.24 to use another DataSource implementation, and not DBCP? yes. Tomcat can be configured to use another DataSource than DBCP by modifying its server.xml file (see JNDI DataSource HOWTO[1]). AS an example, I've done it to use a XA-a

Re: DataSource resource in

2003-03-05 Thread Jon Archer
On Tue, 2003-03-04 at 19:50, Jacob Kjome wrote: > > Look in server.xml in recent tomcat-4.1.x versions ( I have 4.1.19 > here). There is an entry in called > "UserDatabase" > There's your example. > > Jake > Fabulous, thanks Jake. That worked a treat :-) ---

RE: DataSource resource in

2003-03-05 Thread apachep2
It is just a scope thing. -Original Message- From: Jon Archer [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 6:49 PM To: [EMAIL PROTECTED] Subject: DataSource resource in I see a lot of to and fro over setting up database connection pooling as a JNDI resource. I only see solutions where

Re: DataSource resource in

2003-03-04 Thread Jacob Kjome
Look in server.xml in recent tomcat-4.1.x versions ( I have 4.1.19 here). There is an entry in called "UserDatabase" factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

Re: Datasource

2003-02-26 Thread Nikola Milutinovic
Sebastião Carlos Santos wrote: Georges, For the documentation of JNDI Datasource HOW-TO, their files jar should be located in $CATALINA_HOME/common/lib. This road should be put in CLASSPATH of the system also. *** REPLY SEPARATOR *** On 26/2/2003 at 13:31 Georges Roux wrote:

Re: Datasource

2003-02-26 Thread "Sebastião Carlos Santos"
Georges, For the documentation of JNDI Datasource HOW-TO, their files jar should be located in $CATALINA_HOME/common/lib. This road should be put in CLASSPATH of the system also. *** REPLY SEPARATOR *** On 26/2/2003 at 13:31 Georges Roux wrote: >Hi, > >I run under Linu

Re: Datasource and connection

2003-02-03 Thread Lindomar
February 03, 2003 16:25 Subject: RE: Datasource and connection > I'm curious as to why you're asking this question. You should be using the > connection pool according to the documentation provided, because that is how > it is intended to be used. That is... > > void d

RE: Datasource and connection

2003-02-03 Thread Sean Dockery
I'm curious as to why you're asking this question. You should be using the connection pool according to the documentation provided, because that is how it is intended to be used. That is... void doPost(...) { InitialContext ic = new InitialContext(); Context jdbcCtx = (Context) ic.lookup("ja

RE: DataSource error (DBCP)

2002-12-23 Thread Nicholas Orr
Did you import javax.sql.*; ?? DataSource is part of the J2EE package. Just an extension to the normal java.sql package -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 24 December 2002 2:20 AM To: Tomcat Users List Subject: Re: DataSource error (DBCP

Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar
cc: 12/23/2002 02:53 Subject: Re: DataSource error (DBCP) PM

Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar
that's cool!!! worked. bringing attention to my old problem like i'm unable to compile DBTest.java (i compiled the same in another machine where oracle 9i is running, and copied to the machine where tomcat is running :)) I tried to compile DBTest.java and ended up an error Type '

Re: DataSource error (DBCP)

2002-12-23 Thread Klaas van der Ploeg
[EMAIL PROTECTED] Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: DataSource error (DBCP) Date: Mon, 23 Dec 2002 08:42:05 + while executing ... http://195.54.247.110:8080/DBTest/test.jsp getting the error

Re: DataSource error (DBCP)

2002-12-23 Thread Manavendra Gupta
tomcat 4.x doesn't like classes in the root directory - place that class into a package and then try again. - Original Message - From: <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002 12:42 AM Subject: Re: DataSour

Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar
while executing ... http://195.54.247.110:8080/DBTest/test.jsp getting the error message org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 6 in the jsp file: /test.jsp Generated servlet error: [javac] Compiling 1 source file /home/sunil/jaka

Re: DataSource error (DBCP)

2002-12-23 Thread Peng Tuck Kwok
Peng Tuck Kwok al.net> cc: Subject: Re: D

Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar
Peng Tuck Kwok al.net> cc: Subject: Re: DataSource error (DBCP)

Re: DataSource error (DBCP)

2002-12-23 Thread Peng Tuck Kwok
"Galbayar Dorjgotov" To: "Tomcat Users List" <[EMAIL PROTECTED]> Sub

RE: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar
sunil "Galbayar Dorjgotov" To: "Tomcat Users List" <[EMAIL PROTECTED]> Su

RE: DataSource error (DBCP)

2002-12-22 Thread Galbayar Dorjgotov
copy mysql jdbc driver to tomcat/common/lib directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 3:09 AM To: [EMAIL PROTECTED] Subject: DataSource error (DBCP) hi all, i'm new to tomcat... if my queries are foolish...pl forgive.

RE: DataSource problem.

2002-12-07 Thread Jacob Kjome
Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:19 PM To: Tomcat Users List Subject: RE: DataSource problem. I haven't been able to solve this yet... but was wondering if tomcat logs somewhere that the Resource Manager added a ne

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
*deep breath. I'm lost about this... would anyone take a shot at helping me? Thanks Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:19 PM To: Tomcat Users List Subject: RE: DataSource problem. I haven't been abl

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
Users List Subject: RE: DataSource problem. Tried the same with a simplistic jsp page: <%@ page import="java.sql.*, javax.sql.*, javax.naming.*" %> <% out.println("hello"); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
Tried the same with a simplistic jsp page: <%@ page import="java.sql.*, javax.sql.*, javax.naming.*" %> <% out.println("hello"); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/rtidb"); Connectio

Re: datasource setup

2002-12-03 Thread maninder s batth
i will pass onto you what i learnt from Craig, and its check common-dbcp implementation . you will be able to set up your cloudscape pretty soon. i just finished making some changes to my datasource class and factory class and it works fine with tomcat. Took me few hours, YMMV , but i learnt few

Re: DataSource config problem :(

2002-12-03 Thread maninder s batth
Jacob Kjome wrote: DBCP ultimately wraps your DataSource object. no it doesnt, if you specify a different factory class DBCP plays no role. So, the config is specific to DBCP, not to your implementation of your DataSource. Someone please correct me if I am wrong. yes, the examples give

Re: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
DBCP ultimately wraps your DataSource object. So, the config is specific to DBCP, not to your implementation of your DataSource. Someone please correct me if I am wrong. Jake At 06:32 AM 12/3/2002 -0800, you wrote: I could be wrong but isnt username>sa specific to dbcp .BasicDataSourceFact

Re: DataSource config problem :(

2002-12-03 Thread maninder s batth
I could be wrong but isnt username>sa specific to dbcp .BasicDataSourceFactory ? I am using SQLServerDataSource and according the docs they specify a param called User whose value should be a user name. Jacob Kjome wrote: Usersa should be usernamesa Also, I'm not sure if the names are

Re: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
Usersa should be usernamesa Also, I'm not sure if the names are case sensitive. I suggest using All lower case just to be sure. Jake At 05:23 AM 12/3/2002 -0800, you wrote: Hi i spent 7 hours trying to figure out the problem, but no luck, anyone with leads pls help! i have followin

Re: Datasource and Initial Context

2002-12-02 Thread Craig R. McClanahan
On Mon, 2 Dec 2002, maninder s batth wrote: > Date: Mon, 02 Dec 2002 20:41:10 -0800 > From: maninder s batth <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Datasource and Initial Context > > hi i am using my own DataSo

Re: Datasource and Web.xml

2002-12-02 Thread Peng Tuck Kwok
Thanks craig. I'll look up the ResourceLink element. Craig R. McClanahan wrote: On Tue, 3 Dec 2002, Peng Tuck Kwok wrote: Date: Tue, 03 Dec 2002 12:09:42 +0800 From: Peng Tuck Kwok <[EMAIL PROTECTED]> Reply-To: Tomcat Users List <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Su

Re: Datasource and Web.xml

2002-12-02 Thread Craig R. McClanahan
On Tue, 3 Dec 2002, Peng Tuck Kwok wrote: > Date: Tue, 03 Dec 2002 12:09:42 +0800 > From: Peng Tuck Kwok <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Datasource and Web.xml > > If a web application uses a jndi dataso

Re: DataSource problem

2002-11-24 Thread Daniel Tamborelli Alvarenga
Ok... now it's working fine... Thank you very much... :) Daniel Tamborelli Alvarenga - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 9:08 PM Subject: Re:

Re: DataSource problem

2002-11-24 Thread Kwok Peng Tuck
Remove the sql validation parameter in your datasource definition or give it a table to select from. Daniel Tamborelli Alvarenga wrote: I've installed Tomcat 4.1 on Windows 2000 and MySQL I've configured the Data Source in the server.xml and that's ok... but when I try to get the connection fro

Re: Datasource

2002-09-30 Thread Willian Mitsuda
Try this: DataSource ds = (DataSource) ic.lookup("java:comp/env/myjndi"); but you should use this (note the "/jdbc" before "/myjndi"): DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/myjndi"); and bind your datasource to the name "jdbc/myjndi". All environment resources are bind t

Re: Datasource

2002-09-30 Thread Lindomar
myuser maxIdle 2 ... ### - Original Message - From: "Miguel Angel Mulero Martinez" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 30, 2002 11:27 AM Subject: RE: Datasource

RE: Datasource

2002-09-30 Thread Miguel Angel Mulero Martinez
You must define the DataSource in your web.xml too. For example: My datasource myjndi javax.sql.DataSource Container Regards. -Mensaje original- De: Lindomar [mailto:[EMAIL PROTECTED]] Enviado el: domingo, 29 de septiembre de 2002 20:41 Para: Tomcat Users List Asun

Re: Datasource JNDI lookup failing

2002-07-19 Thread Ben Walding
y, July 19, 2002 8:16 AM >To: 'Tomcat Users List' >Subject: RE: Datasource JNDI lookup failing > > >I had a similar problem, but i was using classes12.zip that is from Oracle. >I tried every option, but it didnt seem to work. Then at the end upgraded to >tc 4.1.7. TC 4.

RE: Datasource JNDI lookup failing

2002-07-19 Thread Turner, John
Sent: Friday, July 19, 2002 8:16 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I had a similar problem, but i was using classes12.zip that is from Oracle. I tried every option, but it didnt seem to work. Then at the end upgraded to tc 4.1.7. TC 4.1.7 had all the

RE: Datasource JNDI lookup failing

2002-07-19 Thread Vikramjit Singh
929-1059 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:05 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I've had the exact same problem with for the past couple of weeks, only with the Microsoft

RE: Datasource JNDI lookup failing

2002-07-19 Thread Turner, John
I've had the exact same problem with for the past couple of weeks, only with the Microsoft Type4 SQL Server driver. Everything seems to work great, and the Context is definitely found, but the DataSource is always null. I haven't been able to find a solution, the closest I came was going to 4.1

  1   2   >