Re: Jmxproxy causes datasources exceptions.

2018-02-22 Thread Oliva
Problem was initialSize="0". Solution initialSize="1". -- Forwarded message - From: Oliva Date: mié., 21 feb. 2018 a las 12:47 Subject: Jmxproxy causes datasources exceptions. To: When I try "http://myserver:myport/manager/jmxproxy"; y get in c

Jmxproxy causes datasources exceptions.

2018-02-21 Thread Oliva
When I try "http://myserver:myport/manager/jmxproxy"; y get in catalina.out the same error for getting attributes like Schema, AutoCommit, Catalog, TransactionIsolation, Holdability and ReadOnly. Tomcat 8.5.28 with DBCP 2 factory datasources. Example from catalina.out for one attribu

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-06-01 Thread Hedrick, Brooke - 43
> -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Friday, June 01, 2012 11:06 AM > > > By the way: > > 53254 (1340160): > Add in the ability to purge connections from the pool (fhanik) > > https://issues.apache.org/bugzil

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-06-01 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Question about resetting datasources and changes to the > BasicDataSource.close() method > Locking "this" makes sure that the thread's local copy of > whatever-you-are-getting is

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 6/1/12 11:54 AM, Hedrick, Brooke - 43 wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Thursday, May 31, >> 2012 5:23 PM > > That's what I will submit to commons-dbcp, then. > >

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-06-01 Thread Konstantin Kolinko
2012/5/30 Hedrick, Brooke - 43 : >(...) > > Next, I looked at the new datasource org.apache.tomcat.jdbc.pool.DataSource.   > I have not found any methods to close/reset the pools and the JMX attributes > are readonly.  This prevents us both from resetting and resizing our > connection pools. > B

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-06-01 Thread Hedrick, Brooke - 43
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, May 31, 2012 5:23 PM > > > Yup: the solution is to just synchronize all the methods. If restart() is > synchronized, it will only operate while other methods are not actively > checkin

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 3:53 PM, Hedrick, Brooke - 43 wrote: > Are you just concerned about the restart() being called by more > than 1 thread since the restarting member variable isn't > protected? Yes. > If so, I was looking for a short term, simple, f

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, May 31, 2012 2:27 PM > To: Tomcat Users List > Subject: Re: Question about resetting datasources and changes to the > BasicDataSource.close() method > > -

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 11:56 AM, Hedrick, Brooke - 43 wrote: > /** * Not used currently */ protected boolean restarting = false; > // bth new > > public void restart() { try { restarting = true; // bth new try { > close(); } finally { restarting = fals

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 11:51 AM, Hedrick, Brooke - 43 wrote: > Our release cycle has us releasing many applications on many JVMs > every week. From time to time, these applications have issues in > them where someone has made a code change that require

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
59.1322 Cel: 515.314.8953 -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Thursday, May 31, 2012 8:19 AM To: Tomcat Users List Subject: Re: Question about resetting datasources and changes to the BasicDataSource.close() method 2012/5/30 Hedrick, Brooke - 43 : >

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
: Re: Question about resetting datasources and changes to the BasicDataSource.close() method -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/30/12 3:31 PM, Hedrick, Brooke - 43 wrote: > How are others dynamically resetting/resizing their database > connection pools when necessary?

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Konstantin Kolinko
2012/5/30 Hedrick, Brooke - 43 : >(...) > > So far, my options point to making changes to the BasicDataSource to provide > a way to set closed=false or make the private method below public with a > change to set closed=false. > >    /** >     * Not used currently >     */ >    private void restar

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/30/12 3:31 PM, Hedrick, Brooke - 43 wrote: > How are others dynamically resetting/resizing their database > connection pools when necessary? Quick question about all this: why do you need to do any more dynamic-resizing than dbcp already

Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-30 Thread Hedrick, Brooke - 43
How are others dynamically resetting/resizing their database connection pools when necessary? Background: I am running into some issues with how we manage datasources due to changes in Tomcat/commons-dbcp. We are just now beginning to move some of our applications to Tomcat 7.0.21 from Tomcat

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Konstandin, It is due to incomplete cleanup: a stale copy with same user causes the issue. Thanks a lot Steven From: Konstantin Kolinko To: Tomcat Users List Sent: Thursday, March 15, 2012 9:27:51 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Thanks Konstantin, Option 1) has been checked carefully, it is always clean/deploy. I will try option 2). From: Konstantin Kolinko To: Tomcat Users List Sent: Thursday, March 15, 2012 9:27:51 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29 2012/3

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Stevo, I checked many times, the users are different in context.xml Thanks From: Stevo Slavić To: Tomcat Users List ; Steven Xiong Sent: Thursday, March 15, 2012 9:21:58 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29 Hello Steven, Just a

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Konstantin Kolinko
2012/3/15 Steven Xiong : > I have a Spring/JPA application running on Tomcat 6.0.29 accessing two > schemas of a single Oracle database. Each schema is configured as a seperate > datasource. If we config the datasources as spring beans of > "com.mchange.v2.c3p0.ComboPooledData

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Stevo Slavić
have a Spring/JPA application running on Tomcat 6.0.29 accessing two > schemas of a single Oracle database. Each schema is configured as a > seperate datasource. If we config the datasources as spring beans of > "com.mchange.v2.c3p0.ComboPooledDataSource" type, the app works correct

Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
I have a Spring/JPA application running on Tomcat 6.0.29 accessing two schemas of a single Oracle database. Each schema is configured as a seperate datasource. If we config the datasources as spring beans of "com.mchange.v2.c3p0.ComboPooledDataSource" type, the app works correctly.

Re: Issue with JNDI datasources in Tomcat 6

2011-02-21 Thread Mark Thomas
, which is the > place it belongs. I can see the datasources using lambda probe and if I > debug the code the datasources are there, but the ref address of the JNDI > entry that's resolved is empty and so it can't find the actual object. Most likely a configuration problem. Since

Re: Issue with JNDI datasources in Tomcat 6

2011-02-20 Thread pablo.a.saave...@gmail.com
Hi, I based myself on a Tomcat 5.5 tutorial because that's what I found on the net. I did put the driver jar file in the lib/ directory, which is the place it belongs. I can see the datasources using lambda probe and if I debug the code the datasources are there, but the ref address of the

RE: Issue with JNDI datasources in Tomcat 6

2011-02-18 Thread Propes, Barry L
t.apache.org Subject: Issue with JNDI datasources in Tomcat 6 Hi, I'm trying to use JNDI datasources in Tomcat 6, using global naming resources. My setup is identical to this one: http://pro-programmers.blogspot.com/2008/07/spring-datasource-jndi-lookup-from.html But I keep getting null

Issue with JNDI datasources in Tomcat 6

2011-02-17 Thread pablo.a.saave...@gmail.com
Hi, I'm trying to use JNDI datasources in Tomcat 6, using global naming resources. My setup is identical to this one: http://pro-programmers.blogspot.com/2008/07/spring-datasource-jndi-lookup-from.html But I keep getting null when doing the lookup. I debugged the code a little and the pr

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 15:02, schrieb Caldarale, Charles R: From: Stephan Beutel [mailto:beu...@axivion.com] Subject: Re: Context.xml for multiple datasources But I thought it could be defined by a map in context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would

RE: Context.xml for multiple datasources

2011-02-09 Thread Caldarale, Charles R
> From: Stephan Beutel [mailto:beu...@axivion.com] > Subject: Re: Context.xml for multiple datasources > But I thought it could be defined by a map in > context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would still have to stop and restart

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 12:12, schrieb chris derham: That's right, my code doesn't support a variable amount of databases at the moment because the databases are configured in Spring (inside my war file). But if I use the context to configure this list of datasources, the admin can create da

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> > That's right, my code doesn't support a variable amount of databases at > the moment because > the databases are configured in Spring (inside my war file). > But if I use the context to configure this list of datasources, the admin > can create databases as he n

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 11:03, schrieb chris derham: And the question is: How to build the context to move the existing Spring configuration to the Tomcat context to get all datasources with JNDI. The problem is, that it must be possible to set a variable amount of databases. I can't set the numb

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> And the question is: > How to build the context to move the existing Spring configuration to the > Tomcat context to get all datasources with JNDI. > The problem is, that it must be possible to set a variable amount of > databases. I can't set the number of databas

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
technique you should be able to specify multiple datasources. Chris Hello, thank you for the quick answer. I know how to configure one datasource and lookup with JNDI. This is my actual configuration. But I need to configure more than one datasource to switch the database at runtime. With my

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
hould be able to specify multiple datasources. Chris

Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Hello Tomcat users, I need some help creating my context.xml file in a correct way. My application is based on Spring and Hibernate. I need to configure more than one datasource to access multiple databases at the same time. This is my working Spring datasource.xml: class="org.springframewo

Re: debugging model classes tied to Tomcat datasources

2009-11-10 Thread Eric P
> I'll bet the only thing your code does with a JNDI string is perform the lookup and get a Datasource. You could implement multiple constructors allowing your code to be initialized w/ a JNDI string, DataSource object, or url/username/password. The code utilizing the model classes would simpl

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Thomas
Martin Gainty wrote: > http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html > is a JNDI 'emulator' Huh? Care to explain what you mean by that remark? > i heard chilisoft was implementing JNDI for Tomcat but EOL'ed when Glassfish > came out > I wonder if anyone can resurrect? What

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
ent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 27 Sep 2009 15:27:35 -0400 > From: mark.shif...@yale.edu > Subject: Re: debugging model classes tied to Tomcat datasources > To: users@tomcat.apache.org

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
es email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 27 Sep 2009 12:38:11 -0400 From: mark.shif...@yale.edu Subject: Re: debugging model classes tied to Tomcat datasources To: users@tomcat.apache.org Hi: This

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 27 Sep 2009 12:38:11 -0400 > From: mark.shif...@yale.edu > Subject: Re: debugging model classes tied to Tomcat datasources > To: users@tomcat.apache.org > > Hi: > This is what I do

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
Hi: This is what I do for testing. I made a class for creating a jndi directory and I create this in my main, then I can get a datasource from the jndi directory just like I do it when running tomcat. jndi.properties java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory java

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread David Smith
Eric P wrote: > Hi, > > (Tomcat newb alert) > > I've got a simple database servlet application that has a few model > classes on the back end. > > I have the model classes pretty well genericized so that they could > (almost) be utilized outside of Tomcat by another app, but they do > utilize the T

RE: debugging model classes tied to Tomcat datasources

2009-09-26 Thread Caldarale, Charles R
> From: Eric P [mailto:eric.maill...@gmail.com] > Subject: debugging model classes tied to Tomcat datasources > > they do utilize the Tomcat data sources I've set up (via > an InitialContext data source lookup). So this makes it > impossible (?) to execute the model cl

debugging model classes tied to Tomcat datasources

2009-09-26 Thread Eric P
Hi, (Tomcat newb alert) I've got a simple database servlet application that has a few model classes on the back end. I have the model classes pretty well genericized so that they could (almost) be utilized outside of Tomcat by another app, but they do utilize the Tomcat data sources I've set

Re: Remapping datasources

2009-07-15 Thread David Smith
f the source code ... couldn't you just use the full JNDI path as provided? --David Александър Шопов wrote: > Hi guys, > In my webap I am using a library that depends on datasources being > mapped to: > java:MyDS and not java:comp/env/jdbc/MyDS > > When I define dataso

Remapping datasources

2009-07-14 Thread Александър Шопов
Hi guys, In my webap I am using a library that depends on datasources being mapped to: java:MyDS and not java:comp/env/jdbc/MyDS When I define datasources in Tomcat, they end in java:comp/env. What can I do to remap the datasources - make them available as java:MyDS? One of the strategies would

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Konstantin Kolinko
Hi, Jonas Regarding your previous e-mails where you tried to overwrite META-INF\context.xml. Please note, that at deployment time this file is copied to /conf/Catalina/localhost/.xml I think that you should either update the copy of that file and then restart Tomcat. If you update META-INF/conte

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Len Popp
On Tue, Jul 8, 2008 at 08:53, Jonas Wagner <[EMAIL PROTECTED]> wrote: > Since the application connects to its datasources using the > DriverManager class, I cannot use connection pooling. That's one of the > reasons I tried using JNDI for such a long time :-( I think it&#x

RE: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Jonas Wagner
Thanks Sameer for your reply! > That may work for new datasources but could create a problem > for existing data sources specifically if they are already > being used and have pooled connections. The existing pooled > connections may be in use by the applications too. Since the

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Sameer Acharya
That may work for new datasources but could create a problem for existing data sources specifically if they are already being used and have pooled connections. The existing pooled connections may be in use by the applications too. Restarting the tomcat after modifying datasource may be a

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Jonas Wagner
The problem is now solved, though in a somewhat unsatisfying way. I wrote my own configuration file to store information about the data sources, and now I connect to databases using DriverManager. I'm still wondering about more elegant ways to do dynamical configuration of data sources. Would it b

RE: Configuring DataSources using jsp: reload context.xml?

2008-07-07 Thread Jonas Wagner
Good morning, I'm still trying to figure out how I can cause tomcat to re-read JNDI resources. Here is one way I found out earlier: > After further tests I found out that the server will reload JNDI data > sources if all the following steps are performed: > 1. Change the configuration > 2. Execut

Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-06 Thread J Ilari Moilanen
You have already solved the problems you had but just one more thing to add. You had problems with different Tomcat version but from the quote below I see that you also had problems with different MS sql Server versions as well... For example I have these setting in production use for SQL server 20

Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-06 Thread Johnny Kewl
Message - From: "Jason Cipriani" <[EMAIL PROTECTED]> To: Sent: Sunday, July 06, 2008 8:39 AM Subject: Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears,

RE: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-06 Thread Caldarale, Charles R
> From: Jason Cipriani [mailto:[EMAIL PROTECTED] > Subject: Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, > web.xml, common/lib, DataSources, exceptions, configuration > hell, vague tutorials, hidden documentation, lions, tigers, > bears, oh my... > > Thanks again for p

Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-06 Thread Jason Cipriani
On Sun, Jul 6, 2008 at 11:04 AM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Jason Cipriani [mailto:[EMAIL PROTECTED] >> Subject: [6.0.16] JNDI, MSSQL, context.xml, server.xml, >> web.xml, common/lib, DataSources, exceptions, configuration >>

RE: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-06 Thread Caldarale, Charles R
> From: Jason Cipriani [mailto:[EMAIL PROTECTED] > Subject: [6.0.16] JNDI, MSSQL, context.xml, server.xml, > web.xml, common/lib, DataSources, exceptions, configuration > hell, vague tutorials, hidden documentation, lions, tigers, > bears, oh my... > > http://tomcat.apache.or

Re: [6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-05 Thread Jason Cipriani
t; DataSource ds = (DataSource) ctx.lookup("java:/comp/env/jdbc/mssql"); > Connection conn = ds.getConnection(); > PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM usertest"); > > It is ds.getConnection() that is throwing the exception. I know that &

[6.0.16] JNDI, MSSQL, context.xml, server.xml, web.xml, common/lib, DataSources, exceptions, configuration hell, vague tutorials, hidden documentation, lions, tigers, bears, oh my...

2008-07-05 Thread Jason Cipriani
d as a sanity check). One question I have is, where should the driver JAR go? I have seen multiple references to placing it in Tomcat's "common/lib" directory. I am not sure where that is. There is no directory named "common" in my Tomcat installation. Also, does docume

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-03 Thread Jonas Wagner
One more update on the problem: > An update on the problem: on my development server (managed by eclipse) > restarting the server _sometimes_ seems to apply the changes. I haven't > found out in which cases exactly. The changes are never applied when I > deploy to a production server using a .war

AW: Configuring DataSources using jsp: reload context.xml?

2008-07-02 Thread Jonas Wagner
Thanks Hassan for your question. > Are these data sources known in advance, or can the configuration > tool user come up with an arbitrary new one at any time? These data sources will be known at the time of deployment, but as they are specific for each customer, I cannot write one META-INF/conte

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-02 Thread Hassan Schroeder
On Wed, Jul 2, 2008 at 8:53 AM, Jonas Wagner <[EMAIL PROTECTED]> wrote: > I'm trying to write a configuration frontend for a webapp. This > application uses several data sources, and it should be possible to > change the username/password/database/... using the configuration > frontend. > > My ide

Configuring DataSources using jsp: reload context.xml?

2008-07-02 Thread Jonas Wagner
Hello, I'm trying to write a configuration frontend for a webapp. This application uses several data sources, and it should be possible to change the username/password/database/... using the configuration frontend. My idea was that the configuration servlet would modify the META-INF/context.xml f

Re: RES: RES: Application context configuration & datasources

2008-03-27 Thread Charl Gerber
sers List > Assunto: Re: RES: Application context configuration > & datasources > > > You are not supposed to edit server.xml in order > to make your pooled > > connections work. > > >> You do when its a connect

RES: RES: Application context configuration & datasources

2008-03-27 Thread Milanez, Marcus
-feira, 27 de março de 2008 09:04 Para: Tomcat Users List Assunto: Re: RES: Application context configuration & datasources > You are not supposed to edit server.xml in order to make your pooled > connections work. >> You do when its a connection pool shared by more than one applic

Re: RES: Application context configuration & datasources

2008-03-27 Thread Charl Gerber
ons-3.2.jar, commons-dbutils-1.1.jar > and commons-pool-1.3.jar inside that dir too, > otherwise your pools won't work. The versions > mentioned in the files are the latest ones, but I > guess you can use the ones you have. > > If it still doesn't work, tell us... >

RES: Application context configuration & datasources

2008-03-27 Thread Milanez, Marcus
EMAIL PROTECTED] Enviada em: quinta-feira, 27 de março de 2008 04:04 Para: Tomcat Users List Assunto: Re: Application context configuration & datasources server.xml: As I said, if I move the META-INF/context.xml contents into my server.xml, then it works fine, but then I can

Re: Application context configuration & datasources

2008-03-27 Thread Charl Gerber
9) > > at > > > org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) > > ... 45 more > > > > If I copy the contents of the application's > > META-INF/context.xml into the server.xml, then the > > application and dataso

Re: Application context configuration & datasources

2008-03-26 Thread Sameer Acharya
rg.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69) > at > org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) > ... 45 more > > If I copy the contents of the application's > META-INF/context.xml in

Application context configuration & datasources

2008-03-26 Thread Charl Gerber
.xml, then the application and datasources loads fine, no problems. It looks something like: (I then have a context.xml and the same part in the server.xml, but it doesn't seem to do harm) But then I cannot use the ant manager tasks to redeploy the application: C:\projects\myapp\buil

Re: Best Practices for JNDI DataSources/Authentication

2008-03-05 Thread Felix Schumacher
On Thu, March 6, 2008 1:40 am, pbdavey wrote: > > I've been looking through a lot of tutorials regarding using JNDI for > datasources and ldap authentication and was wondering if someone could > explain things. > > Most of what I've come across has authentication co

Best Practices for JNDI DataSources/Authentication

2008-03-05 Thread pbdavey
I've been looking through a lot of tutorials regarding using JNDI for datasources and ldap authentication and was wondering if someone could explain things. Most of what I've come across has authentication completely seperate from the datasource, or, in the case of JDBCRealms

RE: Tomcat 6 classloading - problem loading DB drivers for JNDI-listed Datasources with cross-context portlet invocations

2007-09-16 Thread Caldarale, Charles R
> From: Paul ANDERSON [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat 6 classloading - problem loading DB > drivers for JNDI-listed Datasources with cross-context > portlet invocations > > Excuse me, $CATALINA_HOME/lib is what I meant. Do you have the same jars in multiple

RE: Tomcat 6 classloading - problem loading DB drivers for JNDI-listed Datasources with cross-context portlet invocations

2007-09-16 Thread Paul ANDERSON
Excuse me, $CATALINA_HOME/lib is what I meant. (Thanks for your interest, Chuck.) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 6 classloading - problem loading DB drivers for JNDI-listed Datasources with cross-context portlet invocations

2007-09-16 Thread Caldarale, Charles R
> From: Paul ANDERSON [mailto:[EMAIL PROTECTED] > Subject: Tomcat 6 classloading - problem loading DB drivers > for JNDI-listed Datasources with cross-context portlet invocations > > The driver JAR was in /lib. What do you mean by /lib? If you mean, $CATALINA_HOME/server/lib, t

Tomcat 6 classloading - problem loading DB drivers for JNDI-listed Datasources with cross-context portlet invocations

2007-09-16 Thread Paul ANDERSON
When doing cross-context invocations of a portlet in Liferay that references container-managed Datasources by JNDI, I get:- Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The driver JAR was in /lib.

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-16 Thread Lyallex
You left this bit out ... it's not a criticism before anyone gets upset I'd be glad to contribute to the documentation, just gotta figure out how, guess I'll have to RTFM. Rgds Duncan On 7/15/07, Mark Thomas <[EMAIL PROTECTED]> wrote: Lyallex wrote: > One thing that constantly frustrates me i

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-15 Thread Mark Thomas
Lyallex wrote: > One thing that constantly frustrates me is the apparent ambiguities in > the documentation Then do something constructive about it. You are part of the Tomcat community and the documentation is as much your responsibility as anyone else here. If you find a problem, report it. Bett

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-15 Thread Ken Bowen
ourse we are always being advised to put our thing in our web apps these days so that's what I'm going to try next. Good Luck Chers Duncan On 7/15/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Ken Bowen [mailto:[EMAIL PROTECTED] > Subject: DataSources and Tomcat (c

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-15 Thread Lyallex
n our web apps these days so that's what I'm going to try next. Good Luck Chers Duncan On 7/15/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Ken Bowen [mailto:[EMAIL PROTECTED] > Subject: DataSources and Tomcat (continue thread: Re: How to > use connection

RE: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-14 Thread Caldarale, Charles R
> From: Ken Bowen [mailto:[EMAIL PROTECTED] > Subject: DataSources and Tomcat (continue thread: Re: How to > use connectionpool with tomcat 1.2.9) > > I also want to get the Tomcat DataSource machinery working. > I'm using Tomcat 5.5.9. > > I've slavishly fo

DataSources and Tomcat (continue thread: Re: How to use connection pool with tomcat 1.2.9)

2007-07-14 Thread Ken Bowen
RE(David Smith): though I'm guessing that this thread is over and nobody will read this follow-up. :( Change to: :) -- at least one follow-up reader. RE(Chris Shultz): |> As I said, i did declare the tomcat dataSource in server.xml and |> WEB-INF/web.xml. | |Don't do that. Since you're

Re: datasources

2007-02-16 Thread Mikolaj Rydzewski
Ernesto Reig wrote: One of the use case of my web app is to allow users to create new datasources. So in my web app I have a form to create the new datasource. One of the fields of the form is a input file type, where the user loads the datasource driver jar. The other fields are used to get

RE: datasources

2007-02-16 Thread Caldarale, Charles R
> From: Ernesto Reig [mailto:[EMAIL PROTECTED] > Subject: datasources > > - Do I need to restart Tomcat in order that new created > datasources be available?? Tomcat's admin app can create datasources on the fly; you might want to take a look at how that's done. - C

datasources

2007-02-16 Thread Ernesto Reig
Hi all. One of the use case of my web app is to allow users to create new datasources. So in my web app I have a form to create the new datasource. One of the fields of the form is a input file type, where the user loads the datasource driver jar. The other fields are used to get the values of

Reposting: Creating context and datasources using Tomcat Manager and Administrator

2006-03-13 Thread foo shyn
Hi, Reposting my question in case i missed out the crowded session(sent it out on friday night and get no response :p).. Thanx Hi guys, Lately i'd been trying to deploy my apps remotely using the Tomcat Manager and Administrator. I found that if : 1) i upload my war file first, then go to the

Re: Creating context and datasources using Tomcat Manager and Administrator

2006-03-11 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Creating context and datasources using Tomcat Manager and Administrator

2006-03-10 Thread foo shyn
Hi guys, Lately i'd been trying to deploy my apps remotely using the Tomcat Manager and Administrator. I found that if : 1) i upload my war file first, then go to the Administrator to create my datasource, the Administrator would give me an error page when i select my context. The error thrown is

Context-specific datasources

2006-03-09 Thread Phil Wilson
Hello, Much like the recent "Testing DataSourceRealms" thread[1], I'm trying to set up a web application with the authentication specified in the application's section, using a MemoryUserDatabase. In my web.xml I have: UserDatabase org.apache.catalina.UserDatabase

RE: Using J2EE DataSources with Tomcat 5.5

2006-03-08 Thread James Reynolds
m: Stephen Schaub [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 12:13 PM To: users@tomcat.apache.org Subject: Using J2EE DataSources with Tomcat 5.5 When developing web applications that use J2EE DataSources to provide database connection pooling, I dislike having to jump through all the

Using J2EE DataSources with Tomcat 5.5

2006-03-08 Thread Stephen Schaub
When developing web applications that use J2EE DataSources to provide database connection pooling, I dislike having to jump through all the hoops that are typically necessary (i.e., set up the DataSource in the development web application server). Recently, I discovered that it's possible

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-07 Thread Tom Bednarz
Hello Petr, Well you did give me some hints that helped me a lot! I solved the problem late last night. It was one of the very nasty bitches It was as I assumed at the very beginning: If I debug my environment inside Eclipse it is not the same as running a deployed version in a Tomcat d

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-06 Thread Hadraba Petr
Hello Thomas, thank you for your informations! I will order ASA developer edition and learn new database;-) Now, I'm looking for a database which provides internationalization features; specially ORDER BY [(var)char | text] column and I have no success: ASE and localization -- it's a workaround. P

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-06 Thread Tom Bednarz
Hi Petr, Thanks for your feedback. It still does not work for me, no matter where I put the damn JAR file. So I will use my own pooling class directly in my webapp based on Apaches DBCP which is part of Jakarta Commons. It is probably faster then fiddeling with this bloody driver configuaratio

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-05 Thread Hadraba Petr
Hi, I studied something about Sybase ASA and here are my pieces of knowledge: - ASA is, unlike ASE, ODBC based insted of TDS - the JDBC drivers are generic JDBC-to-ODBC bridge and can be used to access _any_ database throw ODBC - the JDBC drivers are not freely downloadable (I didn't find any) -

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-03 Thread Tom Bednarz
Hi, Thanks for your help. It brought me one step further but did not yet solve the problem! It looks like the context.xml is mandatory. I moved the configuration from the server.xml to the context.xml. The error message changed as follows: org.apache.jasper.JasperException: Unable to get con

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-03 Thread Hadraba Petr
Hi, I'm not using Sybase under Tomcat; I have PostgreSQL... Eclipse? My configuration is, Eclipse does not modify Tomcat configuration (this is the default) In your WebContent under META-INF create context.xml with the definition. The element does not require any attributes: And finaly,

JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-03 Thread Tom Bednarz
I try to configure a JDBC DataSource for my Adaptive Server Anywhere 9 database. Unfortunately without any success so far! I use Tomcat 5.5.18. The error is well known and looks as follows: org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp

Different DataSources for different 's

2005-12-09 Thread Arnaud Vandyck
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have strange behaviour with DataSources and Realms. I define a global datasource jdbc/A, a global Realm (R-A) that looks at users with datasource jdbc/A The host H-A is configured and trusted webapps look for passwords in R-A. I also can

DataSources created as resources in context.xml

2005-11-24 Thread Nigel Garner
I have a query about how tomcat stores DataSources that are created as part of the Resource element in the context.xml file. If the file is stored within the webapp's META-INF directory (as recommended), will any defined DataSources be made available to other webapp modules by binding them t

  1   2   >