This page contains scripts, links to other sites and "howto" docs that the staff at Open Technologies Inc. commonly use. You are free to use this material as you wish, but we take NO responsibility for your proper or improper use of this material. See Limitation of Liability below. -------------------------------------------------------------------------------- Description : A short how to on converting GlassFish into SMF -------------------------- Created : DR 09/10/09 -------------------------- 1) Create a password file in domain1 directory # vi /opt/SUNWappserver/domains/domain1/passwordfile "passwordfile" [New file] AS_ADMIN_USER=admin AS_ADMIN_PASSWORD= AS_ADMIN_MASTERPASSWORD=changeit 2) Create the SMF service with this new password file # /opt/SUNWappserver/bin/asadmin create-service --passwordfile /opt/SUNWappserver/domains/domain1/passwordfile /opt/SUNWappserver/domains/domain1 The Service was created successfully. Here are the details: Name of the service:application/SUNWappserver/domain1 Type of the service:Domain Configuration location of the service:/opt/SUNWappserver/domains Manifest file location on the system:/var/svc/manifest/application/SUNWappserver/domain1_opt_SUNWappserver_domains/Domain-service-smf.xml. The service could be enabled using svcadm command. Command create-service executed successfully. 3) Stop any instances if they are running, and enable the service: # /opt/SUNWappserver/bin/asadmin stop-domain domain1 # svcs -a | grep domain1 offline 9:24:43 svc:/application/SUNWappserver/domain1:default # svcadm enable svc:/application/SUNWappserver/domain1:default -------------------------------------------------------------------------------- LIMITATION OF LIABILITY TO THE FULL EXTENT PERMITTED BY LAW, HOST IS NOT LIABLE TO YOU OR ANY OTHER INDIVIDUAL OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES RELATED TO OR ARISING OUT OF ANY USE OF, ACCESS TO, OR INABILITY TO ACCESS THIS WEBSITE, CONTENT, SERVICES, OR OF ANY OTHER LINKED WEBSITE OR EXTERNAL RESOURCE INCLUDING, WITHOUT LIMITATION, ANY LOST PROFITS, LOST SALES, LOST REVENUE, LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA EVEN IF OPEN TECHNOLOGIES INC. IS EXPRESSLY ADVISED OR AWARE OF THE POSSIBILITY OF SUCH DAMAGES OR LOSSES. YOU ASSUME ALL RISK FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM OBTAINING ANY CONTENT FROM THE WEBSITE, INCLUDING ANY DAMAGES RESULTING FROM COMPUTER VIRUSES, WORMS, OR OTHER ITEMS OF A DESTRUCTIVE NATURE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU.