vikas mallik

Greenhorn
+ Follow
since Apr 28, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vikas mallik

Hi,

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 -
javax.management.RuntimeMBeanException: 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 -

java.util.NoSuchElementException
at java.util.Vector.firstElement(Vector.java:446)
at oracle.net.resolver.AddrResolution.<init>(Unknown Source)
at oracle.net.ns.NSProtocol.connect(Unknown Source)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:856)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:268)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TestConn.main(TestConn.java:19)

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.

Regards,
Vikas
15 years ago
Thanks Christophe. That tilts the balance towards EJB3 in action.

Cheers.
Hi,

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.

Regards,
Vikas
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