vikas mallik

+ Follow
since Apr 28, 2008
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vikas mallik


I am trying to configure a type4 oracle datasource on WAS V6.0.X.

The oracle setup is a 9i RAC with two nodes and connectivity has to be achieved through a LDAP server (Oracle Internet Directory).

Type2 Datasource on WAS
URL - jdbc:oracle:oci:@<service_name>
through LDAP using ldap.ora in Oracle thick client
DB username and password configured thru JAAS
Result - Works fine

Type4 Datasource on WAS
URL - jdbc:oracle:thin:@ldap://<ldap_host>:389/<service_name>,cn=OracleContext,dc=<directorycontext from ldap.ora>
DB username and password configured thru JAAS
Result - null nested runtime exception is java.util.NoSuchElementException

Type2 standalone client
Works fine as I am able to connect

Type4 standalone client
Through the same LDAP server and got the following exception -

at java.util.Vector.firstElement(
at<init>(Unknown Source)
at Source)
at oracle.jdbc.driver.T4CConnection.connect(
at oracle.jdbc.driver.T4CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.<init>(
at oracle.jdbc.driver.T4CConnection.<init>(
at oracle.jdbc.driver.T4CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at TestConn.main(

Looking at the above stack trace, I believe that connection to LDAP server is failing. Is it because I have to use different login credentials to lookup LDAP (OID)? (currently I am using the username and password of the db instance)
Or is there something else that I am missing?

Help on this issue is highly appreciated.

14 years ago
Thanks Christophe. That tilts the balance towards EJB3 in action.


I am thinking of taking up SCBCD 5.0 (CX-310-091). Please suggest me the books I have to read and any other material I have to go through before taking up the exam.

I am torn between OReilly's EJB 3.0 and Manning's EJB3 in action. Let me know the best between the two.

Thanks guys for the immediate response...

I would like to know how much of an effort, in terms of time, is required to prepare for SCBCD 5.0?

I know this is a very generic question and an approximation will do.

- Vikas
SCJP 1.4
I have been using EJB 2.1 from a long time and wanted to take up a certification on the same. But the exam now has been phased out, I suppose, as I could not get a link for the same in Sun's site.

If SCBCD 5.0 is the only option now, why isnt there a HFEJB book for the same? Or is it available?

HFEJB for EJB 2.x, makes learning fun and I would like to know if there is something from Bert & Kathy CO. for SCBCD 5.0