You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to upgrade a 6.10 database to 9.0 (either from WebUI or from ant), I get an error.
ERROR org.ejbca.ui.cli.UpgradeCommand - Post Upgrade not performed, see server log for details.
In server.log, the stack trace begins with:
ERROR [org.ejbca.core.ejb.upgrade.UpgradeSessionBean] (default task-2) Unexpected error from post-upgrade: java.lang.ClassCastException: class org.jboss.logmanager.log4j.JBossLogger cannot be cast to class org.apache.logging.log4j.core.Logger (org.jboss.logmanager.log4j.JBossLogger is in unnamed module of loader '[email protected]' @56d4bd5b; org.apache.logging.log4j.core.Logger is in unnamed module of loader 'deployment.ejbca.ear' @71231573): jakarta.ejb.EJBException: java.lang.ClassCastException: class org.jboss.logmanager.log4j.JBossLogger cannot be cast to class org.apache.logging.log4j.core.Logger (org.jboss.logmanager.log4j.JBossLogger is in unnamed module of loader '[email protected]' @56d4bd5b; org.apache.logging.log4j.core.Logger is in unnamed module of loader 'deployment.ejbca.ear' @71231573)
Searching the web, I found there was some change in logging (l4j) in recent WildFly versions. Following hints, I tried to exclude org.apache.logging.log4j.api in src/deploy/ear/META-INF/jboss-deployment-structure.xml:
When I try to upgrade a 6.10 database to 9.0 (either from WebUI or from ant), I get an error.
In server.log, the stack trace begins with:
Searching the web, I found there was some change in logging (l4j) in recent WildFly versions. Following hints, I tried to exclude
org.apache.logging.log4j.api
insrc/deploy/ear/META-INF/jboss-deployment-structure.xml
:After
ant build deployear
+ restart,ant upgrade
succeed, and the application seems to be still OK.Tech stack:
The text was updated successfully, but these errors were encountered: