Troubleshoot and support > WebSphere Commerce Portals
ClassNotFoundException encountered when starting WebSphere Commerce Portal Server
When running the startServer script to start the WebSphere Portal server, you encounter a ClassNotFoundException in the SystemOut.log file.
Symptoms
The following exception appears in your WebSphere Portal SystemOut.log file:
[6/29/09 19:38:03:069 CST] 0000000a SibMessage E [:] CWSJP0002E: An internal messaging error occurred in com.ibm.ws.sib.remote.mq.WMQClientVersionCheck.v erifyClientClasses, 1:128:1.23 due to an exception java.lang.ClassNotFoundException: com.ibm.mq.MQEnvironment. [6/29/09 19:38:14:777 CST] 0000000a RAWrapperImpl E J2CA0043E: An Exception occurred while trying to instantiate a ResourceAdapter JavaBean instance for the installed ResourceAdapter defined by key cells/wcs208/resources.xml#J2CResourceAdapter_1221506005093. The exception is: java.lang.ClassNotFoundException: com .ibm.mq.connector.ResourceAdapterImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.ibm.ejs.j2c.RAWrapperImpl.createAndConfigureRA(RAWrapperImpl.java:2208) at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:688) at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1101) at com.ibm.ejs.j2c.RALifeCycleManagerImpl.resourceProviderEvent(RALifeCycleManagerImpl.java:823) at com.ibm.ws.runtime.component.ResourceMgrImpl$ResourceEventListenerFilterProxy.resourceProviderEvent(ResourceMgrImpl.java:2119) at com.ibm.ws.runtime.component.ResourceMgrImpl.installResourceProvider(ResourceMgrImpl.java:1504) at com.ibm.ws.runtime.component.ResourceMgrImpl.installResource(ResourceMgrImpl.java:1370) at com.ibm.ws.runtime.component.ResourceMgrImpl.installResources(ResourceMgrImpl.java:1311) at com.ibm.ws.runtime.component.ResourceMgrImpl.loadResources(ResourceMgrImpl.java:1055) at com.ibm.ws.runtime.component.ResourceMgrImpl.start(ResourceMgrImpl.java:735) at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:227) at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:502) at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:298) at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:214) at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:666) at com.ibm.ws.runtime.WsServer.main(WsServer.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Solution
The problem is caused by the WebSphere MQ resource adapter configuration. Execute the following steps to resolve the issue:
Alternately, you can see the following link in the WebSphere Application Server Information Center, which deals with the problem in greater detail:
- Log into the WebSphere Portal Admin Console, at the following URL: https://hostname:10003/ibm/console/login.do?action=secure
- Choose Environment > WebSphere variables
- Update the CONNECTOR_INSTALL_ROOT value from ${USER_INSTALL_ROOT}/installedConnectors to ${WAS_INSTALL_ROOT}/installedConnectors.
- Restart the WebSphere Portal server.
- Adjust the WebSphere MQ resource adapter configuration when migrating profiles between maintenance level 7.0.0.0 and later levels