on 08-20-2005 12:23 PM
Hi,
I am trying to access the SAP database(MaxDb)using JNDI lookup in WebDynpro simple java project.
But, during lookup I am getting the following error
com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name : jdbc/VSLOOKUP , can not resolve object reference [Root exception is java.lang.ClassCastException]
at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:469)
at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:558)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.vitalspring.healthbenefits.dbaccess.DBAccessHelper.main(DBAccessHelper.java:51)
Caused by: java.lang.ClassCastException
at com.sap.engine.services.connector.ResourceObjectFactory.getObjectInstance(ResourceObjectFactory.java:149)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:466)
... 3 more
Can anybody throw some light on it?
Because, it's urgent for my project.
I would appreciate any kind of help in this regard.
Thanks & Regards,
Rambabu Kancharla
Hi Rambabu,
Can you provide your code for JNDI lookup? I guess you have not specified your home class correctly.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rambabu,
Please create JDBC DataSource with name "VSLOOKUP".
1. Open VisualAdministrator.
2. Go to services->JDBC and create a DataSource with the baove name and run the application once again
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.