New WO Install on Monterey

2022-02-10 Thread Theodore Petrosky via Webobjects-dev
I am trying to install WO on a new M1 machine. I am having a problem with 
assigning the build path.

I have the wonder source at ~/Developer/WonderSource/…

I create a new WO app. I right click this new app and get and select Configure 
Build Path. The whole section on the right, “Add Jars”, “Add External Jars”, 
“Add Variable”, “Add Library”, etc… is grey. I cannot “Add Library”.

As an aside, if I try to install the app with ant, I get an error The framework 
name “ERExtensions” does not exist

Anyone have any ideas?

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

This email sent to arch...@mail-archive.com


Re: Monterey mod_WebObjects.so code signing

2022-02-10 Thread John Pollard via Webobjects-dev
I solved this, so if anyone else needs a pointer:

You can create a self-signed Code Signing Certificate Authority following the 
very good instructions here:
https://www.simplified.guide/macos/keychain-ca-code-signing-create 


You can then create a self-signing Code Signing Certificate as per:
https://www.simplified.guide/macos/keychain-cert-code-signing-create 


You can then sign the library like this:
sudo codesign -s "JPMPLCert" --keychain ~/Library/Keychains/login.keychain-db 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so
where “JPMPLCert” is whatever name you called your certificate

I got the error:
unable to build chain to self-signed root for signer …
which I couldn’t resolve, but found a workaround; just sign directly with the 
Certificate Authority cert created above:
sudo codesign -s "JPMPLCA" --keychain ~/Library/Keychains/login.keychain-db 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so
where “JPMPLCA” is whatever you called your Certificate Authority

Then add it to the LoadModule line in your apache config:
LoadModule WebObjects_module 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so “JPMPLCA"
where the bit in quotes at the end is whatever you ended up signing your 
library with earlier

Now when do my apache configtest I see:
Allowing module loading process to continue for module at 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so because module 
signature matches authority "JPMPLCA" specified in LoadModule directive

and the world is right again

John

> On 8 Feb 2022, at 17:35, John Pollard via Webobjects-dev 
>  wrote:
> 
> Hello,
> 
> After switching to Monterey
> 
> apache configtest
> 
> gives:
> 
> [Tue Feb 08 17:25:53.363409 2022] [so:error] [pid 2017] AH06665: No code 
> signing authority for module at 
> /Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so specified in 
> LoadModule directive.
> 
> If anyone has jumped through this hoop, could you point me in the right 
> direction?
> 
> I only need this for running to test things out in development, it is not a 
> deployment environment.
> 
> Many thanks,
> John
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.com

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

This email sent to arch...@mail-archive.com