Quick answer to Robert. The Servoy_Server.sh script appears to be identical with yours.
Time for a thorough review.
The Mac is a 466Mhz PowerPC G4, 512Mb SDRAM, running 10.4.5. Java is J2SE 5.0 release 3. The machine is refurbished, less than a week in my hands. The OS is freshly installed. The hard drive is new. Until last Wednesday this machine had never seen Servoy or Sybase ASA.
First thing I did was downloaded the installer for Servoy 2.2.4. Installed it in the default location. On booting into Developer I discovered Servoy couldn’t find its repository. Eventually discovered that if I quit Servoy (but not Sybase) and then launched Servoy Developer a second time it would find its repository. A timing issue, Servoy isn’t waiting long enough for Sybase to come up to speed. I’d like to get this problem fixed, but running Developer is NOT the main purpose of this Mac. However this timing issue could be a factor with running Servoy Server. Don’t know for sure, just a possible factor at this stage.
Next installed my seven_office.db, the 7Office solution, added the Servoy license, etc. Ran Developer again and everything in 7Office looked normal.
Next reviewed my notes from setting up an Xserve last spring as a Servoy Server. I had major problems that time as well. At the time I was still relatively green with Servoy, but with help from both Marcel Trapman and Robert Ivens, and a local friend we eventually got it running. To this day I don’t know what turned the trick, but I do know that it works reliably and that it’s not doing it by running StartupItems in the way Marcel describes. But it works. So I haven’t visited it, haven’t fiddled with it this past week. The Xserve will continue to run as the production server. This G4 will be an independent server for the 7Office demo.
The major highlights of my notes from last spring was Marcel’s Servoy Magazine tutorial. I also discovered Robert’s sample files were still available for download. I then followed Marcel’s tutorial, but used Bob’s files. Just dragged them into place.
Next discovered there was a permissions problem with the files in the /Library/StartupItems/Servoy/ directory. After some additional research I discovered how to change those (don’t have that technique memorized because I do that at most, if that, once a year). Sent Marcel a proposed ammendment for his tutorial on this theme.
All right, try it again. Nothing, nothing at all, although permissions appear to be correct. I then tried Nicola Gervasi’s recommendation (earlier in this thread).
sudo /Library/StartupItems/Servoy/Servoy start
```It seems to start Tomcat but it doesn't start Sybase. This time I'd really rather have things working in the standard, automatic and reliable way than jury rigging a workaround solution.
Here then are various diagnostics and screenshots.
Permissions for Startup Items:
> Last login: Sun Feb 19 15:22:08 on ttyp1
> Welcome to Darwin!
> s-power-mac-g4:~ 466$ ls -al /Library/StartupItems/
> total 16
> drwxr-xr-x 4 root wheel 136 Feb 17 09:31 .
> drwxrwxr-t 43 root admin 1462 Feb 17 09:29 ..
> -rw-r--r-- 1 root wheel 6148 Feb 17 09:37 .DS_Store
> drwxr-xr-x 5 root wheel 170 Feb 17 09:35 Servoy
> s-power-mac-g4:~ 466$ ls -al /Library/StartupItems/Servoy/
> total 32
> drwxr-xr-x 5 root wheel 170 Feb 17 09:35 .
> drwxr-xr-x 4 root wheel 136 Feb 17 09:31 ..
> -rw-r--r-- 1 root wheel 6148 Feb 17 09:40 .DS_Store
> -rwxr-xr-x 1 root wheel 416 Dec 12 2004 Servoy
> -rwxr--r-- 1 root wheel 237 Dec 12 2004 StartupParameters.plist
> s-power-mac-g4:~ 466$
Permissions for /Applications/Servoy/
> s-power-mac-g4:~ 466$ cd /Applications/Servoy/
> s-power-mac-g4:/Applications/Servoy 466$ ls -al
> total 80
> drwxr-xr-x 20 466 admin 680 Feb 20 08:47 .
> drwxrwxr-x 30 root admin 1020 Feb 16 16:32 ..
> -rw-r--r-- 1 466 admin 6148 Feb 20 08:47 .DS_Store
> -rw-r--r-- 1 466 admin 6525 Feb 16 17:20 .log.txt
> drwxr-xr-x 4 466 admin 136 Apr 11 2003 Servoy.app
> drwxr-xr-x 3 466 admin 102 Feb 16 16:33 Uninstaller
> drwxr-xr-x 8 466 admin 272 Feb 16 16:33 beans
> drwxr-xr-x 15 466 admin 510 Feb 16 16:47 database
> drwxr-xr-x 5 466 admin 170 Feb 16 16:33 docs
> drwxr-xr-x 6 466 admin 204 Feb 16 16:32 drivers
> drwxr-xr-x 4 466 admin 136 Feb 16 16:33 lafs
> drwxr-xr-x 31 466 admin 1054 Feb 16 16:33 lib
> drwxr-xr-x 27 466 admin 918 Feb 16 16:33 plugins
> drwxr-xr-x 8 466 admin 272 Feb 17 09:46 server
> -rw-r--r-- 1 466 admin 5354 Feb 16 17:20 servoy.properties
> -rw-r--r-- 1 466 admin 4832 Feb 7 10:00 servoy_developer.jar
> -rwx------ 1 466 admin 773 Dec 12 2004 servoy_server.sh
> drwxr-xr-x 3 466 admin 102 Feb 16 16:33 solutions
> drwxr-xr-x 17 466 admin 578 Feb 16 16:49 sybase_db
> -rwxr-xr-x 1 466 admin 607 Jul 6 2004 unmodified servoy_server.sh
> s-power-mac-g4:/Applications/Servoy 466$
Permissions for servoy_server.sh look suspicious. Not sure what they should be.
Here's the contents of various files. I may have made an error in copying but they're all from Robert Ivens.
/Library/StartupItems/Servoy/Servoy :
> #!/bin/sh
> ##
> # Servoy Application Server
> ##
> . /etc/rc.common
> StartService () {
> ConsoleMessage "Starting Servoy Application Server..."
> cd /Applications/Servoy/
> . /Applications/Servoy/servoy_server.sh&
> }
> StopService()
> {
> ConsoleMessage "In the future Stop Servoy Application Server here"
> }
> RestartService ()
> {
> ConsoleMessage "Restarting Servoy Application Server..."
> StopService
> StartService
> }
> RunService "$1"
/Library/StartupItems/Servoy/StartupParameters.plist :
> {
> Description = "Servoy Application Server";
> Provides = ("Servoy");
> Requires = ("Resolver");
> Preference = "Late";
> Messages =
> {
> start = "Starting Servoy Application Server";
> stop = "Stopping Servoy Application Server";
> };
> }
/Applications/Servoy/servoy_server.sh :
> #!/bin/sh
>
> cd /Applications/Servoy
> export DYLD_LIBRARY_PATH=/Applications/Servoy/sybase_db
> /Applications/Servoy/sybase_db/dbsrv9 @/Applications/Servoy/sybase_db/sybase.config &
>
> while true
> do
> java -Djava.awt.headless=true -classpath .:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-pool.jar:lib/activation.jar:lib/antlr.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/compat141.jar:lib/jh.jar:lib/jndi.jar:lib/js.jar:lib/jta.jar:lib/mail.jar:lib/jug.jar:lib/jdbc2_0-stdext.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/xerces.jar:lib/server-bootstrap.jar:lib/commons-fileupload-1.0.jar:lib/commons-logging.jar:lib/hibernate2.jar com.servoy.j2db.server.ApplicationServer "$@"
> EXITCODE=$?
> if [ "$EXITCODE" != 99 ]; then exit $EXITCODE; fi
> done
/Applications/Servoy/sybase_db/sybase.config :
> -ti 0 -x tcpip{dobroadcast=no} -ud -qs -qw -o sybase_db/sybase_log.txt
> database/servoy_repository.db
> database/user_data.db
> database/example.db
> database/log_data.db
> database/seven_office.db
> database/crm.db
Now shut down, let it settle for a few minutes. Then startup again, give it a few minutes to come up to speed and test.
After a restart I find that dbsrv9 __*is*__ running but I'm **unable to access servoy-admin**.
Console reads:
> Mac OS X Version 10.4.5 (Build 8H14)
> 2006-02-20 09:37:21 -0500
> 2006-02-20 09:37:27.477 SystemUIServer[171] lang is:en
I now run Nicola Gervasi's kickstart again.
sudo /Library/StartupItems/Servoy/Servoy start
> Last login: Mon Feb 20 09:37:15 on console
> Welcome to Darwin!
> s-power-mac-g4:~ 466$ sudo /Library/StartupItems/Servoy/Servoy start
> Password:
> Starting Servoy Application Server...
> s-power-mac-g4:~ 466$ Loading servoy.properties from /Applications/Servoy/servoy.properties
> Loading - Done
> Using RMI registry on port 1099
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
Wait a few minutes and test. I'm now able to launch <a class="postlink" href="http://192.168.2.11:8080/servoy-admin">http://192.168.2.11:8080/servoy-admin</a>
This works, after a fashion, but has to be manually forced. Hardly elegant or user friendly.
The only suspect I've spotted are the permissions for servoy_server.sh. Are they correct? What should they be?