NamingException Error on WebSphere 6.x

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.

例:

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)

解決

This is actually an issue with WebSphere.

  1. Navigate to WAS_HOME/profiles/<profile-name>/properties
  2. Open the sas.clients.props file
  3. Change the com.ibm.CORBA.validateBasicAuth= from false to true
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています