1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[JBoss] AbstractMethodError when deploing on jboss

Discussão em 'StackOverflow' iniciado por Stack, Fevereiro 11, 2025.

  1. Stack

    Stack Membro Participativo

    I inherited java 7 app in my company and was tasked to upgrade it to java 8 and deploy on new jboss servers. I build the app with java 8 with no problem, tried to deploy it, fixed some minor bugs but then AbstractMethodError appeared.

    {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"gui-be-2.1.2.war#gui-be-pu\"" => "java.lang.AbstractMethodError


    Caused by: java.lang.AbstractMethodError"}}

    I read that either use same version on libs that are on Jboss or specify via jboss-deployment-structure.xml that use project libs. I tried to go with same versions approach, but had no luck.

    The hibernate version I used is 5.3.14.Final. Same on jboss and in project poms.

    Found some error logs in jboss:

    (Caused by: java.lang.AbstractMethodError
    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:276)
    at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build
    (SessionFactoryBuilderImpl.java:467)
    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build
    (EntityManagerFactoryBuilder Impl.java:939)
    at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44))

    Continue reading...

Compartilhe esta Página