This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Deploying servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Deploying servlets" Watch "Deploying servlets" New topic

Deploying servlets

KRK Gowda
Ranch Hand

Joined: Nov 02, 2004
Posts: 132
Hi All,
Can anybody tell me how to package servlets and other files into .ear file in UNIX.

Thanks and Regards,
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Is there a particular development tool that you're using? Any development tool will provide facilities for exporting code as an EAR.

There's nothing magical about an ear. It is simply a zip file, or jar file, with a .ear extension. You can actually create an ear with the jar utility from the JDK.

The big thing about an ear is that it must conform to the standard for creating an ear, such as the appropriate deployment descriptors and war and jar files contained within.

-Cameron McKenzie
I agree. Here's the link:
subject: Deploying servlets