Jboss: почему происходит ошибка при развертывании?

Доброго времени суток. При развертывании на удаленном сервере через панель управления(порт 9990) возникает следующая ошибка
Unexpected HTTP response: 500

Request
{
    "address" => [("deployment" => "education.war")],
    "operation" => "deploy"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./education" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./education: Failed to start service
    Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.education.Dao.Email.EmailDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/data.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.education.Dao.Email.EmailDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/data.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
    Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.education.Dao.Email.EmailDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/data.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/data.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
    Caused by: java.lang.IncompatibleClassChangeError: Implementing class"}},
    "rolled-back" => true
}

Как я понял - проблема в Impl классах, вроде DAO и сервисов, но при этом на локальном сервере все отлично работает. Как решать?
  • Вопрос задан
  • 3646 просмотров
Пригласить эксперта
Ответы на вопрос 1
sheknitrtch
@sheknitrtch
Насколько Я понял из вашего кусочка лога, JBoss не может проинициализировать поле
'sessionFactory' из-за ошибки java.lang.IncompatibleClassChangeError.
Возможно проблема в различных версиях библиотек. Одинаковые ли версии JBoss? Сравните содержимое папки %JBOSS_HOME%/modules на локальной машине и на удалённой.
Обычно, когда JBoss не может задеплоить WAR, то в логе есть Stack Trace ошибки. Было бы неплохо на него взглянуть.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы