Support Article

ClassNotFoundException installing Pega 7.2 on WebSphere 8.5.5.9

SA-27350

Summary



Pega 7.2 error after installing it on WebSphere 8.5.5.9 application server.
The following exception is found in the SystemOut.log file starting the application.

 

Error Messages



[6/13/16 16:45:48:464 CEST] 00000078 EJBMDOrchestr E CNTR0075E: The user-provided class "com.pega.pegarules.internal.etier.interfaces.EJSRemoteStatelessEngineBMT_f2439d86" needed by the EnterpriseBean could not be found or loaded.
[6/13/16 16:45:48:467 CEST] 00000078 SharedEJBRunt E WSVR0068E: Attempt to start EnterpriseBean prpc_j2ee14_ws#prbeans.jar#EngineBMT failed with exception: com.ibm.ejs.container.EJBConfigurationException: Bean class com.pega.pegarules.internal.etier.interfaces.EJSRemoteStatelessEngineBMT_f2439d86 could not be found or loaded
at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedImplementationClasses(EJBMDOrchestrator.java:4858)
at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.finishBMDInitWithReferenceContext(EJBMDOrchestrator.java:1076)
at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.finishBMDInit(AbstractEJBRuntime.java:1659)
at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.initializeDeferredEJBImpl(AbstractEJBRuntime.java:1597)
at com.ibm.ws.ejbcontainer.runtime.SharedEJBRuntimeImpl.initializeDeferredEJBImpl(SharedEJBRuntimeImpl.java:547)
at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime$1$1.run(AbstractEJBRuntime.java:1500)
at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime$1$1.run(AbstractEJBRuntime.java:1494)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5486)
...

Caused by: java.lang.ClassNotFoundException: com.pega.pegarules.internal.etier.interfaces.EJSRemoteStatelessEngineBMT_c73f27ee
    at java.net.URLClassLoader.findClass(URLClassLoader.java:607)
    at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:243)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:844)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:823)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:803)
    at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
    at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:803)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedClass(EJBMDOrchestrator.java:4986)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedImplementationClasses(EJBMDOrchestrator.java:4709)
    ... 106 more


Steps to Reproduce

  1. Install WAS 8.5.5.9. 
  2. Deploy Pega ear file according to the Installation Guide.


Root Cause



Root Cause of the issue is not having selected the “Deploy enterprise beans” option in the first step of the new Application wizard (see screenshot below).

Deploy enterprise beans option

For more details on the option refer to the following IBM Knowledge Center page for the application server version:
  • Network Deployment > Reference > Settings > Select installation options settings

Resolution


Perform the following local-change step:

Select the option “Deploy enterprise bean” in the “Select installation options” step of the new Application wizard.
The option, when selected, causes the EJBDeploy tool runs during application installation. The tool generates the stubs required to run EJB files.
This solves the issue and let Websphere to install correctly the prpc ear file.

Following is the output generated by the EJBDeploy task, triggered at the end of the new Application wizard, when the option is selected:


[6/24/16 12:55:28:683 UTC] 000000bc InstallSchedu I   ADMA5016I: Installation of prpc_j2ee14_ws started.
[6/24/16 12:55:29:910 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Starting workbench.
[6/24/16 12:55:29:911 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   @build@
[6/24/16 12:55:30:163 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] EJB Deploy configuration directory: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/ejbdeploy/configuration/
[6/24/16 12:55:30:163 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] framework search path: /opt/IBM/WebSphere/AppServer/deploytool/itp/plugins
[6/24/16 12:55:30:171 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] build:RAD851-I20121103_1921
[6/24/16 12:55:40:319 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Creating the project.
[6/24/16 12:55:42:034 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Opening 'prpc_j2ee14_ws'.
[6/24/16 12:55:42:035 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Refreshing '/prpc_j2ee14_ws'.
[6/24/16 12:55:42:040 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'.
[6/24/16 12:55:42:046 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Configuring targeted runtimes...
[6/24/16 12:55:42:053 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Installing EAR facet...
[6/24/16 12:55:42:166 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'.
[6/24/16 12:55:42:195 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Opening 'prbeans'.
[6/24/16 12:55:42:196 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Refreshing '/prbeans'.
[6/24/16 12:55:42:196 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'.
[6/24/16 12:55:42:201 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Configuring targeted runtimes...
[6/24/16 12:55:42:202 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Installing Java facet...
[6/24/16 12:55:42:516 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Installing EJB Module facet...
[6/24/16 12:55:42:598 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'.
[6/24/16 12:55:42:651 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'. Refreshing '/prbeans'.
[6/24/16 12:55:42:660 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'. Importing archive 'prbeans.jar'.
[6/24/16 12:55:42:661 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Importing archive '/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/1623776755/upload/prpc_j2ee14_ws.ear'.
[6/24/16 12:55:44:375 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Deploying jar prbeans
[6/24/16 12:55:44:626 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Generating deployment code
[6/24/16 12:55:44:633 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: PRServiceStateful
[6/24/16 12:55:45:635 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: PRServiceStateless
[6/24/16 12:55:45:678 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: EngineCMT
[6/24/16 12:55:45:706 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: EngineBMT
[6/24/16 12:55:45:715 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: LockManager
[6/24/16 12:55:45:734 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Processing session bean: Database
[6/24/16 12:55:45:754 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Refreshing '/prbeans/ejbModule'.
[6/24/16 12:55:46:359 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Java Builder' on '/prbeans'.
[6/24/16 12:55:46:367 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Preparing to build prbeans
[6/24/16 12:55:46:380 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Cleaning output folder for prbeans
[6/24/16 12:55:46:381 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Copying resources to the output folder
[6/24/16 12:55:46:394 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Analyzing sources
[6/24/16 12:55:46:402 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Compiling prbeans/ejbModule/com/pega/pegarules/internal/etier/interfaces
[6/24/16 12:55:47:036 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Compiling prbeans/ejbModule/com/pega/pegarules/etier/interfaces
[6/24/16 12:55:47:114 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Build done
[6/24/16 12:55:47:116 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Faceted Project Validation Builder' on '/prbeans'.
[6/24/16 12:55:47:119 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Validation' on '/prbeans'.
[6/24/16 12:55:47:119 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Faceted Project Validation Builder' on '/prpc_j2ee14_ws'.
[6/24/16 12:55:47:120 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Validation' on '/prpc_j2ee14_ws'.
[6/24/16 12:55:47:148 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Invoking RMIC.
[6/24/16 12:55:47:154 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] okToInvokeInJVM true
[6/24/16 12:55:48:028 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Opening 'WsaEJBDeployUtility'.
[6/24/16 12:55:48:029 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Refreshing '/WsaEJBDeployUtility'.
[6/24/16 12:55:48:032 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Configuring targeted runtimes...
[6/24/16 12:55:48:033 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Installing Java facet...
[6/24/16 12:55:48:060 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Configuring targeted runtimes...
[6/24/16 12:55:48:060 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Installing Utility Module facet...
[6/24/16 12:55:48:119 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking RMIC for all the ejb references.
[6/24/16 12:55:48:127 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] okToInvokeInJVM true
[6/24/16 12:55:48:455 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Java Builder' on '/WsaEJBDeployUtility'.
[6/24/16 12:55:48:456 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Preparing to build WsaEJBDeployUtility
[6/24/16 12:55:48:457 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Cleaning output folder for WsaEJBDeployUtility
[6/24/16 12:55:48:457 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Copying resources to the output folder
[6/24/16 12:55:48:459 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Analyzing sources
[6/24/16 12:55:48:462 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Build done
[6/24/16 12:55:48:462 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Faceted Project Validation Builder' on '/WsaEJBDeployUtility'.
[6/24/16 12:55:49:052 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Invoking 'Validation' on '/WsaEJBDeployUtility'.
[6/24/16 12:55:49:115 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Writing output file
[6/24/16 12:55:49:121 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Exporting archive 'dpl_prpc_j2ee14_ws.ear'. Refreshing '/prpc_j2ee14_ws'.
[6/24/16 12:55:49:122 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy]   Exporting archive 'dpl_prpc_j2ee14_ws.ear'.
[6/24/16 12:55:49:244 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] Shutting down workbench.
[6/24/16 12:55:49:852 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] EJBDeploy complete.
[6/24/16 12:55:49:853 UTC] 000000c2 DeployEJBTask I   ADMA0158I: [EJBDeploy] 0 Errors, 0 Warnings, 0 Informational Messages
[6/24/16 12:55:50:449 UTC] 000000bc WebContainer  I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0239I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] was registered successfully.
[6/24/16 12:55:50:450 UTC] 000000bc WebContainer  I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0240I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] has been associated with patterns [""].
[6/24/16 12:55:50:533 UTC] 000000bc WebSphereSCAS I   Added Servlet mapping: /dojo
[6/24/16 12:55:50:534 UTC] 000000bc WebSphereSCAS I   Added Servlet mapping: /dojo
[6/24/16 12:55:50:534 UTC] 000000bc WebSphereSCAS I   Added Servlet mapping: /tuscany
[6/24/16 12:55:50:535 UTC] 000000bc WebSphereSCAS I   Added Servlet mapping: /tuscany
[6/24/16 12:55:50:780 UTC] 000000bc InstallSchedu I   ADMA5013I: Application prpc_j2ee14_ws installed successfully.
[6/24/16 12:56:48:679 UTC] 000000b5 AppBinaryProc I   ADMA7021I: Distribution of application prpc_j2ee14_ws completed successfully.

Published August 29, 2016 - Updated September 6, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.