Questions tagged [jndi]
The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name.
3,071
questions
0
votes
1
answer
31
views
JBoss 7.4 ActiveMQ Artemis Queue Can't binding to a specific JNDI name
I'm working on a JBoss migration from EAP 6.4 to 7.4.
One of the issues found is the replacement of HornetQ with ActiveMQ Artemis version 2.16.0.redhat-00022. My issue in specific is the JNDI binding ...
0
votes
0
answers
13
views
Module path problem when looking for a remote EJB in JNDI
I have several web applications packaged in war files, running on a TomEE 9.1 server, with JDK17.
The war files are built with Maven.
One of these applications (named Historisation) has an interface ...
0
votes
0
answers
28
views
How to create jndi datasource in spring boot application
How to create jndi datasource with the name "jdbc/dblogger" in the springboot application and access inside the custom jar using the code
import javax.naming.Context;
import javax.naming....
0
votes
0
answers
25
views
WFLYJCA0041: Failed to load module for driver [com.oracle]
I am using jdk 8 and the jboss 7.4.0 trying to connect oracle database
through jndi in jboss. but am not able to connect and showing the
below error. can someone help me on this. i have tried with ...
0
votes
0
answers
50
views
Connecting to LDAPS from Java in multitenancy
I'm looking for a way to connect to an LDAP Server over SSL from Java in a scenario where you can have multiple users, each one with its own truststore (Basically each user is an application deployed ...
0
votes
0
answers
35
views
Error invoking methods on EJB in WebLogic 12c: AOP configuration issue
I'm encountering an error when invoking a method on an EJB named "IndexingFacade" in a WebLogic 12c environment. During remote debugging, I can confirm that the correct EJB is being loaded. ...
0
votes
1
answer
86
views
Unable to access Wildfly remoting service for JNDI after switching to HTTPS
I need help understanding what I am missing here. I have an application running on Wildfly 26.1.3. I have a java application that uses JNDI to get access to java objects running on the server. While ...
0
votes
0
answers
13
views
JNDI Configuration in embedded Jetty 11
How to configure JNDI in embedded jetty 11 version
HTTP ERROR 503 Service Unavailable
// 1.We are creating the service
Server server = new Server(8080);
// 2.We are enabling Jetty-plus ...
0
votes
0
answers
22
views
Append URL parameter to server.xml datasource
Ive been provided a mysql datasource to work with defined in my tomcat server.xml file, and I do not have the power to edit the datasource directly. However, I've run into an exception on zeroed ...
0
votes
0
answers
22
views
Trouble Getting Started with Spring Session
I'm working on creating a prototype web app in Java on a JBoss server. I'm using Spring, and right now I'm trying to get an understanding of session management but I'm having difficulty getting even ...
1
vote
1
answer
94
views
How to prevent Apache Tomcat JNDI Realm configured for AD authentication redirecting to cloud-based controllers
I am using a vendor-provided configuration of Apache Tomcat that utilizes JNDI Realms to connect to Active Directory to perform user authentication. Part of the configuration includes specifying the ...
0
votes
0
answers
11
views
Is there a way to return databases to pool, after testwhileidle fails when using Tomcat connection pool?
I'm currently working with tomcat connection pool DataSource and its valiodation options. I have several databases which i want to validate with the testWhileIdle property and a custom validator. ...
0
votes
0
answers
46
views
Wildfly 27 - Multiple Beans implementing same Interface create conflict - looking for workaround
I'm sure I'm missunderstanding something, but here goes.
I have an app with a variety of stateless beans which each implement a remote and a local interface.
The interfaces are annotated with @Remote &...
0
votes
0
answers
57
views
JBoss 7.4.4: Deploy applications after queues creation
I'm trying to update some applications of our company from a server with JBoss 6.3.3 to a server running JBoss 7.4.4.
Everything looks fine. The only problem is that my application is trying to use ...
0
votes
0
answers
50
views
migrating to spring boot 2.7.13 where to set web-inf persistence-unit-ref as we are Obtaining an EntityManagerFactory from JNDI
Thanks in advance, migrating from spring 4 to spring boot 2.7.13 getting below exception, i am not sure how to move persistence-unit-ref from web.xml to ServletInitializer onLoad, thinking that could ...
0
votes
0
answers
7
views
Do we need individual JNDI for each of the 2 VMs that are connecting to single database
I am new to the current project that I am working on.
We have a Java web-app running on weblogic where we have 2 VMs, one active and the other passive, each in different AZs.
Both the VMs connect to ...
0
votes
0
answers
115
views
Access to LDAP using a keytab in Java
I want to access an LDAP directory in Java using a keytab. However, my keytab appears as null.
Password access works with this code after the logincontext has been created (I get my tickets in ...
0
votes
0
answers
44
views
JMS Producer for testing purposes written in Java - error in JNDI?
I've never used Java before, and I just need a basic JMS producer for a WebLogic server. I'm using JDK 1.8 and the wlfullclient.jar as library that developers sent to me as a reference. I usually ...
0
votes
1
answer
158
views
JNDI lookup issue while connecting to MQ from WebSphere Liberty
We have a java web application which connects to queues(IBM MQ). It works fine in IBM WAS 8.5 where we have configured queue connection factories and queues in the WAS 8.5 console. The application ...
0
votes
0
answers
61
views
java: package com.unboundid.ldap.listener does not exist
I get the error message in the title when I run this program. Can anyone help to solve this problem? There is a library called com.unboundid.ldap.listener and I don't know why I get this error.
...
-1
votes
1
answer
200
views
Exception Cannot load JDBC driver class 'com.mysql.cj.jdbc.Driver.class'
I'm trying to connect Context.xml file to my Demo.java(Servlet) on Eclipse.
Cannot load JDBC driver class 'com.mysql.cj.jdbc.Driver'.
Please let me know where I'm wrong.
Please help.
Demo.java(servlet)...
0
votes
0
answers
14
views
how to use jndi in shiro?
this is springboot with jndi
@Bean
public ServletWebServerFactory servletContainer() {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() {
@Override
...
0
votes
0
answers
36
views
Unable to create JNDI API Context while using security policy
My current code works without setting security policy. However, when I add the line:
System.setSecurityManager(new SecurityManager());
I get the following error for my JMS application:
javax.naming....
0
votes
0
answers
17
views
Spring JNDI lookup issue
I'm getting the following in my server logs:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appConfig': Unsatisfied dependency expressed ...
0
votes
0
answers
17
views
NamingException in Glassfish7
I have four JNDI string values to lookup for my application. I've added them to Glassfish under Resources -> JNDI -> Custom Resources via asadmin:
create-custom-resource --restype java.lang....
0
votes
0
answers
29
views
java.lang.IllegalArgumentException: [javax.mail.Session] is not an allowed property value type
I'm getting this message when I start up my spring webapp in Glassfish 7.0.3. All the googling I find tells me to delete mail.jar from WEB-INF/lib but it isn't in there. I find the following jars ...
0
votes
1
answer
119
views
How to configure a Liberty application server to connect to TIBCO EMS using JNDI lookup?
I am trying to configure JNDI for Tibco EMS in Liberty Application Server but I am having trouble finding the appropriate resource adapter for Tibco EMS. From my understanding, IBM MQ provides a ...
0
votes
0
answers
240
views
Spring Boot Jetty 3.0.5 turn off JNDI
In my gradle base project I'm trying upgrade spring (spring-boot-starter-jetty) dependency from 2.7.6 to 3.0.5
And looks everything start up and work fine. However during start up I noticed logs from ...
0
votes
0
answers
112
views
Log4j2 JDBC Appender with JNDI datasource on IBM Web Sphere giving error no connection available
I am trying to use Log4J2 JDBC appender to insert log records to Oracle database. My spring boot application EAR is deployed to IBM Web Sphere. I am using JNDI data resource defined in Web Sphere. My ...
0
votes
0
answers
49
views
Wildfly 10 remote JNDI Resource Adapter export
By some constraints I have to implement Wildfly in version 10 with Jackrabbit JCA, our client software must connect to the repo.
It is said in the documentation of wildfly 10 about the resource ...
0
votes
0
answers
172
views
JNDI exception java.lang.NoClassDefFoundError: javax/resource/Referenceable & java.io.NotSerializableException (Jackrabbit JCA 2.21.14 on Wildfly 24)
I have a jackrabbit JCA repository deployed on wildfly 24 (I have to do without elytron because client still in java 7).
I have a series of exeptions during the connection :
Exception in thread "...
0
votes
0
answers
23
views
Switch Closed Source Bean to use JNDI
I have a Spring web application which has a Spring Bean which is a reference to a closed source third party library. This closed source bean takes parameters for JDBC Server Name, URL, username, and ...
0
votes
2
answers
806
views
Spring Boot application use JNDI datasource from JBoss Standalone.xml
I am trying to get my Spring Boot application to work on our JBoss 7.4 server. One of our requirements is to keep the datasource information defined in the JBoss standalone.xml file
In standalone.xml, ...
0
votes
2
answers
128
views
Why does Jmeter's JMS Publisher generate NameNotFoundException for ConnectionFactory?
I'm trying to publish a message to an IBM MQ queue using Jmeter's JMS Publisher, but when i run the test, the JMS Publisher fails and it returns the following error.
IBM MQ 9.3.2.0
...
1
vote
1
answer
344
views
Using encrypted password in database connection java ( jdbc / jndi )
I am using java 1.8, tomcat 8.5 and mysql 8
My aim to replace plain username and password with encrypted username and password for database connection.
The following is the database connection string:
...
1
vote
0
answers
97
views
Define JNDI for EntityManager Wildfly 26.0.0.Final
Define JNDI for EntityManager Wildfly 26.0.0.Final
I tried to update a web app from jboss 5.1.0.GA to Wildfly 26.0.0.Final.
I use:
jboss-seam 2.2.1.CR2
jdk 8u202
The last error was:
ERROR [org.jboss....
0
votes
0
answers
73
views
LDAP Query to identify what are all the changes made like adding or deleting of objects in active directory after a certain time
Is there any ldap query that retrives the added and deleted user objects after a specific time interval in active directory. How to convert that ldap query into java ldap jndi program?
I need the ...
0
votes
0
answers
31
views
How to handle exceptions with @Resource (javax.annotation.resource)
Can I capture exceptions from resources looked up via @Resource? In the example below, a resource is being looked up via JNDI. There may not be a JNDI when running the app locally so I want to add ...
0
votes
0
answers
252
views
Frustrated with configuring Tomcat v8 jdbc pool for Oracle 19c
We have an older application on Linux Tomcat v8, connecting to Oracle 19c database using Oracle 19c jdbc client library ojdbc8.jar and having trouble getting the right datasource settings in context....
-1
votes
1
answer
76
views
how to pass JMSDestination for ActiveMQ in the JMS request headers through JMS point to point sampler using JMeter?
We are using JMS point to point sampler for sending messages to different artemis queues in JMeter, while sending the request we need to pass the same queue as used in JNDI properties for ...
0
votes
0
answers
85
views
TVP parameter in wildfly server with Jndi datasource, fail to cast or unwrap statements
I have a stored procedure in my SQL Server that take an argument of TVP type. After my finding I need to use SQLServerPreparedStatement to pass TVP in SP.
Application Tech Stack
Spring Boot
Java 11
...
1
vote
1
answer
720
views
How to set JNDI factory and provider URL in SpringBoot?
I have a standalone Spring Boot based application that works as a JMS client. The provider is on another machine and exposes a JNDI context where all the JMS objects can be found.
In order for Spring ...
0
votes
0
answers
39
views
How to setup WebSphere JNDI Lookup without Datasource Credentials in Java
I am trying to use JNDI lookup to access a Datasource defined in WebSphere 9. The datasource is being accessed while the EAR file is being generated using maven. Initially it was using Basic ...
0
votes
0
answers
552
views
Configuring access to sqlite database from a springboot docker container
I have a spring boot application that uses sqlite database stored in a computer. I try to setup:
Hikari for managing connection pools
JNDI to manage datasource
SQL lite database available from a ...
-3
votes
1
answer
136
views
WLS REST API to GET JNDI tree
I want to pull the JNDI configuration from WebLogic server, that has been assigned to a particular application deployed on server,
Does anyone know what WebLogic API I should curl to GET JNDI keys:...
0
votes
0
answers
33
views
HikariCP 5.0.1 with MySQL 8.0.27 and Connector-J-8.0.31 closing connection problem [duplicate]
I'm developing a Java-based WebApp which runs on top of JDK-17 and Tomcat 10.0.5 connected to a MySQL 8.0.27 database with mysql-connector-j-8.0.31. There is not problem opening and closing "...
0
votes
1
answer
256
views
Implementing JNDI with Springboot and JPA
I try to configure JNDI in Tomcat. I tried it using 2 springboot applications.
The first application is using springboot starter jdbc
The second is using springboot starter jpa
On both applications ...
1
vote
1
answer
725
views
What would be the Alternative for SimpleNamingContextBuilder, since it is depricated?
I have a Naming Builder class which registers the objects in the JNDI directory from a map. it is recommended by Spring to replace its own deprecated JNDI Mock implementation. Deprecated as of Spring ...
0
votes
1
answer
468
views
JNDI Connection In Pentaho
I have added below codes in jdbc.properties present in Pentaho Spoon tool
test_conn/type=javax.sql.DataSource
test_conn/driver=org.postgresql.Driver
test_conn/url=jdbc:postgres://dummyurl.com:5432/...
0
votes
1
answer
180
views
Failing to find groups by member in Active Directory with java ldap
My ldap queries from Java aren't returning any group objects when my filter is about a member contained in the groups. These queries work using other tools, like ldp or the Active Directory Users and ...