A quick start guide for the server from VMWare

You can find an existing Sun App Server image from readhat here:  http://www.vmware.com/vmtn/appliances/directory/183. These instructions will allow you to quickly get a VMWare image up and running. Alternatively, there will shortly be a VMWare image available here that already has implemented these instructions:

  1. Load the VMWare image.
  2. Login as root.
  3. Modify the ethernet device to use your appropriate dynamic or static ip. If you are using a dynamic IP, the follow settings can be used:
    modify /etc/sysconfig/network-scripts/ifcfg-eth0 to:
    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=dhcp
    TYPE=Ethernet
    
  4. Reboot the vm machine.
  5. Overwrite the security policy file of domain1 to allow for read/write access by the SRCDataStore.war file. You can copy the file from svn in /etc/server.policy to overwrite the file in /opt/SUNWappserver/domains/domain1/config/server.policy. Alternatively, you can simply add the following lines to the end of the file:
    grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/SRCDataStore/-" {
      permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete";
    };
    
    
  6. Recommended: Change the Sun App Server password. I have not yet found an easy way to do this, one solution can be found here:  http://blogs.sun.com/fireman/entry/how_to_reset_admin_password.
  7. Start sun app server by calling /opt/SUNWappserver/bin/asadmin start-domain domain1.

If you want to build the WAR file from a command line and deploy, please follow the second half of the instructions for Creating and Deploying the Servlet Web Archive from a command line. If you want to build the WAR file in eclipse, please follow the instructions for Creating and Deploying the Servlet Web Archive from Eclipse