1 Reply Latest reply on Jan 22, 2019 7:55 AM by jaikiran pai

    Ear deployment in Wildfly15 fails

    Joe T Newbie

      I try to deploy an ear file which contains a ejb jar and other utility jars and when i try to deploy the ear the ejb interfaces are not visible and deployment fails.

      i try to add the dependent deployment jar in  jboss-deployment-structure.xml and it still fails and returning the following error message. Kindly suggest.

      The ear file has been deployed inside  "wildfly-15.0.0.Final\standalone\deployments" and started the server with standalone.sh -c standalone-full.xml

       

      JDK1.8

      Jboss: wildfly-15.0.0.Final

       

      16:13:03,632 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-2) HV000001: Hibernate Validator 6.0.13.Final

      16:13:03,926 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."__testservice-ear.ear"."testservice-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."__testservice-ear.ear"."testservice-ejb.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "testservice-ejb.jar" of deployment "__testservice-ear.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)

              at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)

              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)

              at java.lang.Thread.run(Thread.java:748)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0466: Failed to process business interfaces for EJB class class com.mark.test.service.business.TestService

              at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:93)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)

              ... 8 more

      Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

              at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)

              at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)

              at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)

              at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)

              at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)

              at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)

              at java.lang.Class.createAnnotationData(Class.java:3521)

              at java.lang.Class.annotationData(Class.java:3510)

              at java.lang.Class.getAnnotation(Class.java:3415)

              at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getRemoteBusinessInterfaces(BusinessViewAnnotationProcessor.java:156)

              at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.processViewAnnotations(BusinessViewAnnotationProcessor.java:124)

              at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:91)

              ... 9 more

       

       

      16:13:04,239 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-8) ISPN000128: Infinispan version: Infinispan 'Infinity Minus ONE +2' 9.4.3.Final

      16:13:04,817 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 83) WFLYCLINF0002: Started client-mappings cache from ejb container

      16:13:04,926 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "__testservice-ear.ear")]) - failure description: {

          "WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"__testservice-ear.ear\".\"testservice-ejb.jar\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"testservice-ejb.jar\" of deployment \"__testservice-ear.ear\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0466: Failed to process business interfaces for EJB class class com.mark.test.service.business.TestService

          Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy"},

          "WFLYCTL0412: Required services that are not installed:" => [

              "jboss.deployment.unit.\"__testservice-ear.ear\".beanmanager",

              "jboss.deployment.unit.\"__testservice-ear.ear\".WeldStartService"

          ],

       

      jboss-deployment-structure.xml

       

      <?xml version='1.0' encoding='UTF-8'?>

      <jboss-deployment-structure>

      <ear-subdeployments-isolated>true</ear-subdeployments-isolated>   

      <sub-deployment name="testservice-ejb.jar">

        <dependencies>

          <module name="deployment.__testservice-ear.ear.testservice-ejb.jar"/>

        </dependencies>

      </sub-deployment>

      </jboss-deployment-structure>



      application.xml

      =============

      <?xml version="1.0" encoding="UTF-8"?>

      <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">

        <display-name>testservice-ear</display-name>

        <module>

          <ejb>testservice-ejb.jar</ejb>

        </module>

        <library-directory>/lib</library-directory>

      </application>

       

      Structure for the  __testservice-ear.ear

      lib, META-INF(application.xml, jboss-deployment-structure.xml are available), testservice-ejb.jar