An appserver gotcha and work around
By fintanr on Dec 08, 2004
Got stung with this for a while today, so for the benefit of others.... I had just installed an internal development version of the Sun Java System Application Server and restored a SpecJAppServer2002 domain. Within in a domain you have a script startserv (and another stopserv) which are called by the asadmin commmand when you start and stop a domain respectively. So I've restored the domain, and go to startup my appserver
perf-n# ./asadmin start-domain -u admin spec2002-1 Starting Domain spec2002-1, please wait. Log redirected to /var/opt/SUNWappserver/domains/spec2002-1/logs/server.log. /var/opt/SUNWappserver/domains/spec2002-1/bin/startserv: cannot execute CLI156 Could not start the domain spec2002-1.But now my confusion starts
perf-n# ls -al /var/opt/SUNWappserver/domains/spec2002-1/bin/startserv -rwxr----- 1 ecuser nobody 3152 Dec 9 02:01 /var/opt/SUNWappserver/domains/spec2002-1/bin/startservLooks pretty executable to me.... and I can start it manually..... Anyway after a bit of fiddling around I figured out that the problem is that you need to have startserv with permissions of 755, a simple chmod 755 startserv and everything is back in business. In reality your very unlikely to hit this problem if you go through the normal steps for creating and restoring a domain, but as I said on the off chance that your taking a shortcut like me.