File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "ear" Watch "ear" New topic


Marko Debac
Ranch Hand

Joined: Aug 21, 2006
Posts: 121

how can we build ear if we have normaly web application created with netbeans?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Web applications are normally packaged as war files. ear files are used for full-blown JEE applications (e.g. those containing EJBs). Why do you want an ear file for a web app?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

You can go back and change your post to add a more meaningful subject by clicking the .

[Asking smart questions] [About Bear] [Books by Bear]
Luis Lopez Coronado

Joined: May 16, 2008
Posts: 6
For create the ear in netbeans, you need to create a Enterprise Aplication besides your web aplication, and add your web aplication (check the create web aplication module and put the name of your web aplication), when you build the enterprise aplication your war file packaged in ear file.
But as Ulf said, you dont need de ear file if your aplication is only a web aplication.
Marko Debac
Ranch Hand

Joined: Aug 21, 2006
Posts: 121

I was having problem with saying web app to use my jdbcRealm for authentication module; not to put jdbcRealm to be default realm puting it manualy at SJSAS, but instead I need specify the realm in sun-application.xml who is part of the ear, as below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN' ''>

Than default realm at SJSAS can be some other realm, but my app will still use myjdbcRealm.

I must try the solution now.

I agree. Here's the link:
subject: ear
It's not a secret anymore!