users@glassfish.java.net

Re: Problems installing Glassfish on Ubuntu

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Dec 2007 18:33:19 PST

If I start from a clean ubuntu machine with no Glassfish installations, after I install Glassfish using the jar file (rather than apt-get) the only file on the entire disk named "asadmin" is the one under /glassfish/bin. When I try go to the directory and try to execute a command such as "asadmin start-domain domain1" it tells me asadmin is not installed. If I open that file it contains:

#!/bin/sh
#
# Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#

. "/root/glassfish/config/asenv.conf"

LD_LIBRARY_PATH="$AS_NSS":"$AS_INSTALL/lib":"$AS_ICU_LIB":"$LD_LIBRARY_PATH";export LD_LIBRARY_PATH

cleanup()
{
  stty echo
  exit 1;
}

trap 'cleanup' 1 2 3 9 15

"$AS_JAVA"/bin/java -Dcom.sun.aas.instanceName=server -Djava.library.path="$AS_NSS":"$AS_INSTALL/lib":"$AS_ICU_LIB" -Dcom.sun.aas.configRoot="$AS_CONFIG" -Djava.endorsed.dirs="$AS_INSTALL/lib/endorsed" -Dcom.sun.aas.processLauncher="SE" -cp "$AS_DERBY_INSTALL/lib/derby.jar":"$AS_INSTALL/jbi/lib/jbi-admin-common.jar":"$AS_INSTALL/lib":"$AS_INSTALL/lib/appserv-rt.jar":"$AS_INSTALL/lib/appserv-ext.jar":"$AS_INSTALL/lib/javaee.jar":"$AS_INSTALL/lib/appserv-se.jar":"$AS_INSTALL/lib/admin-cli.jar":"$AS_INSTALL/lib/appserv-admin.jar":"$AS_INSTALL/lib/commons-launcher.jar":"$AS_INSTALL/lib/install/applications/jmsra/imqjmsra.jar" -Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl com.sun.enterprise.cli.framework.CLIMain "${@}"
[Message sent by forum member 'kevinmacdonald' (kevinmacdonald)]

http://forums.java.net/jive/thread.jspa?messageID=250677