An appserver gotcha and work around


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/startserv
Looks 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.

Comments:

Post a Comment:
Comments are closed for this entry.
About

fintanr

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today