WebSphere Application Server & Liberty

 View Only
  • 1.  Apache CXF WSDL Spring boot Application deployment.

    Posted Wed June 07, 2023 06:52 AM
    Edited by Rutvik Rajpura Wed June 07, 2023 07:23 AM
      |   view attached

    Hello All,

    I am deploying CXF wsdl based application on IBM Web Sphere 9.0.5, Deployment was successfully but getting error while access wsdl url. If anyone is aware what is causing issue let me know. It would be great help. I have attached Logs.

    6/7/23 14:33:04:852 JST] 00004127 SystemErr     R Jun 07, 2023 2:33:04 PM com.ibm.ws.webcontainer.webapp.WebApp logServletError
    SEVERE: SRVE0293E: [Servlet Error]-[cxf]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.bus.spring.SpringBus]: Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1320)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1214)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
            at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
            at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
            at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
            at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1841)
            at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:443)
            at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
            at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)
            at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
            at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
            at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
            at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)
            at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1249)
            at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1591)
            at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:720)
            at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1162)
            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:5568)
            at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5694)
            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.GeneratedMethodAccessor81.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:717)
            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:1353)
            at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
            at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1246)
            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:372)
            at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:637)
            at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)
            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:1909)
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.bus.spring.SpringBus]: Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1312)
            ... 71 more
    Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
            at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:183)
            at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:199)
            at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:139)
            at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:149)
            at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:161)
            at org.apache.cxf.bus.spring.SpringBus.<init>(SpringBus.java:45)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:437)
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:200)
            ... 73 more
    Caused by: java.lang.IncompatibleClassChangeError: org/apache/neethi/AssertionBuilderFactory is not an interface
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at java.lang.ClassLoader.defineClassInternal(ClassLoader.java:397)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:358)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154)
            at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:922)
            at com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:787)
            at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:632)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:876)
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at java.lang.ClassLoader.defineClassInternal(ClassLoader.java:397)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:358)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154)
            at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:922)
            at com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:787)
            at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:632)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:876)
            at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:164)
            ... 83 more



    ------------------------------
    Rutvik Rajpura
    ------------------------------

    Attachment(s)

    txt
    logs.txt   11 KB 1 version


  • 2.  RE: Apache CXF WSDL Spring boot Application deployment.

    Posted Thu June 08, 2023 10:00 AM

    I would suggest:
    1. If you are using some pom dependencies file rearranging the order of them may help.
    2. Verify if you have more than one neethinn.jar in your classpath
    (it could be inside some other .jar)
    3. Check the compatibility of the version of your neethinn.jar with the version of yor cxfnn.jar
    Best regards,



    ------------------------------
    Leandro Petit
    ------------------------------



  • 3.  RE: Apache CXF WSDL Spring boot Application deployment.

    IBM Champion
    Posted Fri June 09, 2023 01:56 AM

    Hello Rutvik,

    in the logs you can find:

    Caused by: java.lang.IncompatibleClassChangeError: org/apache/neethi/AssertionBuilderFactory is not an interface

    so I'm wandering if you are providing your own set of cxf files with your application? It looks like that the cxf packages in your application are clashing with the WAS classes. So can you check which packages you are delivering with the application and use a tool like jarscan to determine where the classes mentioned in the logs are available in your deployment?

    Hope this helps, Hermann



    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

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



  • 4.  RE: Apache CXF WSDL Spring boot Application deployment.

    Posted Tue July 25, 2023 01:05 PM

    hi @Rutvik Rajpura I have the same issue with the same log error , did you manage to solve it?



    ------------------------------
    Birhanu Mihretie
    ------------------------------



  • 5.  RE: Apache CXF WSDL Spring boot Application deployment.

    Posted Tue July 25, 2023 01:14 PM

    Hi Rutvik, I have the same problem with the same log , did you manage to solve it?



    ------------------------------
    Birhanu Mihretie
    ------------------------------



  • 6.  RE: Apache CXF WSDL Spring boot Application deployment.

    Posted Wed July 26, 2023 05:26 AM

    remove you included CXF files or change the class loading order.

    Brian



    ------------------------------
    Brian S Paskin
    Sr. Technology Engineer
    IBM Cloud Engineering
    ------------------------------