Skip to content

Infinispan not working with Jakarta EE? #704

@dougbreaux

Description

@dougbreaux

(Maybe related to #669 , but maybe not)

Having updated our application to use Jakarta EE (and Java 21), and running the Infinispan steps to add session cache, we're now getting these errors when trying to start the container. Removing Infinispan allows the container and app to start and run successfully.

...
[INFO    ] CWWKL0084W: The javax.transaction.RollbackException class could not be loaded. Try enabling the jdbc-4.0 feature or a newer version of the feature in the server.xml file.
[INFO    ] FFDC1015I: An FFDC Incident has been created: "java.lang.NoClassDefFoundError: javax.transaction.RollbackException com.ibm.ws.session.store.cache.CacheStoreService 274" at ffdc_25.07.17_19.30.18.0.log
[ERROR   ] SRVE8059E: An unexpected exception occurred when trying to retrieve the session context
javax.transaction.RollbackException
[INFO    ] HV000001: Hibernate Validator 7.0.4.Final
[WARNING ] ISPN021002: Closing leaked cache manager
ISPN021001: Allocation stack trace:
[INFO    ] DYNA1056I: Dynamic Cache (object cache) initialized successfully.
[INFO    ] FFDC1015I: An FFDC Incident has been created: "java.lang.NullPointerException: Cannot invoke "com.ibm.ws.webcontainer31.session.IHttpSessionContext31.addHttpSessionIdListener(jakarta.servlet.http.HttpSessionIdListener, java.lang.String)" because the return value of "com.ibm.ws.webcontainer31.osgi.webapp.WebApp31.getSessionContext()" is null com.ibm.ws.wsoc.WebSocketServletContainerInitializer 88" at ffdc_25.07.17_19.30.19.0.log
[INFO    ] FFDC1015I: An FFDC Incident has been created: "java.lang.NullPointerException: Cannot invoke "com.ibm.ws.webcontainer31.session.IHttpSessionContext31.addHttpSessionIdListener(jakarta.servlet.http.HttpSessionIdListener, java.lang.String)" because the return value of "com.ibm.ws.webcontainer31.osgi.webapp.WebApp31.getSessionContext()" is null com.ibm.ws.webcontainer.osgi.DynamicVirtualHost startWebApp" at ffdc_25.07.17_19.30.20.0.log
...
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://payment-engine-poc-5f8bcbb6cb-dtg7t:9080/payment/
[INFO    ] SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at /opt/ol/wlp/output/defaultServer/logs/state/plugin-cfg.xml.
[INFO    ] SESN0176I: A new session context will be created for application key default_host/payment
[INFO    ] SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[ERROR   ] SRVE8059E: An unexpected exception occurred when trying to retrieve the session context
javax.transaction.RollbackException
[AUDIT   ] CWWKZ0012I: The application MVM Payment was not started.
[AUDIT   ] CWWKT0017I: Web application removed (default_host): http://payment-engine-poc-5f8bcbb6cb-dtg7t:9080/payment/
...

Making me think that the current Infinispan script simply doesn't work with Jakarta EE Liberty features?

server.xml features

    <featureManager>
        <feature>concurrent-3.0</feature>
        <feature>webProfile-10.0</feature>
        <feature>mail-2.1</feature>
        <feature>mpHealth-4.0</feature>
    </featureManager>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions