Hi – I’m a newbie to Servoy 5 and serving Servoy on a macintosh, FYI – I know plenty about macs in general and windows Servoy service for 3.5.x.
So, with those two handicaps in play, I’ve scoured the forums, Servoy magazine postings, Servoy guy, and everything else I can find about running Servoy 5.x (i’m using 5.2 b3) as a service on a mac with no avail. I don’t need it to run automatically – I just need to demo it to three users for a week or two so I can get approval to move us out of 3.5.12. Help!
I’ve tried making all the text docs, chmoding, as Marcel describes and lots of other people’s suggestions – using three different macs without firewalls in lots of locations. Just today I got it to run for 20 minutes, but something hung on import of the new solution into the servoy-admin page and after an hour (this solution works fine in developer) I restarted the machine. It won’t come back up. Isn’t there something easy to do here? Why can’t we just serve to two people from developer like before?
Just dragging the servoy_server.sh to the terminal with or without an ampersand “&” added at the end does not seem to work – unless it’s taking an hour to start (a theory I had for a while). When I drag it terminal resonds [1] 397 and returns me to the command line. I do not close terminal. Should that work?
The easiest thing you can do to see show some success is to just create a new ‘Users Deamon’ and follow the screenshot.
Obviously you have to use your own path to the servoy shell script.
I don’t (really) remember but I don’t think I have made modifications to the shell script.
I tried many time to install Servoy as a service in a Mac (with MySql) with no success.I also tried Lingon to create the daemon. But this is not working too. I suspect that Servoy is launched before the DB is up and running, but I don’t know how to queue the operations. Any suggestion?
Marcel - I installed Lignon, set it up properly, tried all kinds of settings. Nothing responds at http://localhost:8080 – page not found. Any ideas? So frustrated. Thanks so much for trying!
Is Servoy installed in the root and not under a user?
Check out the below shell script. I don’t know if it is different but this is what it looks like here…
The funny part is that I did not do anything special. It worked after a couple of minutes…
#!/bin/sh
while true
do
java -Djava.awt.headless=true -Xmx256m -Xms64m -XX:MaxPermSize=128m -classpath .:lib/ohj-jewt.jar:lib/MRJAdapter.jar:lib/compat141.jar:lib/commons-codec.jar:lib/commons-httpclient.jar:lib/activation.jar:lib/antlr.jar:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-fileupload-1.2.1.jar:lib/commons-io-1.4.jar:lib/commons-logging.jar:lib/commons-pool.jar:lib/dom4j.jar:lib/help.jar:lib/jabsorb.jar:lib/hibernate3.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/jdbc2_0-stdext.jar:lib/jmx.jar:lib/jndi.jar:lib/js.jar:lib/jta.jar:lib/BrowserLauncher2.jar:lib/jug.jar:lib/log4j.jar:lib/mail.jar:lib/ohj-jewt.jar:lib/oracle_ice.jar:lib/server-bootstrap.jar:lib/servlet-api.jar:lib/wicket-extentions.jar:lib/wicket.jar:lib/wicket-calendar.jar:lib/slf4j-api.jar:lib/slf4j-log4j.jar:lib/joda-time.jar:lib/rmitnl.jar:lib/networktnl.jar com.servoy.j2db.server.ApplicationServer "$@" 1>> server.log 2>> server.log
EXITCODE=$?
if [ "$EXITCODE" != 99 ]; then exit $EXITCODE; fi
done
The console gives a little more info here – it just keeps saying (where com.servoy.launcher is what I named my lingon process):
(com.servoy.launcher) Throttling respan: Will start in 10 Seconds
(com.servoy.launcher 455) Exited with exit code: 1
(com.servoy.launcher) Throttling respan: Will start in 10 Seconds
(com.servoy.launcher 458) Exited with exit code: 1
(com.servoy.launcher) Throttling respan: Will start in 10 Seconds
(com.servoy.launcher 461) Exited with exit code: 1
(com.servoy.launcher) Throttling respan: Will start in 10 Seconds
(com.servoy.launcher 4648) Exited with exit code: 1
I’m trying to launch Servoy Server 5.1.4 on Snow Leopard and getting
Jun 23 12:20:45 Fido com.apple.launchd[1] (ServoyServer5[68397]): Exited with exit code: 127
Jun 23 12:20:45 Fido com.apple.launchd[1] (ServoyServer5): Throttling respawn: Will start in 10 seconds
OK, now a ‘server.log’ has appeared in the ‘application_server’ directory. Apparently I don not have a repository server. Do I need one with Servoy 5.1.4? I can’t find any documentation on how to set this up…
Exception in thread "main" com.servoy.j2db.persistence.RepositoryException: Could not find repository server: 'repository_server'
at com.servoy.j2db.persistence.ServerManager.getRepositoryServer(ServerManager.java:403)
at com.servoy.j2db.server.ApplicationServer.main(ApplicationServer.java:65)
OK. I have now found a way of exporting a solution in the old .servoy format from the developer and it ended up in the solutions directory of the server.
So I will create a repository server and try to import.
I now have a repository server in ‘Database Servers’ on localhost:8080 when Developer is running, but there does not seem to be any way of importing solutions. My ‘Solutions’ page says:
'Could not load solution list: No repository was found. Please check if the server is started in Team Developer mode, or if the repository server is started.
swingman:
I now have a repository server in ‘Database Servers’ on localhost:8080 when Developer is running, but there does not seem to be any way of importing solutions. My ‘Solutions’ page says:
'Could not load solution list: No repository was found. Please check if the server is started in Team Developer mode, or if the repository server is started.
In 5.x you can import in repository only when running application server(so, not from developer) and startRepositoryAsTeamProvider is true (when it is false you will see the above warning). You can also import in developer and commit in repository.
I have switched ‘startRepositoryAsTeamProvider’ back on. But still no luck starting the Server. It exits with code 1. This may be because my repository database is completely empty, but how do I get Servoy to create a repository inside the empty database?
I my servoy_repository connection had the wrong name, so once I fixed it, developer offered to initialise the repository. I have managed to run the server by
cd /Applications/Servoy_5/application_server/
sudo /bin/sh servoy_server.sh &