Also here are the startup items that I created on the Mac.  I have
them Located in "/Library/StartupItems/OpenBlueDragonServer"

"OpenBlueDragonServer"

#!/bin/sh
#
#/System/Library/StartupItems/OpenBlueDragonServer/
OpenBlueDragonServer
#Automatically Start Jetty Server for OpenBlueDragon
#
#
#Suppress "$1: unbound variable
#
if [ -z $1 ] ; then
        echo "Usage: $0 [start|stop|restart] "
        exit 1
fi

test -r /etc/rc.common || exit 1
. /etc/rc.common

#Path to OpenBlueDrgaonServer Jetty

JETTY_HOME="/Applications/OpenBD/bin/jetty.sh"

StartService()
{
                ConsoleMessage "Starting Jetty Server"
                $JETTY_HOME start > /dev/null 2>&1
}

StopService()
{
        ConsoleMessage "Stopping Jetty Server"
        $JETTY_HOME stop > /dev/null 2>&1
}

RestartService()
{
        ConsoleMessage "Restarting Jetty Server"
        $JETTY_HOME restart > /dev/null 2>&1
}

if test -x $JETTY_HOME ; then
{
        export JAVA_HOME=/Library/Java/Home
        RunService "$1"
}
else
        ConsoleMessage "Could not find Jetty startup script!"
fi


"StartupParameters.plist"

{
 Descripton = "OpenBlueDragon Server";
 Provides = ("CFML Application Server");
 OrderPreference = "Last";
 Messages =
 {
 start = "Starting OpenBlueDragon Server";
 stop = "Stopping OpenBlueDragon Server";
 };
}


On Jan 4, 9:28 pm, Stosh <[email protected]> wrote:
> Hello Anthony,
>
> Thanks for your help.  Yes I'm trying to get Jetty to run as a startup
> item when the Mac boots up.  I can get the server to start up at boot
> but then when I try to view a page I get the errors that I previously
> posted.  I created the startup items and they are set to owner=root
> group=wheel.
>
> Yes.  I extracted the Ready2Run bundle to "/Appications/OpenBD".
>
> I first tried to Jetty with "/Applications/OpenBD" and all file
> contained within with owner=stosh group=admin.  Jetty was able to
> startup like this but I received java.lang.NullPointerException error
> when I would try to browse to dump.cfm or any other page.  So I then
> changed the "/Applications/OpenBD" and all files contained within to
> owner=root and left group=admin.  With this Jetty started but I would
> still get the java.lang.NullPointerException error when I tried to
> browse to a page.
>
> Thanks for you help with this.  I've been banging my head trying to
> figure out what is going on and how to get it working.
>
> On Jan 4, 8:22 pm, "Anthony Hixon, Jr." <[email protected]> wrote:
>
> > Hi Stosh,
> > I'd be happy to help you troubleshoot this as well. I set jetty to start up
> > on boot on my Linux servers but I'm assuming you're trying to do it on login
> > as a startup item on your account?
>
> > Just so I can duplicate your set up on my Mac, did you unzip the entire
> > Ready2Run bundle to "/Applications/OpenBD"?
>
> > On Sun, Jan 4, 2009 at 7:51 PM, Stosh <[email protected]> wrote:
>
> > > Hello Nitai,
>
> > > Thank you again for all the help and suggestions you have given me.  I
> > > tried setting up the permissions as you suggested.  The startup items
> > > were set as root and wheel so I changed them to root and admin.  When
> > > I restarted I get a message from the Mac saying that my startup items
> > > did not have the proper permissions and would not start them up.  It
> > > then asked me if I wanted to fix them and I said yes and the Mac reset
> > > them back to root and wheel.  So I changed the directory permissions
> > > for OpenBD and Jetty to root and wheel and tried to connect and got
> > > the same error messages from before.  I just remembered that I had a
> > > similar issue like this when installing OpenBD and Jetty on a Windows
> > > Machine as a service and getting a similar error from the
> > > stderrout.log.  I followed this link:
>
> > >http://wiki.openbluedragon.org/wiki/index.php?title=Ready_2_Run_Bundl...
>
> > > It talked about not being able the find the OpenBLueDragon.XML file.
> > > I had made the change that was suggested in the article and it fixed
> > > the problem. I tried doing the same change and found that still had no
> > > affect on it.  Do you think I have some kind of configuration issue?
> > > If so any suggestion where I could poke around and look?
>
> > > Thank you again for helping me I really do appreciate it.
>
> > > Stosh
>
> > > On Jan 4, 10:02 am, "Nitai @ SixSigns" <[email protected]> wrote:
> > > > In your startup item you can and should set the user and group. Start
> > > > it as the same user as when you start it up in the shell window.
>
> > > > On Jan 4, 2009, at 5:33 AM, Stosh wrote:
>
> > > > > Yes this happens when I run it as a startup item.  If I was to run it
> > > > > as a non startup item and start it from a teminal window using the
> > > > > jetty.sh start command it runs just fine.  I have my folder where
> > > > > jetty is in /Applications/OpenBD and I have the OpenBD folder and
> > > > > files set the same as what I see for Blue Dragon.  My owner is root
> > > > > and the group is admin.
>
> > > > > Thanks,
>
> > > > > Stosh
>
> > > > > On Jan 3, 3:32 pm, "Nitai @ SixSigns" <[email protected]> wrote:
> > > > >> Is this error coming from running it as a startup item or in general
> > > > >> when you try to start openbd? If it runs normally when you start
> > > > >> openbd then it can be a permission issue.
>
> > > > --
> > > > Razuna On-Demand - Hosted Digital Asset Management Solution
> > > > Razuna - Open Source Digital Asset Management with Web Content
> > > > Managementhttp://www.razuna.com/
>
> > > > Kabunto - Open Source Forum Solutionhttp://www.kabunto.org/
>
> > > > Roozani - memorize everywherehttp://www.roozani.com/
>
> > > > SixSigns - Enrich people's lives and web
> > > experiencehttp://www.sixsigns.comhttp://blog.sixsigns.com
>
> > > > Follow us on Twitterhttp://twitter.com/sixsigns
>
> > > >  smime.p7s
> > > > 3KViewDownload
>
> > --
> > Anthony Hixon, Jr.
> > Certified Advanced ColdFusion MX 7 Developer
> > Mobile: (706) 639-3617
> > [email protected]
>
>

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to