NoClassDefFoundError
Hi all,
I am trying to migrating my project from jboss eap 5 to eap 7 but faced with some errors.
As I wanted to use the libraries as defined in my project and not those provided by jboss like cxf and more, I tried to remove the following code in standalone.xml.
${jboss.bind.address:127.0.0.1}
I also have tried to add the jboss-deployment-structure.xml as below:
However, I was thrown with this error instead:
"{\"WFLYCTL0080: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./AFService\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./AFService: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'apServiceClientInstance' defined in ServletContext resource [/WEB-INF/cxfbeans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/jws/WebService
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'apServiceClientInstance' defined in ServletContext resource [/WEB-INF/cxfbeans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/jws/WebService
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'apServiceClientInstance' defined in ServletContext resource [/WEB-INF/cxfbeans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/jws/WebService
Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService
Caused by: java.lang.ClassNotFoundException: javax.jws.WebService from [Module \\"deployment.AFService.war:main\\" from Service Module Loader]\"}}"
Would appreciate for any advise. Thanks in advanced!
Responses