Thanks Jeff!

I tried this and found that the latest Eclipse/WOLips tools are very complete in packaging up woapps for servlet deployment. However, there were a couple of caveats worth mentioning:

1. Starting with a WOnder Application template there is no need (and no option!) to create a project with servlet support. All that is needed after the project is created is to check Servlet Deployment and check Autogenerate web.xml in WOLips Build within the project properties. This will create the proper WAR file as a fully self- contained servlet single directory deployment (SSDD) with all of the necessary WO frameworks. It's very slick.

2. Project dependencies (such as other frameworks) however will not be included in the SSDD. They must be included as framework dependencies as well. See http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency .

3. The generated web.xml file in WEB-INF has a parameter named WOAppMode which is set to "Development". I found that with this setting, Tomcat and the WebObjects Resource Manager would not serve up any static WebServerResources correctly. I kept getting links like "/ MyApp/WebObjects/MyApp.woa/_wr_/wodata=/Library/stuff". I don't know if I had a particular property value set incorrectly. But I did find that if I changed the WOAppMode value to "Deployment", the problem went away since the static resources get served up directly by the web server. This of course requires a split install (Tomcat + Apache). Because I'm using Ajax, I had to remember to include Ajax.framework/ WebServerResources in the split install since there are critical javascript files that are required.

4. For the static resources to be served correctly via port 80 of the Apache web server (as opposed to Tomcat's port 8080), I had to install the Tomcat-Apache plugin, mod_jk. I am deploying on Linux, but developing on a Mac, and so I wanted to make sure this also works under Leopard. There are useful instructions for installing mod_jk on Leopard client at http://blog.lo-fi.net/2007/10/leopard-for-web-developer-installing.html (the downloadable binary for mod_jk for Leopard doesn't run correctly).

5. In the Tomcat log file (catalina.out), I keep getting an exception (below) related to JDBC but everything runs fine regardless (I'm using MySQL). Tomcat seems to have it's own data source mechanism for supplying database information. Being a Tomcat newbie, I'm not sure if there is an easy way to suppress these exceptions, or if it's better to just configure and use the servlet container data source. I know there is some pertinent information at http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Tomcat+Deployment , but I'm interested in getting input on best practices related to WO deployment and data sources in a servlet container. Please let me know, especially if you have experience with business-critical deployments.

<MyApp>[2008-4-1 23:16:41 PDT] <http-8080-1> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
        at org.apache.naming.NamingContext.list(NamingContext.java:345)
        at org.apache.naming.NamingContext.list(NamingContext.java:353)
        at org.apache.naming.NamingContext.list(NamingContext.java:353)
        at org.apache.naming.NamingContext.list(NamingContext.java:368)
        at org.apache.naming.SelectorContext.list(SelectorContext.java:307)
        at javax.naming.InitialContext.list(InitialContext.java:395)
at com .webobjects .jdbcadaptor.JDBCContext.setupJndiConfiguration(JDBCContext.java:310)
        at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:197)

Thanks,
Aleksey


On Mar 26, 2008, at 5:38 AM, Jeff Smith wrote:

We've just started deploying on Linux (ubuntu in this case) using a hosting provider and have found that the Tomcat/WAR file deployment works very well. Nothing special being used here, mainly the standard dev tools/WO install from Apple (5.4) and then Eclipse +WOLips (latest stable) to build the project/WAR files.

As a matter of fact, I've found that just creating the projects with servlet support and then checking the WOLips boxes for Servlet deployment and automatically generating the WAR files (in the preferences) was all I needed to do to get the proper WAR file generated.

Jeff

On Mar 25, 2008, at 9:41 PM, Aleksey Novicov wrote:

I am looking for input and instruction on deploying WO 5.4 apps on Red Hat Linux. Are there any updated instructions for WO 5.4? Is there a pre-compiled Apache 2.2 WebObjects adapter for Red Hat available? How about deploying on Tomcat? Is it preferred over JavaMonitor/wotaskd? I have experience with JavaMonitor on OS X but have never tried deploying on Tomcat.

By the way, this mail list is invaluable. Thanks to all of the contributors.

Aleksey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jas35%40mac.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]

Reply via email to