WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  WebSphere Server v 9.0.5.2 - Error after migrating from WebSpere v 7.0

    Posted Fri January 10, 2020 03:14 PM
    Hi,
    Let me add some details on the project I am working on. Please let me know if you need more information.
    The application is working on WebSphere Server 7.0.
    I migrated the RAD workspace to v9.
    The application has EJBs v 3.0 I updated the version to 3.2
    When I added the EAR file to the server and start, I get this following error,

    [1/10/20 11:43:44:274 PST] 000000af annotation    W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses SRVE8000W: Skipped class that failed to initialize for annotation scanning.[1/10/20 11:43:44:274 PST] 000000af annotation    W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses SRVE8000W: Skipped class that failed to initialize for annotation scanning.                                 java.lang.ClassNotFoundException: com.caesars.ebs.ui.util.BootstrapListener at java.lang.Class.forNameImpl(Native Method) at java.lang.Class.forName(Class.java:403) at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.loadClass(WASAnnotationHelper.java:1001) at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.collectClasses(WASAnnotationHelper.java:210) at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.<init>(WASAnnotationHelper.java:161) at com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager.getAnnotationHelper(WASAnnotationHelperManager.java:66) at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.handOffReferenceData(WebMetaDataFactory.java:443) at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:416) at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:229) at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:567) at com.ibm.ws.runtime.component.DeployedModuleImpl.preStart(DeployedModuleImpl.java:554) at com.ibm.ws.runtime.component.DeployedApplicationImpl.preStart(DeployedApplicationImpl.java:869) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1110) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:801) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1451) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2319) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436) at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:654) at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5523) at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5649) at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:668) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:612) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1341) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287) at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263) at java.security.AccessController.doPrivileged(AccessController.java:704) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813) at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243) at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1483) at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1372) at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287) at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263) at java.security.AccessController.doPrivileged(AccessController.java:704) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813) at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243) at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181) at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247) at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360) at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602) at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$QueuedWork.run(SSLReadServiceContext.java:2000) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)

    Thanks,
    Ashok.

    ------------------------------
    Ashok Lalwani
    ------------------------------


  • 2.  RE: WebSphere Server v 9.0.5.2 - Error after migrating from WebSpere v 7.0

    Posted Mon January 13, 2020 03:50 AM
    Hello Ashok,
    as per the message you posted the issue seems to be that the annotation scanning fails due to: java.lang.ClassNotFoundException: com.caesars.ebs.ui.util.BootstrapListener. How do you package and deliver this class? Which classloader is supposed to load this class?

    Out of interest - as this is a warning - does the application work or is it failing?

    ------------------------------
    Hermann Huebler

    #IBMChampion
    ------------------------------



  • 3.  RE: WebSphere Server v 9.0.5.2 - Error after migrating from WebSpere v 7.0

    Posted Wed January 15, 2020 05:11 PM

    Hi Hermann,

    Thank  you for the response.
    The application works in Websphere 8.5, but not on Websphere 9.0.
    The bootstraplistener implements javax.servlet.ServletContextListener.
    The context event loads this class during start up.

    Thanks,

    Ashok.



    ------------------------------
    Ashok Jaikishan Lalwani
    ------------------------------



  • 4.  RE: WebSphere Server v 9.0.5.2 - Error after migrating from WebSpere v 7.0

    Posted Thu January 16, 2020 03:02 AM
    Hello Ashok,
    thanks a lot for your feedback on that. However it does not really explain how the class is packaged with the application and how it is supposed to be loaded (I mean via which class loader)?

    What is the error you are getting when you start / try to start the application? As the SRVE8000W is just a warning I'm wondering if it is the only error you get?

    Thanks - Hermann

    ------------------------------
    Hermann Huebler

    #IBMChampion
    ------------------------------