This article is a legacy article. It applies to previous versions of the Liferay product. While the article is no longer maintained, the information may still be applicable.
When Liferay Portal is running on a Websphere Application Server 6, a NamingException error is thrown.
Example:
0000001b Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow: Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl Context method: bind Context name: ddgdsa36Cell01/clusters/L_RAY_CLUSTER Target name: java_liferay:jdbc/LiferayPool Other data: Object to bind: com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@3a7aa198 Exception stack trace: javax.naming.NamingException: com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getReference() returned null in violation of the JNDI API at com.ibm.ws.naming.util.Helpers.processJavaObjectForBinding(Helpers.java:604) at com.ibm.ws.naming.jndicos.CNContextImpl.doBind(CNContextImpl.java:1911) at com.ibm.ws.naming.jndicos.CNContextImpl.bind(CNContextImpl.java:682) at com.ibm.ws.naming.util.WsnInitCtx.bind(WsnInitCtx.java:205) at com.ibm.ws.naming.util.WsnInitCtx.bind(WsnInitCtx.java:217) at javax.naming.InitialContext.bind(InitialContext.java:400)
Resolution
This is actually an issue with WebSphere.
- Navigate to
WAS_HOME/profiles/<profile-name>/properties - Open the
sas.clients.propsfile - Change the
com.ibm.CORBA.validateBasicAuth=from false to true