Answer the question
In order to leave comments, you need to log in
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
}
Answer the question
In order to leave comments, you need to log in
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%/modules
on 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 questionAsk a Question
731 491 924 answers to any question