Ear deployment fails in Jboss7
nepoleonjoseph12 Dec 18, 2018 7:19 AM@
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>