This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
for some reason I cannot obtain an InitialContext to lookup for resource. I have an EAR file, inside this EAR file, I have a Web module and an EJB module, these two module use (reference to) my common helper classes (packaged in helper JAR file, stored at the EAR-root). the classes in the helper-JAR tried to obtain an InitialContext in order to look up DataSource and EJBBean , but I got this error message below, this error is generated right at the time the InitialContext is created itc = new InitialContext(properties); I have not performed any lookup yet, I still dont know why it says that " Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description " Please help me, my application run OK in WebLogic, but not with WebSphere, I dont know what is wrong? Thanks Xenoux NMSV0906E: Could not create an instance of the class "com.ibm.ws.naming.util.WsnInitCtxFactory". Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description
what are the values in the property files that create the initial context? also try using a hashmap instead of a property file. Secondly, the websphere naming server runs on iiop:900 check these details -sriraj