This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ear" Watch "ear" New topic
Author

ear

Marko Debac
Ranch Hand

Joined: Aug 21, 2006
Posts: 121
Hi,

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

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
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?


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Luis Lopez Coronado
Greenhorn

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
Hi,

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' 'http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd'>
<sun-application>
<realm>myjdbcrealm</realm>
</sun-application>

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

Thanks,
I must try the solution now.

Regardes.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ear
 
Similar Threads
MissingResourceException
Websphere application packaging
when ibm-application-bnd.xmi will get created?
Can we include one EAR file into other EAR file
ant bug?