Decision Management (ODM,ADS)

 View Only
  • 1.  Implementación de IBM ODM v8.11.1 en WebSphere Liberty 23.0.0.1

    Posted Wed April 24, 2024 04:20 PM
      |   view attached

    Hicommunity

    I appreciate your help, I am implementing IBM ODM v8.11.1 on WebSphere Liberty 23.0.0.1, when uploading the application server the following error is generated that I have not been able to overcome:

    [4/24/24 16:15:27:463 EDT] 00000033 SpringApplica E org.springframework.boot.SpringApplication reportFailure Application run failed
                                     org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax.servlet.http.HttpSessionIdListener
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
            at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740)
            at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
            at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)
            at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)
            at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)
            at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)
            at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:2581)
            at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1056)
            at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6706)
            at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:474)
            at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:469)
            at com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:1190)
            at com.ibm.ws.webcontainer.osgi.WebContainer.startModule(WebContainer.java:979)
            at com.ibm.ws.app.manager.module.internal.ModuleHandlerBase.deployModule(ModuleHandlerBase.java:101)
            at com.ibm.ws.app.manager.module.internal.DeployedModuleInfoImpl.installModule(DeployedModuleInfoImpl.java:51)
            at com.ibm.ws.app.manager.module.internal.SimpleDeployedAppInfoBase.deployModules(SimpleDeployedAppInfoBase.java:599)
            at com.ibm.ws.app.manager.module.internal.SimpleDeployedAppInfoBase.installApp(SimpleDeployedAppInfoBase.java:513)
            at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployApp(DeployedAppInfoBase.java:351)
            at com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.install(WARApplicationHandlerImpl.java:67)
            at com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:184)
            at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1369)
            at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:912)
            at com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:247)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
            at java.lang.Thread.run(Thread.java:818)
    Caused by: java.lang.NoClassDefFoundError: javax.servlet.http.HttpSessionIdListener
            at org.springframework.boot.web.servlet.ServletListenerRegistrationBean.<clinit>(ServletListenerRegistrationBean.java:68)
            at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:156)
            at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:87)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext$$Lambda$743.0000000000000000.onStartup(Unknown Source)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:191)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160)
            ... 29 more
    Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionIdListener
            at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibraryClassLoaders(AppClassLoader.java:736)
            at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:321)
            at com.ibm.ws.classloading.internal.AppClassLoader.findOrDelegateLoadClass(AppClassLoader.java:708)
            at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:580)
            at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:547)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:871)
            ... 37 more

    Attached server.xml file

    This error affects the application for the Decision Center. I appreciate your suggestion to correct the error. Thank you



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------

    Attachment(s)

    xml
    server.xml   11 KB 1 version


  • 2.  RE: Implementación de IBM ODM v8.11.1 en WebSphere Liberty 23.0.0.1

    Posted Wed April 24, 2024 07:23 PM

    I believe you need servlet 3.1 for DC to work properly. 

            <feature>servlet-3.1</feature>


    As reference here is the feature list used in ODM on Containers
    https://github.com/DecisionsDev/odm-ondocker/blob/ODM_v8111updates/decisioncenter/config/featureManager.xml


    ------------------------------
    Alain Robert
    ------------------------------



  • 3.  RE: Implementación de IBM ODM v8.11.1 en WebSphere Liberty 23.0.0.1

    Posted Fri April 26, 2024 05:22 PM

    Hi Alain,

    Thank you for your attention, according to your answer the problem is with the <feature>servlet-3.1</feature> feature, but when I enable this feature the Decision Server does not work for me.



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------



  • 4.  RE: Implementación de IBM ODM v8.11.1 en WebSphere Liberty 23.0.0.1

    Posted Mon April 29, 2024 12:36 PM

    What errors do you have? 
    You can find the server.xml configuration for decision server here as an example: https://github.com/DecisionsDev/odm-ondocker/tree/ODM_v8111updates/decisionserver



    ------------------------------
    Alain Robert
    ------------------------------