users@glassfish.java.net

Re: Glassfish app deployment with Derby

From: <forums_at_java.net>
Date: Tue, 17 Jan 2012 10:29:28 -0600 (CST)

Thanks for your reply Alexis. I was finally able to deploy the app!

Here are the steps I used:

  * Create the web app in netbeans (creates the .war file and
    glassfish-resources.xml).
  * Install glassfish on the target computer.
  * Copy the database files, war file and glassfish-resources.xml file to the
    target.
  * Run <glassfish>/bin/asadmin add-resources glassfish-resources.mxl (creates
    the JDBC resources).
  * Run <glassfish>/bin/asadmin start-database --dbhome <path to copied db>
    (tells the server where the database files are).
  * Run <glassfish>/bin/asadmin deploy <app>.war (deploys the app).

Thanks again for your help!

-Ed

 


--
[Message sent by forum member 'eshober']
View Post: http://forums.java.net/node/882700