Guest User

Untitled

a guest
Jan 18th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. Building, Packaging, and Deploying Duke’s Bank Using Ant
  2.  
  3. 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:
  4.  
  5. ant
  6.  
  7. Run the following command to deploy dukesbank.ear:
  8.  
  9. ant deploy
  10.  
  11. This task calls the create-tables task to initialize the database tables.
  12.  
  13. deploy:
  14. [exec] Deprecated syntax, instead use:
  15. [exec] asadmin --user admin --passwordfile /home/ragini/javaeetutorial5/examples/common/admin-password.txt --host localhost --port 4848 deploy [options] ...
  16. [exec] Command deploy failed.
  17. [exec] Authentication failed for user: admin
  18. [exec] with password from password file: /home/ragini/javaeetutorial5/examples/common/admin-password.txt
  19. [exec] (Usually, this means invalid user name and/or password)
  20.  
  21. # Set the property javaee.home, using the path to your
  22. # GlassFish installation.
  23. # C:/Program Files/glassfish-v3 is the GlassFish v3 default installation
  24. # path on Windows.
  25. #
  26. javaee.home=/usr/local/glassfish-3.1.2.2
  27.  
  28. # Set the property javaee.tutorial.home to the location where you
  29. # installed the Java EE Tutorial bundle.
  30. #
  31. javaee.tutorial.home=/home/ragini/javaeetutorial5
  32.  
  33. # machine name (or the IP address) where the applications will be deployed.
  34. javaee.server.name=localhost
  35.  
  36. # port number where GlassFish applications are accessed by users
  37. javaee.server.port=8080
  38.  
  39. # port number where the Admin Console of GlassFish is available
  40.  
  41. javaee.adminserver.port=4848
  42.  
  43.  
  44. # Uncomment the property javaee.server.username,
  45. # and replace the administrator username of the app-server
  46. javaee.server.username=admin
  47.  
  48. # Uncomment the property javaee.server.passwordfile,
  49. # and replace the following line to point to a file that
  50. # contains the admin password for your app-server.
  51. # The file should contain the password in the following line:
  52. #
  53. # AS_ADMIN_PASSWORD=admin
  54. #
  55. # Notice that the password is adminadmin since this is
  56. # the default password used by GlassFish.
  57. #
  58. javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
  59.  
  60. appserver.instance=server
  61.  
  62. # Uncomment and set this property to the location of the browser you
  63. # choose to launch when an application is deployed.
  64. # On Windows and Mac OS X the OS default browser is used.
  65. #default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
  66.  
  67. # Database vendor property for db tasks
  68. # JavaDB is the default database vendor. See the settings in javadb.properties
  69. db.vendor=javadb
  70.  
  71. # Digital certificate properties for mutual authentication
  72. keystore=${javaee.tutorial.home}/examples/jaxws/simpleclient-cert/support/client_keystore.jks
  73. truststore=${javaee.home}/domains/domain1/config/cacerts.jks
  74. keystore.password=changeit
  75. truststore.password=changeit
Add Comment
Please, Sign In to add comment