Re: Tomcat "JNDI Datasource How-To" documentation & driver managers

2021-08-17 Thread Andrew Tanton
Thank you - very helpful & much appreciated. On Sat, Aug 14, 2021 at 4:24 PM Mark Thomas wrote: > On 14/08/2021 01:51, Andrew Tanton wrote: > > In the Tomcat "JNDI Datasource How-To" documentation page > > < > http://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#comments_s

Re: Tomcat "JNDI Datasource How-To" documentation & driver managers

2021-08-14 Thread Mark Thomas
On 14/08/2021 01:51, Andrew Tanton wrote: In the Tomcat "JNDI Datasource How-To" documentation page , there is an unusually opinionated section, which discusses the Java service provider (driver manager)

Re: Tomcat JNDI Authentication - No Login

2018-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lee, On 10/9/18 08:11, Lee Broom wrote: > Hello My aim is to introduce a domain level > authentication/authorisation security layer when accessing the > http://localhost:8080/sample/ application. I don't want this web > application to be openly acce

Re: Tomcat JNDI Datasource

2014-02-07 Thread David Newman
On 2/6/2014 10:45 PM, Filip Hanik wrote: > Yes, define the connection pool in server.xml, then > in context.xml define a That binds the shared connection pool > to each context. Thank you, that worked perfectly. Although I think you meant . -Dave -

Re: Tomcat JNDI Datasource

2014-02-06 Thread Filip Hanik
Yes, define the connection pool in server.xml, then in context.xml define a That binds the shared connection pool to each context. On Thursday, February 6, 2014, David Newman wrote: > I have defined a JNDI JDBC datasource as a resource in the global > context.xml file. I was under the impre

Re: Tomcat JNDI Server Configuration

2013-12-12 Thread Daniel Mikusa
On Dec 12, 2013, at 1:42 PM, Vic Katte wrote: > Hello Dan, First, please don't top post. Reply inline, like me, or at the bottom. That is the convention followed on this list. > Thanks for responding. Without going too much into the code, I am trying to > understand whether Tomcat does suppo

Re: Tomcat JNDI Server Configuration

2013-12-12 Thread Vic Katte
Hello Dan, Thanks for responding. Without going too much into the code, I am trying to understand whether Tomcat does support the concept of a Naming Server. With JMS, it is possible to create and store administration objects such as ConnectionFactory, Destinations in a Naming Service (such as LDA

Re: Tomcat JNDI Server Configuration

2013-12-12 Thread Daniel Mikusa
On Dec 12, 2013, at 4:25 AM, Vic Katte wrote: > Hello, What version of Tomcat are you using? > > How does one configure tomcat so that a hosted application could connect to > a JMS Message server such as WebSphereMQ? > > I have managed to write a small test application in JMS and deployed i

Re: tomcat jndi

2013-04-29 Thread Jakub 1983
3) and 4) are answered here http://stackoverflow.com/questions/1350816/what-is-the-purpose-of-jndi http://stackoverflow.com/questions/5143499/understanding-jndi http://www.javaworld.com/javaworld/jw-04-2002/jw-0419-jndi.html http://technotes.tostaky.biz/2013/01/what-is-jndi-spi-cci-ldap-and-jca.htm

Re: Tomcat JNDI custom resource factory questions

2012-09-12 Thread Daniel Mikusa
On Sep 12, 2012, at 1:52 AM, Kirill Ilyukhin wrote: > Hi! > > I am using Tomcat 7.0.29 with a custom JNDI resource factory > (http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories). > The factory creates a connection to data server which then can be >

Re: Tomcat JNDI

2008-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix, felix l wrote: > I just need to register JNDI datasource to Tomcat 6 and I followed > http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html. I just > couldn't make it work if I put the tag with my oracle connection > info in conf/s

Re: Tomcat JNDI

2008-08-29 Thread bhooshanpandit
I think you will need to configure realm in your server.xml. Plz refer http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html. -Original Message- From: felix l <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Fri, 29 Aug 2008 11:27 pm Subject: Tomcat JNDI First time

Re: Tomcat: JNDI and Google Webtoolkit

2008-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | Is it valid to use the 5.1 JDBC driver with the 4.1 server? Yeah. The driver and server negotiate the capabilities at connection time. Connector/J is pretty good about that -- it's mix-and-match ;) |> url="jdbc:

RE: Tomcat: JNDI and Google Webtoolkit

2008-06-26 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Tomcat: JNDI and Google Webtoolkit > > Is it valid to use the 5.1 JDBC driver with the 4.1 server? Scratch that question - I see from the Connector/J doc that 5.1.6 does work with a 4.1 server. - Chuck THIS COMMUNICATION MAY CONTAIN

RE: Tomcat: JNDI and Google Webtoolkit

2008-06-26 Thread Caldarale, Charles R
> From: nabruphonic [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat: JNDI and Google Webtoolkit > > I moved the driver to the common-directory. Unfortunately it > still does not work. I doubt that whatever error message you're getting says "does not work"; you nee

Re: Tomcat: JNDI and Google Webtoolkit

2008-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nabruphonic, nabruphonic wrote: | I moved the driver to the common-directory. Unfortunately it still does not | work. In my Java-Code, do I have to write only the following code to connect | with the connection pool? | Code: | | InitialContext ctx =

RE: Tomcat: JNDI and Google Webtoolkit

2008-06-26 Thread nabruphonic
Hi, I moved the driver to the common-directory. Unfortunately it still does not work. In my Java-Code, do I have to write only the following code to connect with the connection pool? Code: InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/eco_t

RE: Tomcat: JNDI and Google Webtoolkit

2008-06-25 Thread Caldarale, Charles R
> From: nabruphonic [mailto:[EMAIL PROTECTED] > Subject: Tomcat: JNDI and Google Webtoolkit > > - copy mysql-connector-java-5.1.6-bin.jar into /server/lib What happens if you put the mysql jar into common/lib as the documentation says to? http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-ex

RE: Tomcat JNDI datasource

2008-03-31 Thread Tom Henricksen
on Java 5 very soon. We are stuck in the past like a Simon and Simon re-run... Tom -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 10:19 AM To: Tomcat Users List Subject: Re: Tomcat JNDI datasource Just had a brainstorm while responding on

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Just had a brainstorm while responding on another post. The docs for 5.0.30 should describe defining a resource in terms of a element and a element. The resource as setup below is only correct for version 5.5.x and later. --David Tom Henricksen wrote: I have an application in Tomca

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
It does have merit to keep associated jars together except in those rare occasions where the jar has to be in the classloader heirarchy at a place visible to both tomcat's internal code and the webapp's. In that case it has to be in common/lib and not in any descendant classloader. To do what

Re: Tomcat JNDI datasource

2008-03-28 Thread Howard Watson
If the app still had errors with the .jar file in the webapps own \WEB-INF\lib then something else is broken (called a test). Since his webapp docBase is outside the Tomcat directory structure there is merit with having associated .jar files in that docBase. And in instances where there are mult

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | |> | | docBase="C:/Java/eclipse-europa/europa-workspace/bop-med/web" |> | path="/bop-med" reloadable="true" |> | workDir="work\Catalina\localhost\bop-med"> |> |> Bad boy: take out the docBase and path attribut

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Bad suggestion. It should exist in one and only one place. That place is common/lib for tc 5.0, 5.5 so it's visible to both tomcat's internal code and the webapp. --David Howard Watson wrote: Hi. Did you try putting your .jar files in \WEB-INF\lib of you webapp? "Tom Henricksen" <[EMA

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
| Bad boy: take out the docBase and path attributes. At best, they will be ignored. At worse, they will confuse both you /and/ Tomcat. Feel free to leave workDir in there, though it is not required. Unless you /need/ to specify it, you should take that out and let Tomcat do what it

Re: Tomcat JNDI datasource

2008-03-28 Thread Howard Watson
Hi. Did you try putting your .jar files in \WEB-INF\lib of you webapp? >>> "Tom Henricksen" <[EMAIL PROTECTED]> 3/28/2008 8:08 AM >>> I have an application in Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomcat-5.0.30/webapps/tomcat-do

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Your root cause seems to indicate it's having some trouble possibly with the url: Caused by: java.lang.NullPointerException at java.util.StringTokenizer.(StringTokenizer.java:146) at com.ibm.db2.jcc.DB2Driver.acceptsURL(DB2Driver.java:245) at java.sql.DriverManag

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Tom Henricksen wrote: | org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver | of class '' for connect URL 'null' Aah, yes. The old "connect URL 'null'" problem. This is always a problem with some nitpicky detail in your conf

Re: Tomcat JNDI datasource

2008-03-28 Thread karthikn
Hi try this InitialContext ic = new InitialContext(); DataSource ODS = (javax.sql.DataSource) ic.lookup("java:comp/env/jdbc/medical"); Connection conn = ODS.getConnection(); It works for me in Oracle 10G on TC with regards Karthik I have an application in Tomcat 5.0.30 that we are t