No Joy, 😓

Create new app called “Battery” with maven:

This is my build.properties:

principalClass = com.eltek.Battery.app.Application
project.name = Battery
customInfoPListContent =
project.name.lowercase = battery
webXML = false
webXML_CustomContent =
classes.dir = target/classes
jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED 
--add-exports java.base/sun.util.calendar=ALL-UNNAMED

Trying to debug (as a WOApplication):

[2025-1-4 22:36:41 EST] <main> WOMaxIOBufferSize=8196
[2025-1-4 22:36:41 EST] <main> WOWorkerThreadCountMin=16
[2025-1-4 22:36:41 EST] <main> WOSocketMonitorSleepTime=50
[2025-1-4 22:36:41 EST] <main> WODirectConnectEnabled=true
[2025-1-4 22:36:41 EST] <main> WOIncludeCommentsInResponse=false
[2025-1-4 22:36:41 EST] <main> WOWorkerThreadCount=8
[2025-1-4 22:36:41 EST] <main> WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
[2025-1-4 22:36:41 EST] <main> WOLaunchdEnabled=false
[2025-1-4 22:36:41 EST] <main> WOHost=127.0.0.1
[2025-1-4 22:36:41 EST] <main> WOIDE=WOLips
[2025-1-4 22:36:41 EST] <main> WODebuggingEnabled=true
[2025-1-4 22:36:41 EST] <main> WOListenQueueSize=128
[2025-1-4 22:36:41 EST] <main> WOMissingResourceSearchEnabled=true
[2025-1-4 22:36:41 EST] <main> 
WOApplicationClassName=com.eltek.Battery.app.Application
[2025-1-4 22:36:41 EST] <main> WOSessionStoreClassName=WOServerSessionStore
[2025-1-4 22:36:41 EST] <main> WOContextClassName=WOContext
[2025-1-4 22:36:41 EST] <main> WOCachingEnabled=false
[2025-1-4 22:36:41 EST] <main> WOAcceptMalformedCookies=false
[2025-1-4 22:36:41 EST] <main> NSProjectSearchPath=(..,../..)
[2025-1-4 22:36:41 EST] <main> WOMonitorEnabled=false
[2025-1-4 22:36:41 EST] <main> WOAllowRapidTurnaround=true
[2025-1-4 22:36:41 EST] <main> WOGenerateWSDL=true
[2025-1-4 22:36:41 EST] <main> WOWorkerThreadCountMax=256
[2025-1-4 22:36:41 EST] <main> WOAllowsConcurrentRequestHandling=false
[2025-1-4 22:36:41 EST] <main> WOAdaptor=WODefaultAdaptor
[2025-1-4 22:36:41 EST] <main> WOSessionTimeOut=3600
[2025-1-4 22:36:41 EST] <main> WOMaxSocketIdleTime=180000
[2025-1-4 22:36:41 EST] <main> WODefaultUndoStackLimit=10
[2025-1-4 22:36:41 EST] <main> WOAutoOpenClientApplication=true
[2025-1-4 22:36:41 EST] <main> WOAutoOpenInBrowser=true
[2025-1-4 22:36:41 EST] <main> WOApplicationBaseURL=/WebObjects
[2025-1-4 22:36:41 EST] <main> WOMaxHeaders=200
[2025-1-4 22:36:41 EST] <main> WOLifebeatEnabled=true
[2025-1-4 22:36:41 EST] <main> WOAllowsCacheControlHeader=true
[2025-1-4 22:36:41 EST] <main> WOSMTPHost=smtp
[2025-1-4 22:36:41 EST] <main> WOStatisticsStoreSessionMax=50
[2025-1-4 22:36:41 EST] <main> WOAdditionalAdaptors=()
[2025-1-4 22:36:41 EST] <main> WOFrameworksBaseURL=/WebObjects/Frameworks
[2025-1-4 22:36:41 EST] <main> WOPort=-1
[2025-1-4 22:36:41 EST] <main> WOLifebeatDestinationPort=1085
[2025-1-4 22:36:41 EST] <main> WOLifebeatInterval=30
[2025-1-4 22:36:41 EST] <main> WOSocketCacheSize=100
[2025-1-4 22:36:41 EST] <main> 
WOUserDirectory=/Users/asacksadmin/eclipse-workspace/Battery/build/Battery.woa
[2025-1-4 22:36:41 EST] <main> WODisplayExceptionPages=true
[2025-1-4 22:36:41 EST] <main> ------------------------
[2025-1-4 22:36:41 EST] <main> WebObjects version = 5.4.3
[2025-1-4 22:36:41 EST] <main> Created adaptor of class WODefaultAdaptor on 
port 49929 and address localhost/127.0.0.1 with WOWorkerThread minimum of 16 
and maximum of 256
[2025-1-4 22:36:41 EST] <main> NSBundle is unable to find 
"ExtensionsForResources.plist" in the main bundle.  Ignoring optional 
configuration file.
[2025-1-4 22:36:41 EST] <main> Application project found: Will locate resources 
in '/Users/asacksadmin/eclipse-workspace/Battery/build/Battery.woa' rather than 
'/Users/asacksadmin/eclipse-workspace/Battery/build/Battery.woa' .
[2025-1-4 22:36:42 EST] <main> 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
[2025-1-4 22:36:42 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 com.eltek.Battery.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 com.eltek.Battery.app.Application.main(Application.java:12)

BTW, here is the Maven Clean report:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
com.eltek:Battery:woapplication:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 29, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -------------------------< com.eltek:Battery 
>--------------------------
[INFO] Building Battery WebObjects Application 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] ---------------------------[ woapplication 
]----------------------------
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin 
org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1 requires Maven 
version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-compiler-plugin 
failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin 
org.apache.maven.plugins:maven-compiler-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin 
org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1 requires Maven 
version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-resources-plugin 
failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin 
org.apache.maven.plugins:maven-resources-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-resources-plugin:3.3.1
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin 
org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1 requires Maven 
version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-install-plugin 
failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin 
org.apache.maven.plugins:maven-install-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-install-plugin:3.1.3
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin 
org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1 requires Maven 
version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-deploy-plugin 
failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin 
org.apache.maven.plugins:maven-deploy-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-deploy-plugin:3.1.3
[INFO] 
[INFO] --- clean:3.2.0:clean (default-clean) @ 
Battery ---
[INFO] Deleting /Users/asacksadmin/eclipse-workspace/Battery/target
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] 
------------------------------------------------------------------------
[INFO] Total time:  0.410 s
[INFO] Finished at: 2025-01-04T22:40:12-05:00
[INFO] 
------------------------------------------------------------------------


> On Jan 4, 2025, at 9:29 PM, Paul Hoadley via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> Hi Ted,
> 
> On 5 Jan 2025, at 12:08 pm, Theodore Petrosky via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
>> [2025-1-4 20:34:15 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
> 
> This one is easy. Add this line to build.properties:
> 
> jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED 
> --add-exports java.base/sun.util.calendar=ALL-UNNAMED
> 
>> I tried the Maven Clean and I get:
> 
>> [WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin 
>> org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1 requires Maven 
>> version 4.0.0-beta-3
>> [INFO] Latest version of plugin 
>> org.apache.maven.plugins:maven-compiler-plugin failed compatibility check
>> [INFO] Looking for compatible RELEASE version of plugin 
>> org.apache.maven.plugins:maven-compiler-plugin
>> [INFO] Selected plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0
> 
> Not sure what's going on here, other than that 
> maven-compiler-plugin:4.0.0-beta-1 seems a bit bleeding edge. In any case, 
> unless you've truncated that, it doesn't show the clean failing. Fix the 
> NSTimeZone issue above first and report back.
> 
> 
> -- 
> Paul Hoadley
> https://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
> 
> _______________________________________________
> 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

Reply via email to