Can't run asadmin
Hi,
After successfully (according to the log file, anyway) installing the appserver (v7) on a Solaris 8 box, I get the following stacktrace when trying to execute 'asadmin start-appserv':
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/logging/LogDomains
at com.iplanet.ias.tools.cli.BaseLifeCycleCommand.unsetLicenseLogger(BaseLifeCycle Command.java:780)
at com.iplanet.ias.tools.cli.StartAppServCommand.runCommand(StartAppServCommand.ja va:58)
at com.iplanet.ias.tools.cli.MultiProcessCommand.processLine(MultiProcessCommand.j ava:411)
at com.iplanet.ias.tools.cli.MultiProcessCommand.runCommand(MultiProcessCommand.ja va:240)
at com.iplanet.ias.tools.cli.IasAdminMain.invokeCommand(IasAdminMain.java:104)
at com.iplanet.ias.tools.cli.IasAdminMain.main(IasAdminMain.java:43)
On a (possibly) related note, when trying to run 'asadmin install-license', I get the following stacktrace:
xception in thread "main" java.lang.NoClassDefFoundError: com/iplanet/ias/admin/server/core/channel/RMIClient
at com.iplanet.ias.tools.cli.BaseLifeCycleCommand.isInstanceAlreadyStarted(BaseLif eCycleCommand.java:610)
at com.iplanet.ias.tools.cli.BaseLifeCycleCommand.isAnyInstanceInDomainStarted(Bas eLifeCycleCommand.java:644)
at com.iplanet.ias.tools.cli.InstallLicenseCommand.checkIfServersAreRunning(Instal lLicenseCommand.java:99)
at com.iplanet.ias.tools.cli.InstallLicenseCommand.runCommand(InstallLicenseComman d.java:66)
at com.iplanet.ias.tools.cli.MultiProcessCommand.processLine(MultiProcessCommand.j ava:411)
at com.iplanet.ias.tools.cli.MultiProcessCommand.runCommand(MultiProcessCommand.ja va:240)
at com.iplanet.ias.tools.cli.IasAdminMain.invokeCommand(IasAdminMain.java:104)
at com.iplanet.ias.tools.cli.IasAdminMain.main(IasAdminMain.java:43)
Apparently I'm missing one or more of the jar files I need. I'm not sure whether they were simply not installed, or if the asadmin script is not pointing to the right place for the file. I've checked the /etc/opt/SUNWappserver7/asenv.conf file, and everything -appears- to be ok, although I don't know for certain.
Any hints would be greatly appreciated....
Brendan
[2288 byte] By [
706274] at [2007-11-25 8:28:10]

Could you please provide the content of <install_dir>/install.log file and /var/sadm/install/logs/Sun_ONE_Application_Server_install.<timestamp> file. Based on this output, it seems
that SUNWascmo package files didn't get completely installed.
Could you also run 'pkginfo -l SUNWascmo' and supply the output.
Thank you.
Hi,
Here's the contents of the install.log file:
INFO - Start core server configuration.
INFO - Domain successfully created
INFO - Server instance successfully created
WARNING - license activation returned following exception: abnormal subprocess termination
INFO - End core server configuration.
INFO - Start samples configuration.
INFO - End samples configuration.
And here is the output from pkginfo -l SUNWascmo:
PKGINST: SUNWascmo
NAME: Sun ONE Application Server unbundled (common)
CATEGORY: system
ARCH: sparc
VERSION: 7.0,REV=2002.10.08.16.47
BASEDIR: /export/SUNWappserver7
VENDOR: Sun Microsystems, Inc.
DESC: Application Server common components
PSTAMP: korea20021008164747
INSTDATE: Oct 31 2002 18:21
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES:4 installed pathnames
2 directories
16493 blocks used (approx)
I will gladly supply you with the contents of the file from /var/sadm if you can send me an email address to send it to, as it's approximately 300K, and posting it here doesn't seem appropriate.
Thanks,
Brendan
OK, forget about fine grained log file for the moment, package apparently did get installed. So, based on this
you selected /export/SUNWappserver7 as your installation directory. Could you check /export/SUNWappserver7/lib directory and try to find appserv-ext.jar and appserv-rt.jar there.
/export/SUNWappserver7/bin/asadmin is the asadmin utility you should be using and it should contain following line:
. /etc/opt/SUNWappserver7/asenv.conf(if you selected default configuration directory)
and /etc/opt/SUNWappserver7/asenv.conf should in its turn contain:
AS_INSTALL=/export/SUNWappserver7
Funny thing is that admin client jar file is obviously being found. Could you also provide the output of 'pkginfo -l SUNWasaco' , just to check for possible mismatch in installation locations. Did you have any previous appserver installations (beta evaluation for instance) installed on your system?
Thank you.
Hello again,
I think I found at least a problem, and that is that there was a failed previous install. After cleaning up and reinstalling -- by the way, a whole bunch of entries were left in the 'productregistry' file after using pkgrm to remove the installed packages -- I was able to successfully reinstall and it now appears that everything is installed properly.
However, that being said, when I try now to run 'asadmin start-appserv' I get the following:
# bin/asadmin start-appserv
Could not start the instance: domain1:admin-server
server failed to start: abnormal subprocess termination
Could not start the instance: domain1:server1
server failed to start: abnormal subprocess termination
Could not start one or more instances in the domain : domain1
Could not start one or more domains
There appears to be no log file where I can investigate this failure at all. I've looked everywhere I could think of and have found nothing.
Is there anything else you can suggest?
Brendan
Regarding leftover entries in /var/sadm/install/produtctregistry file: these entries are not modified it you run
pkgadd/pkgrm commands outside product installer/uninstaller since they are used only by installer
framework - basically there are two levels of package registration: system registration which is using Solaris
specific package housekeeping files (/var/sadm/pkg directory) and another one specific to Sun ONE installer
framework which is registering installed components and packages in /var/sadm/install/productregistry file.
As for server startup troubleshooting, log files for administration server and default server instance can be found under:
/var/opt/SUNWappserver7/domains/domain1/admin-server/logs/server.log
/var/opt/SUNWappserver7/domains/domain1/server1/logs/server.log
(adjust the location if you used custom domain configuration value).
Hi,
Thanks for the information. It's now clear why it's failing -- in the server logs (both of them) I have an error indicating that I'm running on a V8 machine, when a V9 machine is required for the server. I don't recall seeing this in any of the documentation that I've read, but so be it.
Brendan
Hi,
One final note. You might want to fix the release notes to indicate that you need to be running a SPARC v9 in order to run the server. This is not mentioned anywhere that I was able to find. The only things mentioned there are available disk space and memory (and Solaris version).
Brendan