V
V
Vitaly2014-02-10 19:03:50
Java
Vitaly, 2014-02-10 19:03:50

jboss: why does deployment fail?

Good day. When deployed to a remote server through the control panel (port 9990), the following error occurs

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
}

As I understand it, the problem is in Impl classes, like DAO and services, but everything works fine on the local server. How to decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sheknitrtch, 2014-02-10
@sheknitrtch

As far as I understand from your piece of log, JBoss cannot initialize the field
'sessionFactory'due to an error java.lang.IncompatibleClassChangeError.
Perhaps the problem is in different versions of the libraries. Are the versions of JBoss the same? Compare the contents of the folder %JBOSS_HOME%/moduleson the local machine and on the remote machine.
Usually, when JBoss fails to deploy a WAR, there are Stack Trace errors in the log. It would be nice to have a look at it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question