File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 42919
    
  68
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
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ear