Unable to Start Server on Mac OS Running Ventura

I am trying to move a few projects to a Mac (M1 pro chip) running Ventura 13.1 and I am having a bit of a time getting one of the projects to work as expected.

When I try starting the server with --verbose and --console, I see the following out put (pathing to project changed to protect the innocent).

√ | Starting Server
   |------------------------------
   | Looking for server JSON file by convention: /Path/to/project//server.json
   | webroot pulled from server's JSON: /Path/to/project/wwwapp/www/
   | start server in - /Path/to/project/wwwapp/www/
   | server name - golf-league
   | server config file - /Path/to/project//server.json
   | WAR/zip archive already installed.
   | Server start command: 
   |     /opt/homebrew/Cellar/openjdk@11/11.0.18/libexec/openjdk.jdk/Contents/Home/bin/java 
   |     -Xmx1024m 
   |     -Djdk.io.File.enableADS=true 
   |     -jar /private/var/root/.CommandBox/lib/runwar-4.7.16.jar 
   |     --background=false 
   |     --host www.locusthillgolfleague.com.local 
   |     --stop-port 56026 
   |     --processname golf-league [lucee 5.3.8+206] 
   |     --log-dir /var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/logs 
   |     --server-name golf-league 
   |     --tray-enable false 
   |     --dock-enable true 
   |     --directoryindex true 
   |     --timeout 240 
   |     --proxy-peeraddress false 
   |     --cookie-secure false 
   |     --cookie-httponly false 
   |     --pid-file /var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/.pid.txt 
   |     --tray-icon /private/var/root/.CommandBox/cfml/system/config/server-icons/trayicon-lucee.png 
   |     --gzip-enable true 
   |     --cfengine-name lucee 
   |     -war /Path/to/project/wwwapp/www/ 
   |     --web-xml-path /var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/WEB-INF/web.xml 
   |     --http-enable true 
   |     --ssl-enable false 
   |     --ajp-enable false 
   |     --http2-enable true 
   |     --open-browser true 
   |     --open-url http://www.locusthillgolfleague.com.local:8081 
   |     --port 8081 
   |     --urlrewrite-enable true 
   |     --client-cert-trust-headers false 
   |     --urlrewrite-file /private/var/root/.CommandBox/cfml/system/config/urlrewrite.xml 
   |     --predicate-file /var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/.predicateFile.txt
   | The server for /Path/to/project/wwwapp/www/ is starting on http://www.locusthillgolfleague.com.local:8081 ...
   |------------------------------
   | √ | Setting Server Profile to [development]
   |   |------------------------------------------------------
   |   | Profile set from server bound to localhost
   |   | Block CF Admin disabled
   |   | Block Sensitive Paths enabled
   |   | Block Flash Remoting enabled
   |   | Directory Browsing enabled
   |   | File Caching disabled
   |   |------------------------------------------------------

[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Starting RunWAR 4.7.16
[INFO ] Runwar: Binding HTTP on www.locusthillgolfleague.com.local:8081
[INFO ] Runwar: Enabling HTTP/2
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by runwar.Server (file:/private/var/root/.CommandBox/lib/runwar-4.7.16.jar) to method com.apple.eawt.Application.getApplication()
WARNING: Please consider reporting this to the maintainers of runwar.Server
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO ] Runwar: Servlet Context: /
[INFO ] Runwar: Log Directory: /var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/logs
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Parsing '/var/root/.CommandBox/server/1FBBFA6D5E2D4FDE5B82359A8C5D73B6-golf-league/lucee-5.3.8.206/WEB-INF/web.xml'
[INFO ] Runwar: Creating deployment [default] in /Path/to/project/wwwapp/www
[ERROR] javax.servlet.ServletException: org.osgi.framework.BundleException: Unable to resolve com.sun.jna [15](R 15.0): missing requirement [com.sun.jna [15](R 15.0)] osgi.native; (|(&(osgi.native.osname~=win32)(osgi.native.processor~=x86))(&(osgi.native.osname~=win32)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=win)(osgi.native.processor~=x86))(&(osgi.native.osname~=win)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=wince)(osgi.native.processor~=arm))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparc))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64le))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le))(&(osgi.native.osname~=linux)(osgi.native.processor~=armel))(&(osgi.native.osname~=linux)(osgi.native.processor~=aarch64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ia64))(&(osgi.native.osname~=linux)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=linux)(osgi.native.processor~=mips64el))(&(osgi.native.osname~=linux)(osgi.native.processor~=s390x))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=x86)(osgi.native.processor~=x86-64)(osgi.native.processor~=ppc)))) Unresolved requirements: [[com.sun.jna [15](R 15.0)] osgi.native; (|(&(osgi.native.osname~=win32)(osgi.native.processor~=x86))(&(osgi.native.osname~=win32)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=win)(osgi.native.processor~=x86))(&(osgi.native.osname~=win)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=wince)(osgi.native.processor~=arm))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparc))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64le))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le))(&(osgi.native.osname~=linux)(osgi.native.processor~=armel))(&(osgi.native.osname~=linux)(osgi.native.processor~=aarch64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ia64))(&(osgi.native.osname~=linux)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=linux)(osgi.native.processor~=mips64el))(&(osgi.native.osname~=linux)(osgi.native.processor~=s390x))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=x86)(osgi.native.processor~=x86-64)(osgi.native.processor~=ppc))))]
[ERROR]         at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:397)
[ERROR]         at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:262)
[ERROR]         at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:168)
[ERROR]         at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:202)
[ERROR]         at lucee.loader.servlet.LuceeServlet.init(LuceeServlet.java:42)
[ERROR]         at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
[ERROR]         at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309)
[ERROR]         at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
[ERROR]         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
[ERROR]         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
[ERROR]         at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
[ERROR]         at runwar.Server.createServletDeployment(Server.java:1360)
[ERROR]         at runwar.Server.startServer(Server.java:527)
[ERROR]         at runwar.Start.main(Start.java:51)
[ERROR] Caused by: org.osgi.framework.BundleException: Unable to resolve com.sun.jna [15](R 15.0): missing requirement [com.sun.jna [15](R 15.0)] osgi.native; (|(&(osgi.native.osname~=win32)(osgi.native.processor~=x86))(&(osgi.native.osname~=win32)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=win)(osgi.native.processor~=x86))(&(osgi.native.osname~=win)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=wince)(osgi.native.processor~=arm))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparc))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64le))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le))(&(osgi.native.osname~=linux)(osgi.native.processor~=armel))(&(osgi.native.osname~=linux)(osgi.native.processor~=aarch64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ia64))(&(osgi.native.osname~=linux)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=linux)(osgi.native.processor~=mips64el))(&(osgi.native.osname~=linux)(osgi.native.processor~=s390x))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=x86)(osgi.native.processor~=x86-64)(osgi.native.processor~=ppc)))) Unresolved requirements: [[com.sun.jna [15](R 15.0)] osgi.native; (|(&(osgi.native.osname~=win32)(osgi.native.processor~=x86))(&(osgi.native.osname~=win32)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=win)(osgi.native.processor~=x86))(&(osgi.native.osname~=win)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=wince)(osgi.native.processor~=arm))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86))(&(osgi.native.osname~=sunos)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparc))(&(osgi.native.osname~=sunos)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64le))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86))(&(osgi.native.osname~=linux)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm))(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le))(&(osgi.native.osname~=linux)(osgi.native.processor~=armel))(&(osgi.native.osname~=linux)(osgi.native.processor~=aarch64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ia64))(&(osgi.native.osname~=linux)(osgi.native.processor~=sparcv9))(&(osgi.native.osname~=linux)(osgi.native.processor~=mips64el))(&(osgi.native.osname~=linux)(osgi.native.processor~=s390x))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=freebsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86))(&(osgi.native.osname~=openbsd)(osgi.native.processor~=x86-64))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=x86)(osgi.native.processor~=x86-64)(osgi.native.processor~=ppc))))]
[ERROR]         at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
[ERROR]         at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
[ERROR]         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
[ERROR]         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
[ERROR]         at lucee.loader.osgi.BundleUtil.start(BundleUtil.java:112)
[ERROR]         at lucee.loader.osgi.BundleUtil.start(BundleUtil.java:103)
[ERROR]         at lucee.loader.osgi.BundleUtil.start(BundleUtil.java:84)
[ERROR]         at lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:151)
[ERROR]         at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:381)
[ERROR]         ... 16 more
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: *** stopping server 'golf-league' (socket 56026)
[INFO ] Runwar: ******************************************************************************

Server's output stream closed. It's been stopped elsewhere.

Stopping server...



ERROR (5.7.0+00653)

Server process returned failing exit code [1]

Here is the result of box info

*  CommandBox Version: 5.7.0+00653                                                                 *
*  CommandBox Authors: Brad Wood, Luis Majano, Denny Valiant                                       *
*  CommandBox Binary   /opt/homebrew/Cellar/commandbox/5.7.0/libexec/bin/box                       *
*  CommandBox Home     /Path/to/user/.CommandBox                                                   *
*  CFML Engine:        Lucee                                                                       *
*  CFML Version:       5.3.10.97 stable (Gelert)                                                   *
*  Java Version:       11.0.18 (Homebrew)                                                          *
*  Java Path:          /opt/homebrew/Cellar/openjdk@11/11.0.18/libexec/openjdk.jdk/Contents/Home/bin/java*
*  OS Username         sstroz                                                                      *
*  JLine Terminal      org.jline.terminal.impl.PosixSysTerminal                                    *
*  Runwar Version      4.7.16 (/Path/to/user/.CommandBox/lib/runwar-4.7.16.jar)

I am sure it is something simple I am missing. I am hoping a fresh set of eyes might help.

Can anyone tell me what I need to do to get this working?

Hi @Scott_Stroz , that was a bug in Lucee, which shipped with an out of date JNA library that didn’t support the M1 chips. It was fixed in Lucee 5.3.9 if I recall. Yep, here’s the ticket:

https://luceeserver.atlassian.net/browse/LDEV-3536

The latest version of Lucee is actually 5.3.10 and I’d recommend updating all the way to there if you can.

1 Like

Thanks Brad.

I’ll try updating over the weekend.

Updating to 5.3.10 fixed the issue I was having.

Now to figure out why cfconfig is not working as expected…

1 Like