Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Building, Packaging, and Deploying Duke’s Bank Using Ant
- To compile and package the enterprise beans, application client, and web client into dukesbank.ear, go to the tut-install/javaeetutorial5/examples/dukesbank/ directory of the tutorial distribution and execute the command:
- ant
- Run the following command to deploy dukesbank.ear:
- ant deploy
- This task calls the create-tables task to initialize the database tables.
- deploy:
- [exec] Deprecated syntax, instead use:
- [exec] asadmin --user admin --passwordfile /home/ragini/javaeetutorial5/examples/common/admin-password.txt --host localhost --port 4848 deploy [options] ...
- [exec] Command deploy failed.
- [exec] Authentication failed for user: admin
- [exec] with password from password file: /home/ragini/javaeetutorial5/examples/common/admin-password.txt
- [exec] (Usually, this means invalid user name and/or password)
- # Set the property javaee.home, using the path to your
- # GlassFish installation.
- # C:/Program Files/glassfish-v3 is the GlassFish v3 default installation
- # path on Windows.
- #
- javaee.home=/usr/local/glassfish-3.1.2.2
- # Set the property javaee.tutorial.home to the location where you
- # installed the Java EE Tutorial bundle.
- #
- javaee.tutorial.home=/home/ragini/javaeetutorial5
- # machine name (or the IP address) where the applications will be deployed.
- javaee.server.name=localhost
- # port number where GlassFish applications are accessed by users
- javaee.server.port=8080
- # port number where the Admin Console of GlassFish is available
- javaee.adminserver.port=4848
- # Uncomment the property javaee.server.username,
- # and replace the administrator username of the app-server
- javaee.server.username=admin
- # Uncomment the property javaee.server.passwordfile,
- # and replace the following line to point to a file that
- # contains the admin password for your app-server.
- # The file should contain the password in the following line:
- #
- # AS_ADMIN_PASSWORD=admin
- #
- # Notice that the password is adminadmin since this is
- # the default password used by GlassFish.
- #
- javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
- appserver.instance=server
- # Uncomment and set this property to the location of the browser you
- # choose to launch when an application is deployed.
- # On Windows and Mac OS X the OS default browser is used.
- #default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
- # Database vendor property for db tasks
- # JavaDB is the default database vendor. See the settings in javadb.properties
- db.vendor=javadb
- # Digital certificate properties for mutual authentication
- keystore=${javaee.tutorial.home}/examples/jaxws/simpleclient-cert/support/client_keystore.jks
- truststore=${javaee.home}/domains/domain1/config/cacerts.jks
- keystore.password=changeit
- truststore.password=changeit
Add Comment
Please, Sign In to add comment