Mailing List webobjects-dev@wocommunity.org Message #573
จาก: Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org>
หัวเรื่อง: Re: [WO-DEV] Apache on Ubuntu issue
วันที่: Mon, 16 Mar 2026 13:58:51 +0100
ถึง: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Signed Data (Text SHA256)
Something seems not quite right here. 
I deploy to a Ubuntu VServer on Hetzner.com. My applications are built with ant. This automatically create a split install. There are two locations on the server that are of interest: the Apache webroot directory for your domain, which the default is /var/www/html and an arbitrary directory for the WOA executable. Mine is at /opt/WebObjects/applications.

Create the WebObjects directory inside your webroot: mkdir /var/www/html/WebObjects

Building with ant I get two files: MyApp-Application.tar.gz and MyApp-WebServerResources.tar.gz. Move both to your server and unpack, the MyApp-Application.tar.gz unpacks into /opt/WebObjects/applications/ and MyApp-WebServerResources.tar.gz unpacks into /var/www/html/WebObjects and you are already good to go. No need for anything with symlinks and environments like NEXT_ROOT.
Change ownership of the application files to the owner you use to run things and install the application in JavaMonitor. All done. In the web inspector you should then see something like href=“/WebObjects/MyApp.woa/Frameworks/ERModernDefaultSkin.framework/WebServerResources/tab.png”.  This is a resource from an embedded D2W framework. Before building make sure you embed your frameworks, that’s just a checkbox in WOLips build properties for your project.

If you need more help just yell. I can give you a step by step guide of everything you have to do after you create the base Ubuntu OS install. This includes setting up Apache with virtual hosts, letsencrypt, PostgreSQL, Java, wotaskd and JavaMonitor and then on top of that the application!

Hope this helps. 
---markus--- 

On 16 Mar 2026, at 13:04, D Tim Cummings <webobjects-dev@wocommunity.org> wrote:

I think the href should be

href="/WebObjects/Applications/BookingD2W.woa/Contents/Frameworks/ERModernDefaultSkin.framework/WebServerResources/default_login_page.css"

On my ubuntu install I can find the file to be served through Apache at

/var/www/example.com/WebObjects/Applications/BookingD2W.woa/Contents/Frameworks/ERModernDefaultSkin.framework/WebServerResources/default_login_page.css

This is achieved by setting up a symlink from the Apache directory to the installation directory

# Create Apache virtual host
sudo mkdir -p /var/www/$SERVER_NAME
sudo mkdir -p $NEXT_ROOT/Local/Library/WebServer/Documents/WebObjects
sudo ln -s $NEXT_ROOT/Local/Library/WebServer/Documents/WebObjects /var/www/$SERVER_NAME/WebObjects

The symlink is on /var/www/example.com/WebObjects which points to /opt/webobjects/Local/Library/WebServer/Documents/WebObjects

I don't know why your href starts with /Local/Library but for that to work you would need the served file to be sitting at the following location in the file system

/var/www/example.com/Local/Library/WebObjects/Applications/BookingD2W.woa/Contents/Frameworks/ERModernDefaultSkin.framework/WebServerResources/default_login_page.css

Tim

On 16/3/26 14:04, Theodore Petrosky wrote:
I have a new Ubuntu install (24.04) everything appears OK and JavaMonitor runs fine.

I can setup a new app however the D2W css is not available to the app.

Ubuntu is running locally on a little Windows box as a Hyper-v instance.

The app has the appropriate Properties line:  WOFrameworksBaseURL=/WebObjects/BookingD2W.woa/Contents/Frameworks

when I go to the app's URL, the result displays, without the css. so in the Web Inspector of Safari i see:

<html>
    <head>
        <title>Booking_D2W Login</title>
    <link rel="stylesheet" type="text/css" href="/Local/Library/WebObjects/Applications/BookingD2W.woa/Contents/Frameworks/ERModernDefaultSkin.framework/WebServerResources/default_login_page.css"/>

I select the red default_login_page.css and I am shown: An error occurred trying to load the resource.

Of course the href above is missing the NEXT_ROOT (/opt/webobjects as the first part of the listing.

Please any ideas what I am missing? when I list the directory, it shows all the files are owned by appserver:appserveradm

Ted


#############################################################
This message is sent to you because you are subscribed to
 the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to <webobjects-dev-request@wocommunity.org>


#############################################################
This message is sent to you because you are subscribed to
the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>





Content Unaltered as Verified By:
<markus.ruggiero@rucotec.ch>
สมัครสมาชิก (ป้อนข้อมูล) สมัครสมาชิก (ไดเจสท์) สมัครสมาชิก (ดัชนี) ยกเลิกสมาชิก ส่งเมล์ถึงลิสต์มาสเตอร์