[nbusers] EAR with multiple WARs but single web.xml

  • From: Grover Blue < >
  • To:
  • Subject: [nbusers] EAR with multiple WARs but single web.xml
  • Date: Wed, 29 Feb 2012 12:17:02 -0500
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates as permitted sender) smtp.mail= ; dkim=pass header.i=

Hi, I have a question about how to include more than one WAR in an EAR project.  This is my scenario.

I have the following EAR probjects:

... CommonWeb.WAR
... Client-01-EJB.jar
... lib/*.jar

... CommonWeb.WAR
... Client-02-EJB.jar
... lib/*.jar

There are two problems I'm running into.

First, I can't deploy both Client-01-EAR and Client-02-EAR to the same server because the ContextRoot defined in CommonWeb.WAR conflicts with itself between both EAR projects.

Second, I'd like to add additional JSF pages, servlets, managed beans, etc, to either of the Client EAR projects, but not include them in the CommonWeb WAR.  In order words, I'd like a secondary WAR for either client, but simply extend the web.xml and faces-config.xml in CommonWeb.WAR with it's additional config.

Is any of this possible?

[nbusers] EAR with multiple WARs but single web.xml

Grover Blue 02/29/2012

[nbusers] Re: EAR with multiple WARs but single web.xml

Daoud Abdelmonem Faleh 02/29/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm