jndi Questions

4

Solved

I'm using java ldap to access active directory, more specifically spring ldap. a group search by objectGUID yields no results when the filter is encoded as specified in rfc2254. this is the guid in...

8

Solved

import org.apache.catalina.Context; import org.apache.catalina.deploy.ContextResource; import org.apache.catalina.startup.Tomcat; import org.springframework.boot.autoconfigure.EnableAutoConfigurat...
Rabbit asked 24/7, 2014 at 18:57

3

I'm using spring-ldap-core-2.3.1.RELEASE.jar over JDK 1.8 & Tomcat 8.0 to access AD information through LdapTemplate. The attributes such as title,department & company are not being returne...
Interpretative asked 25/7, 2017 at 6:31

12

Solved

Why does it say null URL and gives a empty ' ' class in the exception when I have provided the database URL? I am trying to connect to a derby database via a servlet while using Tomcat. When the se...
Gillette asked 17/7, 2012 at 5:54

3

I have EJBs in EJB 3.1 which I am trying to deploy in JBoss EAP 6, but when I start the server. It appends version no in JNDI names as shown below. 18:27:57,068 INFO [org.jboss.as.ejb3.deployment...
Dyanna asked 23/3, 2016 at 10:36

13

I am writing a client for my EJB and when trying to execute it, I get the following exception : javax.naming.NoInitialContextException: Need to specify class name in environment or system prope...
Leucine asked 6/10, 2009 at 12:50

10

What is JNDI? What is its basic use? When is it used?
Popele asked 6/12, 2010 at 10:55

4

Solved

Context context = new InitialContext(); dataSource = (DataSource) context.lookup("java:comp/env/jdbc/multiDS"); connection = dataSource.getConnection(); Please help me to mock the above code. Hi...
Marela asked 13/6, 2013 at 9:3

7

Solved

I'm using a JNDI for creating connection pool. It works great in a web application. I believe the InitialContext is provided by the tomcat server. Context initContext = new InitialContext(); Contex...
Varien asked 3/12, 2013 at 19:3

0

After removing JndiLookupClass from the classpath under $HIVE_HOME/lib/log4j-core-2.6.2.jar we are getting multiple warnings when we open hive cli and also while running the queries. PFA error line...
Spotted asked 21/12, 2021 at 9:3

3

I'm using JNDI to make LDAP connections. Example: Hashtable env = new Hashtable(); env.put(Context.PROVIDER_URL, LDAPS_URL); env.put(Context.SECURITY_AUTHENTICATION, "EXTERNAL"); env.put("java.nam...
Selfregard asked 21/6, 2011 at 11:20

3

Solved

We are writing an application that shall connect to different LDAP servers. For each server we may only accept a certain certificate. The hostname in that certificate shall not matter. This is easy...
Profiteer asked 22/2, 2012 at 12:35

2

I'm new to IntelliJ IDEA and I'm trying to set up JNDI resource in Tomcat but I'm using intelliJ IDEA. I have done this with Eclipse many times, but as you know there is a separate folder Servers i...
Mauser asked 6/12, 2014 at 15:45

3

Solved

when I uss Java-base to config my JNDI. Spring 4.2.5. But If I use JndiObjectFactoryBean to config.when I want to get the datasource,the object will be null. @Bean public DataSource dataSource()...
Abney asked 12/4, 2016 at 13:53

3

Solved

what is meant by java:comp/env ? What does the look up like : Context envContext = (Context)initContext.lookup("java:comp/env"); do ? I understand that a look-up like : (DataSource)env...
Antimicrobial asked 24/7, 2012 at 13:24

2

Solved

Referring to this SO answer, I'd like to setup the equivalent of this web.xml configuration in a JSF / JoinFaces / SpringBoot application (that doesn't have web.xml). <env-entry> <env-ent...
Decagon asked 18/12, 2020 at 15:40

10

when trying to execute my jar file I get an exception: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNo...
Hesper asked 16/4, 2009 at 13:5

5

I am using Glassfish-bundled Eclipse IDE. I wrote a simple EJB application. but it doesn't work. @Stateless @Remote(CalculatorRemote.class) @Local(CalculatorLocal.class) public class Calculator...
Tallu asked 18/4, 2011 at 16:27

3

I'm trying to get all entries on an LDAP server using Spring LDAP (version 2.3.2). Within my code, I make use of PagedResultsDirContextProcessor to paginate through all the result. This works fine ...
Gora asked 1/6, 2018 at 20:17

4

Solved

The question says everything. When I am printing an Attribute it is: cn: WF-008-DAM-PS The code snippet is: private void searchGroup() throws NamingException { NamingEnumeration<SearchResul...
Indore asked 28/8, 2012 at 15:45

6

Solved

I want to manage multiple DataSource using your Application Servers built-in features and access it using JNDI. I am using Spring boot with Spring JPA data. I am able to configure the application....
Benzyl asked 25/9, 2015 at 6:50

5

Solved

I have created a data source name in Weblogic 10.3.6 as jdbc/appsmDS and the same name has been given in application to lookup. However when I am trying to run application, I am getting the follow...
Annunciation asked 8/5, 2013 at 12:14

2

I am trying to migrate my small application from Tomcat to WebSphere. In order to do so, I am rebuilding it from scratch addressing major components separately. I am struggling with data access / J...
Overhang asked 23/9, 2019 at 20:3

3

Solved

I am developing a Java EE 7 application and have a requirement for the application to be deployed onto application servers running either GlassFish 4.0 or WildFly 8.1.0. The issue I've got is Glass...
Rotatory asked 19/10, 2014 at 13:43

2

Solved

We are getting java.sql.SQLException: Connection has already been closed. exception intermittently while performing a transaction. We are using tomcat 7.X and below is the configuration. <Contex...
Overeat asked 11/8, 2015 at 12:31

© 2022 - 2025 — McMap. All rights reserved.