4 Replies Latest reply on Jan 18, 2019 7:46 AM by Joe T

    Ear deployment fails in Jboss7

    Joe T Newbie

      @

      I try to deploy a ear file in Jboss 7 and it has the ejb jar inside it. The application.xml file has entry on the ejb jar and getting the following error when deploying the ear. Copied the ear inside the deployment folder and started the server.  Request your help/suggestions to fix the issue

       

      15:33:49,253 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: 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: 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:121)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

              at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [:1.8.0_131]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [:1.8.0_131]

              at java.lang.Thread.run(Thread.java:748) [:1.8.0_131]

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

              at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724) [:1.8.0_131]

              at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531) [:1.8.0_131]

              at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355) [:1.8.0_131]

       

      Currently Using: jdk1.8.0_131

      Jboss As 7.0.0 final

       

      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>

        <initialize-in-order>true</initialize-in-order>

        <module>

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

        </module>

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

      </application>

       

      _testservice-ear.ear has the following elements

      lib,META-INF,testservice-ejb.jar (application.xml is copied in META-INF)

       

      pom.xml in the testservice-ear

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

      <build>

        

              <plugins>

                  <plugin>

                  <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-ear-plugin</artifactId>

                      <version>2.6</version>

                      <configuration>

                                <version>6</version>

                          <defaultLibBundleDir>/lib</defaultLibBundleDir>

                          <defaultJavaBundleDir>/lib</defaultJavaBundleDir>

                         <fileNameMapping>no-version</fileNameMapping>

                     <initializeInOrder>true</initializeInOrder>

                            <generateApplicationXml>true</generateApplicationXml>

                          <modules>

                           <ejbModule>

                                  <groupId>${project.groupId}</groupId>

                                  <artifactId>testservice-ejb</artifactId>

                              </ejbModule>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.jboss.as.plugins</groupId>

                      <artifactId>jboss-as-maven-plugin</artifactId>

                      <configuration>

                          <filename>${project.artifactId}.ear</filename>

                          <skip>false</skip>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.codehaus.mojo</groupId>

                      <artifactId>jboss-maven-plugin</artifactId>

                  </plugin>

              </plugins>

          </build>

       

          <dependencies>

              <dependency>

                  <groupId>${project.groupId}</groupId>

                  <artifactId>testservice-ejb</artifactId>

                  <version>${project.version}</version>

                  <type>ejb</type>

                   <exclusions>

      </exclusions>

              </dependency>

          </dependencies>

        • 1. Re: Ear deployment fails in Jboss7
          Tomaz Cerar Master

          any reason why you are still using AS 7? This is really old by now. it was released 2011-07-12...

           

          Currently latest version is WildFly 15, which should work fine on JDK 8.

          • 2. Re: Ear deployment fails in Jboss7
            Joe T Newbie

            Thanks Tomaz for your reply. (Maintenance)Application is being migrated from very old Jboss5 to 7.  I wanted to try with WildFly 15 for testing and got the similar error message

             

            18:22:25,585 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.subunit."__testservice-ear.ear"."testservice-ejb.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."__testservice-ear.ear"."testservice-ejb.jar".PARSE: WFLYSRV0153: Failed to process phase PARSE 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:1378)

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

            Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found

                    at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:652)

                    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:248)

                    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageBeans(MessageDrivenComponentDescriptionFactory.java:156)

                    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processAnnotations(MessageDrivenComponentDescriptionFactory.java:83)

                    at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processAnnotations(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:50)

                    at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:76)

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

                    ... 8 more

            • 3. Re: Ear deployment fails in Jboss7
              Tomaz Cerar Master

              start server with -c standalone-full.xml parameter and it should be better.

              • 4. Re: Ear deployment fails in Jboss7
                Joe T Newbie

                Tried to deploy in Wildfly-15 and fails still. The server is started with  standalone.sh -c standalone-full.xml.  Is there something odd in the entries in the deployment-structure and application xml