BTW, Here is the URL that the Monitor app gives:

http://ec2-44-223-43-102.compute-1.amazonaws.com/cgi-bin/WebObjects/TheApp.woa/1

On 1/2/26 4:54 PM, Paul Hoadley wrote:
Hi Ted,

On 3 Jan 2026, at 4:25 am, Theodore Petrosky via Webobjects-dev <[email protected]> wrote:

I am almost there. If I understand, I would upload the app to WOApplications

Yes (unzipped and untarred).

and NewApp.wowebserverresources goes into the /opt/WOWebServerResources folder

/opt/WOWebServerResources/*WebObjects*

I chowned the untared directories to appserver:appserveradm

Perfect.

But me app will not run.

What did you do? What did you expect to happen, and what did you actually observe? Was there any log output? Could you run the app from the command line?

$ /opt/WOApplications/NewApp.woa/NewApp

I have attached the product of mvn package. Could you take a look at this. maybe you can see that there is something missing.

In NewApp.woa/Contents/UNIX/UNIXClassPath.txt (and MacOS/MacOSClassPath.txt if you're trying to launch this from the command line on a Mac), this cannot possibly be correct:

# ApplicationClass == Application

This value comes from build.properties in your project. It needs the fully qualified name of the application class, so (after poking around in your application's JAR) in this case you need:

# ApplicationClass == com.abc.Application

And so that it's correct next time you build, update build.properties in your project:

principalClass=com.abc.Application

Then, looks like you're using Java 21, so at launch time you'll see this:

Jan 03 08:13:09 NewApp[54507] WARN  NSLog  - A fatal exception occurred: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x24c1b2d2) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x24c1b2d2


Which is fixed by this in ...ClassPath.txt:

# JVMOptions       == --add-opens java.base/sun.security.action=ALL-UNNAMED

and again, this is coming from build.properties where you need this:

jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED

After correcting these, ignore the missing graphic resources (I'm just launching this from the command line):

PastedGraphic-1.png


--
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/


Reply via email to