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.
Joined: Aug 21, 2006
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.