Add something like this in the plugins section of your pom file. You
probably want to make sure your wolifecycle plugin is using the latest
version too (2.5).
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>21</source>
<target>21</target>
<compilerArgs>
<compilerArg>--add-exports</compilerArg>
<compilerArg>java.base/sun.security.action=ALL-UNNAMED</compilerArg>
</compilerArgs>
</configuration>
</plugin>
On 12/15/24 10:53 AM, Theodore Petrosky wrote:
OK I’m almost there…. I picked up a settings.xml from an old machine
that was almost working… now I can create new WO Apps but they fail to
launch with:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
WILL ADD SHUTDOWNHOOK
[2024-12-14 20:47:0 EST] <main> Couldn't load properties file:
/Users/asacksadmin/WebObjects.properties at path: /Users/asacksadmin
Dec 14 20:47:01 N/A[N/A] INFO org.apache.log4j.Logger - Updated the
logging configuration with the current system properties.
Dec 14 20:47:01 N/A[N/A] INFO org.apache.log4j.Logger - Updated the
logging configuration with the current system properties.
Dec 14 20:47:01 N/A[N/A] WARN NSLog - Couldn't load properties file:
/Users/asacksadmin/WebObjects.properties at path: /Users/asacksadmin
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOMaxIOBufferSize=8196
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOWorkerThreadCountMin=16
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOSocketMonitorSleepTime=50
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WODirectConnectEnabled=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOIncludeCommentsInResponse=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOWorkerThreadCount=8
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOLaunchdEnabled=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOHost=127.0.0.1
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOIDE=WOLips
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WODebuggingEnabled=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOListenQueueSize=128
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOMissingResourceSearchEnabled=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOApplicationClassName=NewApp2.app.Application
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOSessionStoreClassName=WOServerSessionStore
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOContextClassName=WOContext
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOCachingEnabled=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAcceptMalformedCookies=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - NSProjectSearchPath=("..")
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOMonitorEnabled=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAllowRapidTurnaround=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOGenerateWSDL=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOWorkerThreadCountMax=256
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOAllowsConcurrentRequestHandling=false
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAdaptor=WODefaultAdaptor
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOSessionTimeOut=3600
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOMaxSocketIdleTime=180000
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WODefaultUndoStackLimit=10
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAutoOpenClientApplication=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAutoOpenInBrowser=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOApplicationBaseURL=/WebObjects
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOMaxHeaders=200
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOLifebeatEnabled=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAllowsCacheControlHeader=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOSMTPHost=smtp
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOStatisticsStoreSessionMax=50
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOAdditionalAdaptors=()
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOFrameworksBaseURL=/WebObjects/Frameworks
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOPort=-1
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOLifebeatDestinationPort=1085
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOLifebeatInterval=30
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WOSocketCacheSize=100
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog -
WOUserDirectory=/Users/asacksadmin/eclipse-workspace/NewApp2/build/NewApp2.woa
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WODisplayExceptionPages=true
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - ------------------------
Dec 14 20:47:01 N/A[N/A] DEBUG NSLog - WebObjects version = 5.4.3
Dec 14 20:47:01 NewApp2[N/A] DEBUG NSLog - Created adaptor of class
WODefaultAdaptor on port 50191 and address localhost/127.0.0.1 with
WOWorkerThread minimum of 16 and maximum of 256
Dec 14 20:47:01 NewApp2[50191] WARN NSLog - Application project
found: Will locate resources in
'/Users/asacksadmin/eclipse-workspace/NewApp2' rather than
'/Users/asacksadmin/eclipse-workspace/NewApp2/' .
Dec 14 20:47:01 NewApp2[50191] DEBUG NSLog - NSBundle is unable to
find "ExtensionsForResources.plist" in the main bundle. Ignoring
optional configuration file.
Dec 14 20:47:04 NewApp2[50191] WARN NSLog - Application project
found: Will locate resources in
'/Users/asacksadmin/eclipse-workspace/NewApp2' rather than
'/Users/asacksadmin/eclipse-workspace/NewApp2/' .
Dec 14 20:47:04 NewApp2[50191] WARN NSLog - A fatal exception
occurred: class com.webobjects.foundation.NSTimeZone (in unnamed
module @0x462496c8) cannot access class
sun.security.action.GetPropertyAction (in module java.base) because
module java.base does not export sun.security.action to unnamed module
@0x462496c8
[2024-12-14 20:47:4 EST] <main> java.lang.IllegalAccessError: class
com.webobjects.foundation.NSTimeZone (in unnamed module @0x462496c8)
cannot access class sun.security.action.GetPropertyAction (in module
java.base) because module java.base does not export
sun.security.action to unnamed module @0x462496c8
at
com.webobjects.foundation.NSTimeZone.systemTimeZone(NSTimeZone.java:971)
at
com.webobjects.foundation.NSTimeZone.defaultTimeZone(NSTimeZone.java:818)
at
com.webobjects.foundation.NSTimestampFormatter.defaultFormatTimeZone(NSTimestampFormatter.java:734)
at
com.webobjects.appserver.WOStatisticsStore.<clinit>(WOStatisticsStore.java:249)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:853)
at
er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30)
at er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1129)
at NewApp2.app.Application.<init>(Application.java:16)
at
java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at
java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at
java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:304)
at java.base/java.lang.Class.newInstance(Class.java:725)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
at NewApp2.app.Application.main(Application.java:12)
APPLICATION SHUTDOWN SEQUENCE COMPLETE
On Dec 11, 2024, at 2:24 AM, Ramsey Gurley <ramseygur...@gmail.com>
wrote:
In order to use the wocommunity archetypes, you need to edit your
~/.m2/settings.xml and add the wocommunity repo before they'll work.
You can follow the instructions here,
https://github.com/wocommunity/webobjects-maven-archetypes
I'm going to try them out myself, I haven't used them since version 2.x.
On 12/11/24 1:42 PM, Theodore Petrosky wrote:
OK I think I've almost got it but I’m missing something :(
How do I tell Eclipse-WOLips to use the archetype
I have the newest version of eclipse installed and I've used the
WOLips update URL:
http://wocommunity.github.io/wolips/repository/
My Java version
java -version
java version "21.0.5" 2024-10-15 LTS
Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.5+9-LTS-239, mixed
mode, sharing)
Maven
mvn -version
*Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)*
Maven home: /Users/asacksadmin/Downloads/apache-maven-3.9.9
Java version: 21.0.5, vendor: Oracle Corporation, runtime:
/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "15.1.1", arch: "aarch64", family: “mac"
mvn io.github.wocommunity:woinstall-maven-plugin:woinstall
[*INFO*] WebObjects installer archive located at
/Users/asacksadmin/.m2/repository/com/webobjects/.archive/WebObjects_5.4.3.dmg
[*INFO*] WebObjects NEXT_ROOT directory located at
/Users/asacksadmin/.m2/repository/com/webobjects/.next_roots/5.4.3
[*INFO*]
*------------------------------------------------------------------------*
[*INFO*] *BUILD SUCCESS*
[*INFO*]
*------------------------------------------------------------------------*
[*INFO*] Total time: 16.530 s
[*INFO*] Finished at: 2024-12-10T19:40:21-05:00
[*INFO*] *————————————————————————————————————*
*
*
*
*
*
*
*
*
On Dec 10, 2024, at 6:09 AM, Ramsey Gurley via Webobjects-dev
<webobjects-dev@lists.apple.com> wrote:
Hello everyone,
If the wobootstrap-maven-plugin and the WOInstall.jar got married
and had a baby, it would be the woinstall-maven-plugin. I'm pleased
to inform you that installing webobjects is now as easy as pasting
the following into your terminal,
mvn io.github.wocommunity:woinstall-maven-plugin:woinstall
The plugin is on maven central, so that's it, that's all you need
to do now. A maven install >= version 3.6.3 required, but that's
all. You can read more about it here,
https://github.com/wocommunity/woinstall-maven-plugin
Ramsey
_______________________________________________
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/tedpet5%40yahoo.com
This email sent to tedp...@yahoo.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