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/
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
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
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
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
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 in
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
-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
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 reach
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 sho
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 className="org.apache.ca
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
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
-
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
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 con
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
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
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
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 u
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
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 u
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
>
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 usa
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, som
dvice
-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
2009/9/29 Buchner, Joerg [T0I] (VW Sachsen) :
> 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 work for JSP Files.
T
Users List
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 Micr
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
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:
ldap://:
-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
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 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 tag with my oracle connection
info in conf/server.xml b
-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:
> 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
> 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
-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 =
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
> 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/jnd
Hi!
I've got a problem with my project. Here a short summary about what it is:
I wrote a web application that periodically reads out a database and shows
these information in a visual way (on a google map or a chart...).
The gwt-project and the mysql-database are on two different virtual machine
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
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
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
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
-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
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
|
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
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
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
-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
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
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
ailto:[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 try
--
De: Martin Gainty [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 Datasourc
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
t
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
Hi !
While writing a custom JNDI Resource factory, Tomcat 5 runs into an
exception i can't explain:
javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
at
javax.naming.spi.NamingManager.
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]
Hello,
I configure JNDI to sue ldap, but it is cleat text.
Is it possible to use LDAP over SSL and TLS woth tomcat ?
thanks !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
58 matches
Mail list logo