Questions tagged [ear]

An Enterprise Archive, or EAR, is a file format used by Java EE for packaging one or more modules into a single archive so that the deployment of the various modules onto an application server happens simultaneously and coherently.

An Enterprise Archive, or EAR, is a file format used by Java EE for packaging one or more modules into a single archive so that the deployment of the various modules onto an application server happens simultaneously and coherently. It also contains XML files called deployment descriptors which describe how to deploy the modules.
An EAR file is a standard JAR file (and therefore a Zip file) with a .ear extension, with one or more entries representing the modules of the application, and a metadata directory called META-INF which contains one or more deployment descriptors.

References:

1248 questions
103
votes
6 answers

Maven2: Best practice for Enterprise Project (EAR file)

I am just switching from Ant to Maven and am trying to figure out the best practice to set up a EAR file based Enterprise project? Let's say I want to create a pretty standard project with a jar file for the EJBs, a WAR file for the Web tier and the…
Maik
  • 1,057
  • 2
  • 8
  • 4
50
votes
3 answers

Removing version number from file name with Maven

I have a project with 5 modules in maven. Right now, when I do a "mvn clean install", it generates an ear containing the two jars, one war and one sar from the other modules. All the file names contain the version, e.g., projectx-ear-2.0.0.ear,…
Bani
  • 1,149
  • 2
  • 10
  • 17
37
votes
5 answers

How can I store Java EE configuration parameters outside of an EAR or WAR?

I want to store configuration for a web project outside of the web project (ear/war file). The application shouldn't know in which container it's running (WebSphere/JBoss etc.). What is the best way to handle this? Is JNDI a clean way? If JNDI can…
Martin K.
  • 4,669
  • 7
  • 35
  • 49
33
votes
1 answer

What is .apt_generated folder in Web project?

What and why .apt_generated folder is created inside the Web Project within Eclipse or RAD workspace?
user1195192
  • 679
  • 3
  • 11
  • 19
33
votes
2 answers

Gradle: Could not find method providedCompile()

How are this and this build file able to use providedCompile? thufir@doge:~/NetBeansProjects/gradleEAR$ thufir@doge:~/NetBeansProjects/gradleEAR$ gradle clean FAILURE: Build failed with an exception. * Where: Build file…
Thufir
  • 8,216
  • 28
  • 125
  • 273
27
votes
1 answer

Different kind of Java EE projects

What is the different between different kind of Java EE projects in Eclipse WTP? There are: Application Client Project Connector Project Enterprise Application Project Utility Project
nanda
  • 24,458
  • 13
  • 71
  • 90
26
votes
4 answers

How to make maven place all jars common to wars inside the same EAR to EAR root?

We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This is becoming a problem, because the size of the ear is starting to grow out of…
Dan
  • 11,077
  • 20
  • 84
  • 119
26
votes
6 answers

Eclipse Blue, Maven: Project configuration is not up-to-date with pom.xml

I am using Eclipse Blue 10 & Maven 3 in my development environment. I generally import maven projects from SVN by following below path: File > Import> SVN > Checkout Projects from SVN Then import all maven projects: Right click on imported project…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
22
votes
4 answers

Example of a build.xml for an EAR that deploys in WebSphere 6

I'm trying to convince my providers to use ANT instead of Rational Application Development so anyone can recompile, recheck, redeploy the solution anyplace, anytime, anyhow. :P I started a build.xml for a project that generates a JAR file but…
ggasp
  • 1,490
  • 3
  • 15
  • 24
22
votes
2 answers

Gradle ear is putting JAR instead of WAR

I'm trying to build an ear using Gradle. I've my project tree like: /project | |--> /web-application | | | |--> /src (stuff of web app) | | | |--> build.gradle | |--> build-gradle |--> settings.gradle I'm trying to generate the ear…
rascio
  • 8,968
  • 19
  • 68
  • 108
21
votes
3 answers

Injecting a bean from a different Jar in Weld

I have two Jars A and B where A depends on B. Jar B has a single class: @ApplicationScoped public class MyManagedBean { private String user; public MyManagedBean(){ //Constructor necesary for CDI } @Inject public…
narduk
  • 964
  • 1
  • 9
  • 19
21
votes
2 answers

EAR vs separate EJB + WAR

What's the difference in deploying application as EAR (with 1 EJB and 1 WAR module) vs separate modules? I want to use GlassFish 3 web profile but it does not support EAR archive. Can I simply use EJB and WAR as separate modules? Any other options?
karolkpl
  • 2,189
  • 10
  • 39
  • 60
19
votes
6 answers

How to add a file to EAR META-INF folder - Maven

I want to move a startup MBEAN file (startup-client-service.xml) from my EJB >META-INF, to EAR> META-INF folder. I tried with the maven-resources-plugin plugin but it just copy the file from EJB >META-INF to Target in ear folder. But in built ear…
user2771655
  • 1,052
  • 3
  • 20
  • 38
18
votes
2 answers

Create complete EAR Project with Maven and Eclipse Helios

I read some articles about how to set up eclipse and maven to create a new empty ear project but all solutions weren't complete or are to old. I believe that I need to create three pom.xml files / or three projects: client project with the WEB-APP…
Hauke
  • 1,405
  • 5
  • 23
  • 44
18
votes
4 answers

How are Java applications deployed in the "real world"?

As a novice to the world of Java programming, this question has always boggled my mind. I first believed that all Java files were compacted into applets and then ran, but I soon realized that this isn't always the case. Could someone explain to me…
Tdorno
  • 1,571
  • 4
  • 22
  • 32
1
2 3
83 84