1 Reply Latest reply on Sep 18, 2015 5:05 PM by chetansoftware

    Adding Spring module in JBOSS EAP 6

    sarikank

      I followed instructions on Application using Spring Framework jars from custom JBoss Modules in JBoss EAP 6 deploys but Spring is not initialized -… to add spring module. But I'm getting following error. Is there any additional config needed?

      13:08:36,999 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "mimedx-eservices.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"mimedx-eservices.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"mimedx-eservices.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"mimedx-eservices.war\"

          Caused by: java.lang.LinkageError: Failed to link org/springframework/web/servlet/tags/RequestContextAwareTag (Module \"org.springframework.spring:main\" from local module loader @165ef3ae (finder: local module finder @33d02ffb (roots: C:\\Dev-Apps\\Red Hat JBOSS EAP 6.4\\modules,C:\\Dev-Apps\\Red Hat JBOSS EAP 6.4\\modules\\system\\layers\\base)))

          Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TryCatchFinally

          Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TryCatchFinally from [Module \"org.springframework.spring:main\" from local module loader @165ef3ae (finder: local module finder @33d02ffb (roots: C:\\Dev-Apps\\Red Hat JBOSS EAP 6.4\\modules,C:\\Dev-Apps\\Red Hat JBOSS EAP 6.4\\modules\\system\\layers\\base))]"}}

      13:08:37,074 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "activemq-rar.rar" (runtime-name : "activemq-rar.rar")

      13:08:37,075 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "mimedx-eservices.war" (runtime-name : "mimedx-eservices.war")

      13:08:37,077 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."mimedx-eservices.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."mimedx-eservices.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "mimedx-eservices.war"

        • 1. Re: Adding Spring module in JBOSS EAP 6
          chetansoftware

          Hi Sarika,

           

          Were you able to resolve this issue? I am getting same exception while using Spring validator because of using <body-content>empty</body-content> in valang.tld.

           

          Failed to define class org.springmodules.validation.valang.javascript.taglib.ValangValidateTag in Module "MyApplication.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/springmodules/validation/valang/javascript/taglib/ValangValidateTag

          ....

          .....

          NoClassDefFoundError: org/springframework/web/servlet/tags/RequestContextAwareTag