Technote

(FAQ)
LikeMindsFilter was found, but is missing another required class
Problem
After starting the WebSphere Commerce 6.0 server, the storefront page shows an error in the browser:

"Filter [LikeMindsFilter]: com.ibm.commerce.likeminds.filter.LikeMindsFilter was found, but is missing another required class"


Cause
In the SystemOut.log at the time the request was made you see this exception:

[6/7/07 15:12:29:507 EDT] 00000042 WebApp E SRVE0026E: [Servlet Error]-[Stores Request Servlet]: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code))
at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))

...

Caused by: java.lang.NullPointerException
at com.ibm.commerce.likeminds.objimpl.LikeMindsComponentHelperBase.enabled(LikeMindsComponentHelperBase.java:162)
at com.ibm.commerce.likeminds.filter.LikeMindsFilter.<clinit>(LikeMindsFilter.java:66)

However, during startup of the WebSphere Commerce server, you will find another exception when the datasource gets initialized.

The reason is that the database environment is not properly initialized in the non-root users profile.

Possible exceptions could include these:

DB2:

[6/7/07 15:07:16:530 EDT] 00000025 SystemOut O ConfiguratorBean: obtained datasource java:comp/env/jdbc/WCDataSource
[6/7/07 15:07:16:628 EDT] 00000025 SystemOut O WcsApp.initialize() exception java.lang.UnsatisfiedLinkError: SQLConnect
[6/7/07 15:07:16:830 EDT] 00000025 CommerceSrvr E WcsApp initialize CMN0409E: The following error has occurred during processing: {0}.java.lang.UnsatisfiedLinkError: SQLConnect
at COM.ibm.db2.jdbc.app.DB2Connection.connect(Unknown Source)
at COM.ibm.db2.jdbc.app.DB2Connection.<init>(Unknown Source)
at COM.ibm.db2.jdbc.app.DB2ReusableConnection.<init>(Unknown Source)
at COM.ibm.db2.jdbc.DB2PooledConnection.getConnection(Unknown Source)
at com.ibm.ws.rsadapter.spi.WSRdbDataSource.getConnection(WSRdbDataSource.java:1188)
at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:967)
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1666)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1439)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:2083)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:868)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:617)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:402)

Oracle:

[2/27/07 14:41:20:734 EST] 0000000a SystemErr R com.ibm.commerce.wc.appmanagement.exception.WCAppManagementException:
java.sql.SQLException: ORA-28000: the account is locked
DSRA0010E: SQL State = 99999, Error Code = 28,000DSRA0010E: SQL State = 99999, Error Code = 28,000
at com.ibm.commerce.wc.version.ECDatabaseVersionInfo.readSiteTable(ECDataba
seVersionInfo.java:120)
at com.ibm.commerce.wc.version.ECDatabaseVersionInfo.<init>(ECDatabaseVersionInfo.java:81)
at com.ibm.commerce.server.ProductInfo.getECDatabaseVersionInfo(ProductInfo.java:58)
at com.ibm.commerce.server.ProductInfo.getECDBVersionInfo(ProductInfo.java: 96)
at com.ibm.commerce.server.ProductInfo.getProductVersion(ProductInfo.java:75)
...

Solution
The exceptions during initialization of the datasource could occur for numerous reasons:

  • The WebSphere Commerce server is started as the root user (the root user's .profile does not source in the database user's profile, and no database environment has been set).


Solution:

  1. Stop the server as root

  2. Run the wcnonroot.sh script from your WC_install_dir/bin directory as root.

  3. Start the server as the non-root user.


  • The WebSphere Commerce server is started as the non-root user, but the non-root user's .profile does not source in the database user's profile.


Solution:

In the .profile located in the non-root users home directory, source the database user's profile, that is:

. /home/db2inst1/.profile

  • The WebSphere Commerce server is started as the non-root user, but the database user's password has expired.


Solution:

  1. Log in to the operating system as the database user, and change the password.

  2. Change the database password that the WebSphere Commerce instance is using through Configuration Manager.


  • The WebSphere Commerce server is started as the non-root user, but the database user's password is incorrect.


Solution:

Change the database password that the WebSphere Commerce instance is using through Configuration Manager.

  • The WebSphere Commerce server is started as the non-root user, but the database user's account is locked.


Solution:

Unlock the database user's operating system account.

  • The WebSphere Commerce server is started as the non-root user, and the database user profile is sourced correctly, but the database library paths are pointing to 64-bit libraries instead of 32-bit libraries.


Solution:

Ensure that the LIBPATH or LD_LIBRARY_PATH is pointing to the correct 32-bit database libraries on the database client tier.

Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Enterprise Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce - Express Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Enterprise Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Business Edition Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Express Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Express Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Express Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
Commerce WebSphere Commerce Developer Express Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21264522