Mac Server Service

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Mac Server Service

Postby ellenmeserow » Tue Jun 22, 2010 12:28 am

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?
ellen escarcega (formerly meserow)
meserow design
Servoy 2019 9
MSSQL 2017
Windows AWS Servers
ellenmeserow
 
Posts: 366
Joined: Sat Aug 07, 2004 10:18 pm
Location: Seattle, WA USA

Re: Mac Server Service

Postby IT2Be » Tue Jun 22, 2010 6:21 am

I use MySQL and it comes (and starts up) with its own startup script and preference panel so I have not done anything for that.

I first installed Lingon on my OS X 10.6 Server.
Lingon is a GUI app that makes creating, maintaining and enabling/disabling deamons easy.

Under 'Users Deamons' I have an xml (a plist) that looks like the screenshot or like below in Expert mode.

com.servoy.server.JPG

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Disabled</key>
   <false/>
   <key>KeepAlive</key>
   <false/>
   <key>Label</key>
   <string>com.servoy.server</string>
   <key>ProgramArguments</key>
   <array>
      <string>/Applications/Additional/CRM/application_server/servoy_server.sh</string>
   </array>
   <key>QueueDirectories</key>
   <array/>
   <key>RunAtLoad</key>
   <true/>
   <key>WatchPaths</key>
   <array/>
   <key>WorkingDirectory</key>
   <string>/Applications/Additional/CRM/application_server/</string>
</dict>
</plist>

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.

Hope this helps!
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Mac Server Service

Postby rioba » Tue Jun 22, 2010 9:33 am

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?
rioba
 
Posts: 242
Joined: Mon Aug 08, 2005 4:26 pm

Re: Mac Server Service

Postby IT2Be » Tue Jun 22, 2010 3:36 pm

Maybe create your own mysql deamon (it should be possible to copy/past the current mysql settings) and put the file before your servoy file.

I use the default OSX 10.6 Server MySQL setup and did not need to modify anything btw.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Mac Server Service

Postby ellenmeserow » Tue Jun 22, 2010 4:47 pm

Im using SQL Server on another machine, and it is running all the time...
ellen escarcega (formerly meserow)
meserow design
Servoy 2019 9
MSSQL 2017
Windows AWS Servers
ellenmeserow
 
Posts: 366
Joined: Sat Aug 07, 2004 10:18 pm
Location: Seattle, WA USA

Re: Mac Server Service

Postby ellenmeserow » Tue Jun 22, 2010 6:26 pm

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!
ellen escarcega (formerly meserow)
meserow design
Servoy 2019 9
MSSQL 2017
Windows AWS Servers
ellenmeserow
 
Posts: 366
Joined: Sat Aug 07, 2004 10:18 pm
Location: Seattle, WA USA

Re: Mac Server Service

Postby IT2Be » Tue Jun 22, 2010 7:36 pm

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...
Code: Select all
#!/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
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Mac Server Service

Postby ellenmeserow » Tue Jun 22, 2010 8:40 pm

The console gives a little more info here -- it just keeps saying (where com.servoy.launcher is what I named my lingon process):

Code: Select all
(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
ellen escarcega (formerly meserow)
meserow design
Servoy 2019 9
MSSQL 2017
Windows AWS Servers
ellenmeserow
 
Posts: 366
Joined: Sat Aug 07, 2004 10:18 pm
Location: Seattle, WA USA

Re: Mac Server Service

Postby IT2Be » Tue Jun 22, 2010 10:43 pm

Hmm, are you sure your settings are correct?

Is your service really not running?
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Mac Server Service

Postby swingman » Wed Jun 23, 2010 1:26 pm

I'm trying to launch Servoy Server 5.1.4 on Snow Leopard and getting

Code: Select all
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


My launchd script is

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Disabled</key>
   <false/>
   <key>Label</key>
   <string>ServoyServer5</string>
   <key>OnDemand</key>
   <false/>
   <key>ProgramArguments</key>
   <array>
      <string>/bin/sh</string>
      <string>/Applications/Servoy_5/application_server/servoy_server.sh</string>
   </array>
   <key>RunAtLoad</key>
   <true/>
</dict>
</plist>


What's an error 127?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1474
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Mac Server Service

Postby swingman » Wed Jun 23, 2010 1:44 pm

Now I have managed to get an Error 1.

Where is the Servoy Server log located? I only seem to find the developer log.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1474
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Mac Server Service

Postby swingman » Wed Jun 23, 2010 1:47 pm

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...

Code: Select all
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)
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1474
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Mac Server Service

Postby swingman » Wed Jun 23, 2010 2:00 pm

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.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1474
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Mac Server Service

Postby swingman » Wed Jun 23, 2010 2:51 pm

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:

Code: Select all
'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.   
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1474
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Mac Server Service

Postby lvostinar » Wed Jun 23, 2010 3:21 pm

swingman wrote: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:

Code: Select all
'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.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Next

Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 5 guests

cron