Building the app with servletDeployment=true is good to embed the WO 5.3.3 and Wonder frameworks. However, if you are using wotaskd you do not deploy the SSDD. Instead deploy the app as installed in / Library/WebObjects/Applications/myapp.woa on your build machine.

Tim


On 16/07/2008, at 3:57 PM, Rams wrote:

Hi all,

I'm trying to deploy my first app on wotaskd/JavaMonitor and I'm having trouble getting instances to start.

I have WO 5.4.1 installed on a Mac mini running OS X 10.5.4 client. After installing, I configured the deployment with

sudo /Developer/Examples/JavaWebObjects/Deployment/configure.sh

That seems to get Monitor and wotaskd running fine and launching on boot properly. So, in my sharing preferences, I turned on web sharing to start apache. Then, for the host name I created a host entry with dscl

sudo dscl localhost -create /Local/Default/Hosts/my.domain.com IPAddress 127.0.0.1

[I recall trying with my 10.0.1.x address assigned by my NAT (airport express), but setting the host wouldn't work in Monitor unless I used the loopback address... ]

Since I'm using WO 5.3.3 and Wonder, I then build my app as a servlet deployment. I do this in WOLips by adding to build.properties the following

webXML=true
servletDeployment=true

and to build.xml

<!-- fix the web.xml file to use a custom Servlet Adaptor that allows for Project Wonder initialization -->

<replaceregexp file="${dest.dir}/${project.name}/WEB-INF/web.xml" match="com.webobjects.jspservlet.WOServletAdaptor" replace="er.extensions.jspservlet.ERXServletAdaptor" byline="true" />

[I think this is okay because I did manage to get the war file to launch under Tomcat. Anyway, I've tried unzipping the war and using the SSDD, and both fail to start in Monitor.]

After building, I moved a copy of the SSDD to the mini. I copied the WebServerResources folder from the deployment directory into / Library/WebServer/Documents/WebObjects/myapp.woa/Contents/ WebServerResources and copied the SSDD into /Library/WebObjects/ Applications/. I then

sudo chown -R _appserver:_appserveradm /Library/WebObjects/ Applications/myapp/

In Monitor, all I've really done is enter the host name, set the HTTP adaptor url to http://my.host.com/cgi-bin/WebObjects, add application named myapp. In my app config, I set the path to / Library/WebObjects/Applications/myapp/WEB-INF/myapp.woa/myapp using the path wizard, push the update, and then try to add an instance of the app. It fails to start, with a death every 60 seconds.

And that's where I'm stuck... any help getting me unstuck would be greatly appreciated.

rg _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/timcu% 40tpg.com.au

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to