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.  Application Migration Exception

    Posted Tue August 21, 2018 10:59 AM
    Installed WAS8.5 (JDK-java_1.8_64) stand alone environment in AIX box and  deployed  application from WAS 7.0 environment .Application is working fine in WAS7.0 environment   but while accessing application from WAS8.5  it is throwing class not found exception . Could you please suggest to resolve the exception - 
    while application start up it is showing following exception - 
    [8/21/18 6:22:03:361 CDT] 000001a4 EJBMDOrchestr E CNTR0075E: The user-provided class "com.fnf.xes.framework.pa.usc.EJSLocal
    StatelessTransportBeanJAVAES_c5507f6e" needed by the EnterpriseBean could not be found or loaded.
    [8/21/18 6:22:03:363 CDT] 000001a4 SharedEJBRunt E WSVR0068E: Attempt to start EnterpriseBean xpressSignature#ifx1_esl_ejb-3
    .5.1.jar#TransportBeanJAVAES failed with exception: com.ibm.ejs.container.EJBConfigurationException: Bean class com.fnf.xes.fr
    amework.pa.usc.EJSLocalStatelessTransportBeanJAVAES_c5507f6e could not be found or loaded
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedImplementationClasses(EJBMDOrchestrator.java:4919)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.finishBMDInitWithReferenceContext(EJBMDOrchestrator.java:1077)
    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:5464)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5680)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime$1.run(AbstractEJBRuntime.java:1493)
    at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime$1.run(AbstractEJBRuntime.java:1470)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
    at com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.initializeDeferredEJB(AbstractEJBRuntime.java:1469)
    at com.ibm.ejs.container.HomeRecord.getHomeAndInitialize(HomeRecord.java:290)
    at com.ibm.ejs.container.EJSContainer.getStartedHome(EJSContainer.java:1238)
    at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1297)
    at com.ibm.ejs.container.EJSContainer.getEJBLocalHome(EJSContainer.java:5459)
    at com.ibm.ejs.container.util.EJBInterfaceObjectFactory.getObjectInstance(EJBInterfaceObjectFactory.java:177)
    at org.apache.aries.jndi.ObjectFactoryHelper.getObjectInstanceUsingObjectFactoryBuilders(ObjectFactoryHelper.java:351)
    at org.apache.aries.jndi.ObjectFactoryHelper.getObjectInstance(ObjectFactoryHelper.java:109)
    at org.apache.aries.jndi.OSGiObjectFactoryBuilder.getObjectInstance(OSGiObjectFactoryBuilder.java:62)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:311)
    at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:993)
    at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:182)
    at com.ibm.ws.naming.urlbase.UrlContextImpl.processBoundObjectForLookup(UrlContextImpl.java:2008)
    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1454)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1426)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1476)
    at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLookupObjectFactory.java:388)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstanceExt(IndirectJndiLookupObjectFactory.java:22
    7)
    at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:990)
    at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:182)
    at com.ibm.ws.naming.java.javaURLContextRoot.processBoundObjectForLookup(javaURLContextRoot.java:850)
    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1454)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
    Caused by: java.lang.ClassNotFoundException: com.fnf.xes.framework.pa.usc.EJSLocalStatelessTransportBeanJAVAES_7d9b1ab0
    at java.net.URLClassLoader.findClass(URLClassLoader.java:609)
    at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:243)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:829)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
    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:586)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedClass(EJBMDOrchestrator.java:5047)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedImplementationClasses(EJBMDOrchestrator.java:4787)
    ... 174 more
    While accessing application it is  showing following  error - 
    [8/21/18 6:22:34:003 CDT] 00000083 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper init ucaught.init.exception.
    thrown.by.servlet

    [8/21/18 6:22:33:996 CDT] 00000083 WarBasedAxisC E org.apache.axis2.deployment.WarBasedAxisConfigurator <init> org.apache.comm
    ons.fileupload.FileUploadException
    org.apache.axis2.deployment.DeploymentException: org.apache.commons.fileupload.FileUploadExce
    ption
    at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:774)
    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:234)
    at rg.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:859)
    at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:156)
    at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:569)
    at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:457)
    :
    aat com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.load(ServletWrapper.java:1378)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1027)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4028)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
    Caused by: java.lang.NoClassDefFoundError: org.apache.commons.fileupload.FileUploadException
    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1899)
    at org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(DescriptionBuilder.java:230)
    at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:771)
    ... 26 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    ... 26 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
    ... 30 more

    Please post your suggestions and let me know if you need more information .






    ------------------------------
    Bharath VR
    ------------------------------


  • 2.  RE: Application Migration Exception

    Posted Wed August 22, 2018 03:14 AM
    It looks to me as though you might need to run the ejbdeploy tool on that application.
    https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.etools.ejbbatchdeploy.doc/topics/regenc.html

    ------------------------------
    Neil Weightman
    ------------------------------



  • 3.  RE: Application Migration Exception

    Posted Wed August 22, 2018 08:33 AM
    Hi Neil,
    Thanks for your response sure I will try and post the result .

    Regards,
    Bharath V R .

    ------------------------------
    Bharath VR
    ------------------------------



  • 4.  RE: Application Migration Exception

    Posted Wed August 22, 2018 10:41 AM

    Bharath VR,

     

    Your error indicates that a java class is not available in Java 1.8.   You can use the free WebSphere Migration Toolkit provided by IBM to scan  your code and flag where changes need to be made for Java 1.8/WebSphere 8.5.   I believe there is even an option to allow it to make the recommended updates to the code. 

     https://www.ibm.com/developerworks/library/mw-1701-was-migration/index.html

     Migration Toolkit for Application Binaries (command-line tool)

    https://developer.ibm.com/wasdev/downloads/#asset/tools-Migration_Toolkit_for_Application_Binaries

     WebSphere Application Server Migration Toolkit (for Eclipse)

    https://developer.ibm.com/wasdev/downloads/#asset/tools-WebSphere_Application_Server_Migration_Toolkit



    ------------------------------
    Theresa Brittain
    Middleware/WebSphere Administrator/team lead
    Atos
    Austin TX

    ------------------------------



  • 5.  RE: Application Migration Exception

    Posted Wed August 22, 2018 12:14 PM
    ​Bharath,  did you deploy the application properly to the new WAS ?  When the app was installed into the new server was it processed through the EJBDeploy tool successfully?

    ------------------------------
    Sandra Korth
    VP Sierra Consulting
    Missouri City TX
    281-835-6588
    ------------------------------



  • 6.  RE: Application Migration Exception

    Posted Thu August 23, 2018 10:42 AM
    I think you need to add apache commons jars to the user application library.
    I believe that Websphere jars are now marked as was_internal

    ------------------------------
    Alessandro Mottadelli
    hybrid cloud technical sales
    IBM
    Segrate
    ------------------------------