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/

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 <http://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#comments_section>, there is an unusually opinionated section, which discusses the Java service provider

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

2021-08-13 Thread Andrew Tanton
In the Tomcat "JNDI Datasource How-To" documentation page <http://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#comments_section>, there is an unusually opinionated section, which discusses the Java service provider (driver manager) mechanism: "*Howeve

[SECURITY] CVE-2021-30640 Apache Tomcat JNDI realm authentication weakness

2021-07-12 Thread Mark Thomas
CVE-2021-30640 JNDI Realm Authentication Weakness Severity: Low Vendor: The Apache Software Foundation Versions Affected: Apache Tomcat 10.0.0-M1 to 10.0.5 Apache Tomcat 9.0.0.M1 to 9.0.45 Apache Tomcat 8.5.0 to 8.5.65 Apache Tomcat 7.0.0 to 7.0.108 Description: Queries made by the JNDI Realm

Re: NPE while lookup resource in tomcat JNDI

2020-11-10 Thread Arnaud Mergey
your code with some line-numbers so we can match #1 and #2 above. Thanks, -chris On 11/9/20 10:10, Arnaud Mergey wrote: > Hello, > I have a tomcat app that is trying to list available JDBC Datasources it can > find in tomcat JNDI Context > It fails with NPE when there is a Resour

Re: NPE while lookup resource in tomcat JNDI

2020-11-09 Thread Christopher Schultz
and #2 above. Thanks, -chris On 11/9/20 10:10, Arnaud Mergey wrote: Hello, I have a tomcat app that is trying to list available JDBC Datasources it can find in tomcat JNDI Context It fails with NPE when there is a ResourceLink in my app context. It seems to be a bug

NPE while lookup resource in tomcat JNDI

2020-11-09 Thread Arnaud Mergey
Hello, I have a tomcat app that is trying to list available JDBC Datasources it can find in tomcat JNDI Context It fails with NPE when there is a ResourceLink in my app context. It seems to be a bug in org.apache.naming.NamingContextBindingsEnumeration to me, but I may be wrong. A minimal test

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

Tomcat JNDI Authentication - No Login

2018-10-09 Thread Lee Broom
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 accessible and without challenging an operator. After a frustrating and fruitless week I now

Fwd: Accessing tomcat JNDI tree remotely issue

2018-03-09 Thread Deepam Singla
Dear Team, While trying to port our application from WAS 8.5.5 to tomcat 8.0.33, we have hit a roadblock and we are unable to proceed. Hence requesting for your inputs. Following is the scenario: we have DataSourceManager class which looks for datasource in the context as

tomcat jndi ldap userSearchAsUser not used

2016-02-11 Thread Sascha Monteiro
Hi, When I configure this, it does not bind with the user (checked with wireshark on the ad server) (only when I use userPattern, but I cannot seem to use that as it needs a user for both bind and search) I don't want to have a username/password of a delegated user) Realm

Switching Tomcat JNDI Implementation

2015-05-21 Thread Jeff Costello
Is it possible to replace Tomcat's JNDI Implementation with a custom implementation? If so, how do I pass the information to Tomcat? Can it be done with a jndi.properties file? Thanks, Jeff Costello

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, GlobalNamingResources then in context.xml define a ContextLink That binds the shared connection pool to each context. Thank you, that worked perfectly. Although I think you meant ResourceLink. -Dave

Tomcat JNDI Datasource

2014-02-06 Thread David Newman
I have defined a JNDI JDBC datasource as a resource in the global context.xml file. I was under the impression that what this does is to create a shared connection pool that is tomcat wide. But in practice what seems to happen is that a new instance of that connection pool is created for each

Re: Tomcat JNDI Datasource

2014-02-06 Thread Filip Hanik
Yes, define the connection pool in server.xml, GlobalNamingResources then in context.xml define a ContextLink That binds the shared connection pool to each context. On Thursday, February 6, 2014, David Newman dnew...@unixmonkeys.com wrote: I have defined a JNDI JDBC datasource as a resource

Tomcat JNDI Server Configuration

2013-12-12 Thread Vic Katte
Hello, 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 it to tomcat and configured it to connect to MQ. This application defines the default initial context

Re: Tomcat JNDI Server Configuration

2013-12-12 Thread Daniel Mikusa
On Dec 12, 2013, at 4:25 AM, Vic Katte vicnka...@gmail.com 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

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

Re: Tomcat JNDI Server Configuration

2013-12-12 Thread Daniel Mikusa
On Dec 12, 2013, at 1:42 PM, Vic Katte vicnka...@gmail.com 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 jndi

2013-04-29 Thread Jakub 1983
I have read http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html 1)I would like to ask about essence of jndi a) jndi as a whole and b) jndi in tomcat In all known to me cases jndi in tomcat and in jboss is

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

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

Tomcat JNDI custom resource factory questions

2012-09-11 Thread Kirill Ilyukhin
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 shared between servlets. Two questions regarding the resource

IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
Hi, i've got a Microsoft IIS 6.0 Webservice. Behind the IIS is an Apache Tomcat 5.5.26 (connected via ISAPI and AJP/1.3) protocoll. In the IIS Integrated Windows Authentication is enabled. On server.xml tomcatauthentication is set to false. Also o've configured a JNDI REALM: Realm

Re: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread André Warnier
Hi Joerg. The following remarks are more a question from me, than an answer to you. I am interested also in a real answer from someone who really knows.. Buchner, Joerg [T0I] (VW Sachsen) wrote: Hi, i've got a Microsoft IIS 6.0 Webservice. Behind the IIS is an Apache Tomcat 5.5.26 (connected

AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
Betreff: Re: IIS, Tomcat, JNDI and ActiveDirectory Hi Joerg. The following remarks are more a question from me, than an answer to you. I am interested also in a real answer from someone who really knows.. Buchner, Joerg [T0I] (VW Sachsen) wrote: Hi, i've got a Microsoft IIS 6.0 Webservice. Behind

Re: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Peter Crowther
2009/9/29 Buchner, Joerg [T0I] (VW Sachsen) joerg.buch...@volkswagen.de: But the problem is an other: The SourceCodes (JSP/Servlets) are secured with NTFS rights on filesystem. (Windows Server 2003 x64) I've tried to secure the whole application with NTFS Rights, but the NTFS ACL does not

AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
-Ursprüngliche Nachricht- Von: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] Im Auftrag von Peter Crowther Gesendet: Dienstag, 29. September 2009 18:28 An: Tomcat Users List Betreff: Re: IIS, Tomcat, JNDI and ActiveDirectory 2009/9/29 Buchner, Joerg [T0I] (VW

Re: AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread André Warnier
Hi Joerg. To clear up a bit, you are talking about 2 distinct aspects : Authentication and Authorization. Authentication = to find out who the user is Authorization = when we know who the user is, determine if he has or not the authorization required to access some resource (in this case,

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 Resource tag with my oracle connection info in

Tomcat JNDI

2008-08-29 Thread felix l
First time posting on a mailing list, hope I am doing this right. 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 Resource tag with my oracle connection info in

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 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 =

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 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 need to be specific. Look in the Tomcat

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 CONFIDENTIAL

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 ;) |

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 TOMCAT/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

RE: Tomcat JNDI datasource

2008-03-31 Thread Tom Henricksen
. 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 another post. The docs

Tomcat JNDI datasource

2008-03-28 Thread Tom Henricksen
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-docs/jndi-datasource-examples-howto. html. I have setup the context.xml Context debug=4

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

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

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.init(StringTokenizer.java:146) at com.ibm.db2.jcc.DB2Driver.acceptsURL(DB2Driver.java:245) at

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

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
| Context debug=4 | 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 attributes. At best, they will be ignored. At worse, they will confuse both you /and/

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 [EMAIL

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | | | Context debug=4 | | 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

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

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

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 Resource ... / element and a ResourceParams/ResourceParams element. The resource as setup below is only correct for version 5.5.x and later. --David Tom

Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
Hi everyone, I'm trying to simulate tomcat's jndi mechanism, in order to test my DAO objects with junit. Does anybody knows how to do that? It seems to me that I need to bind the name java:/comp/env to a Context object and then bind my jdbc name to this context. Is this the way tomcat put things

RES: Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
[mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 7 de março de 2008 11:43 Para: Milanez, Marcus Cc: Tomcat Users List Assunto: Re: Simultate Tomcat JNDI Marcus-http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howt o.html//assume you have this Oracle Datasource definition in your

RES: Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
:[EMAIL PROTECTED] Enviada em: sexta-feira, 7 de março de 2008 11:50 Para: Tomcat Users List Assunto: RES: Simultate Tomcat JNDI Martin, Thanks for you reply. In fact I need to simulate tomcat's jndi mechanism. My class will be invoked by jUnit and not by tomcat. I'm trying to bind a datasource

write to Tomcat JNDI

2007-01-25 Thread Christian Spatz
Hi, I need to bind objects using JNDI in my servlet running on apache tomcat . Since I'm new to the JNDI topic, I did a lot of reading the last few days and got mixed up a little. The tomcat documentation says that the initialContext is read-only, but then I found the hint to a solution in the

Tomcat JNDI and LDAP TLS ?

2006-01-09 Thread FM
Hello, is it possible to use jndi (ldap) + tls in server.xml ? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]