Getting CommandBox to use ACF9 instead of Lucee

I’m using CommandBox to get a test suite running on Travis CI using ACF9 and MXUnit. I have the following in my .travis.yml file which seems to be working to an extent (i.e. ACF9 is being installed). However, when the test suite runs I receive a “file not found” error which I know how to fix, but the error comes from Lucee instead of ACF9. Does anyone know what I’m doing wrong?

`
install:

Can you post the exception

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057

I can’t post the whole error because it contains information I’m not allowed to share. Here’s the first part of it:

`
Lucee 4.5.3.020 Error (java.io.FileNotFoundException)
Message: /home/travis/build/[…]/mxunit/ci (Is a directory)
Cause: java.io.FileNotFoundException

`

The error’s actually irrelevant. I’m just wondering why it comes from Lucee instead of ACF.

Simon,

Is the error being thrown on the the box start command? If so, that’s may be a known issue with your version of Commandbox. The error is coming from Lucee because it is still the underlying CFML engine for Commandbox, regardless of whether you choose to use a different server engine for your application.

Can you provide your Travis Commandbox install details so I can verify? You can also try installing bleeding edge to see if it fixes the error:

sudo apt-get update && sudo apt-get --assume-yes install commandbox-be

Hi Jon,

Here are the contents of my .travis.yml file:

`
language: java
sudo: required
before_install:

And here’s the Travis log:

`
[0K$ curl --location ‘https://www.ortussolutions.com/parent/download/commandbox/type/bin’ -o /tmp/box.zip

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0

100 208 0 208 0 0 1168 0 --:–:-- --:–:-- --:–:-- 1664

0 38.5M 0 12888 0 0 17032 0 0:39:35 --:–:-- 0:39:35 17032

54 38.5M 54 21.0M 0 0 16.4M 0 0:00:02 0:00:01 0:00:01 39.9M

100 38.5M 100 38.5M 0 0 24.7M 0 0:00:01 0:00:01 --:–:-- 47.9M

travis_time:end:20deb982:start=1477056973249855592,finish=1477056974819905880,duration=1570050288

[0Ktravis_fold:end:install.1

[0Ktravis_fold:start:install.2

[0Ktravis_time:start:33f5ac20

[0K$ unzip /tmp/box.zip -d /tmp/bin

Archive: /tmp/box.zip

inflating: /tmp/bin/box

travis_time:end:33f5ac20:start=1477056974823875373,finish=1477056975092934752,duration=269059379

[0Ktravis_fold:end:install.2

[0Ktravis_fold:start:install.3

[0Ktravis_time:start:1275fec4

[0K$ /tmp/bin/box install adobe@9.0.2

Configuring CommandBox home: /home/travis/.CommandBox (change with -CommandBox_home=/path/to/dir)

Library path: /home/travis/.CommandBox/lib

Initializing libraries – this will only happen once, and takes a few seconds…

Libraries initialized

[32m[0m

[32mInstalling package [forgebox:adobe@9.0.2][0m

[33mVerifying package ‘adobe’ in ForgeBox, please wait…[0m

[32mInstalling version [9.0.2+282541].[0m

[32mVerified entry in ForgeBox: ‘adobe’[0m

[32mDeferring to [http] endpoint for ForgeBox entry [adobe]…[0m

[32mDownloading [HTTP://downloads.ortussolutions.com/adobe/coldfusion/9.0.2/cf-engine-9.0.2.zip][0m

[2K[100074D 1% [> ] 1.5MB / 154.7MB ( 8.8MBps)[2K[100074D 2% [> ] 3.1MB / 154.7MB (13.4MBps)[2K[100074D 3% [=> ] 4.6MB / 154.7MB (23.7MBps)[2K[100074D 4% [=> ] 6.2MB / 154.7MB (29.8MBps)[2K[100074D 5% [=> ] 7.7MB / 154.7MB (36.2MBps)[2K[100074D 6% [==> ] 9.3MB / 154.7MB (50.8MBps)[2K[100074D 7% [==> ] 10.8MB / 154.7MB (59.1MBps)[2K[100074D 8% [==> ] 12.4MB / 154.7MB (63.7MBps)[2K[100074D 9% [===> ] 13.9MB / 154.7MB (73.4MBps)[2K[100074D 10% [===> ] 15.5MB / 154.7MB (81.6MBps)[2K[100074D 11% [====> ] 17.0MB / 154.7MB (80.8MBps)[2K[100074D 12% [====> ] 18.6MB / 154.7MB (85.2MBps)[2K[100074D 13% [====> ] 20.1MB / 154.7MB (79.5MBps)[2K[100074D 14% [=====> ] 21.7MB / 154.7MB (76.4MBps)[2K[100074D 15% [=====> ] 23.2MB / 154.7MB (71.3MBps)[2K[100074D 16% [=====> ] 24.8MB / 154.7MB (73.0MBps)[2K[100074D 17% [======> ] 26.3MB / 154.7MB (71.4MBps)[2K[100074D 18% [======> ] 27.9MB / 154.7MB (98.1MBps)[2K[100074D 19% [=======> ] 29.4MB / 154.7MB (99.0MBps)[2K[100074D 20% [=======> ] 30.9MB / 154.7MB (99.0MBps)[2K[100074D 21% [=======> ] 32.5MB / 154.7MB (99.0MBps)[2K[100074D 22% [========> ] 34.0MB / 154.7MB (99.0MBps)[2K[100074D 23% [========> ] 35.6MB / 154.7MB (99.0MBps)[2K[100074D 24% [========> ] 37.1MB / 154.7MB (92.7MBps)[2K[100074D 25% [=========> ] 38.7MB / 154.7MB (94.4MBps)[2K[100074D 26% [=========> ] 40.2MB / 154.7MB (74.7MBps)[2K[100074D 27% [=========> ] 41.8MB / 154.7MB (76.0MBps)[2K[100074D 28% [==========> ] 43.3MB / 154.7MB (87.1MBps)[2K[100074D 29% [==========> ] 44.9MB / 154.7MB (99.0MBps)[2K[100074D 30% [===========> ] 46.4MB / 154.7MB (99.0MBps)[2K[100074D 31% [===========> ] 48.0MB / 154.7MB (99.0MBps)[2K[100074D 32% [===========> ] 49.5MB / 154.7MB (99.0MBps)[2K[100074D 33% [============> ] 51.1MB / 154.7MB (99.0MBps)[2K[100074D 34% [============> ] 52.6MB / 154.7MB (99.0MBps)[2K[100074D 35% [============> ] 54.2MB / 154.7MB (99.0MBps)[2K[100074D 36% [=============> ] 55.7MB / 154.7MB (98.5MBps)[2K[100074D 37% [=============> ] 57.2MB / 154.7MB (91.4MBps)[2K[100074D 38% [==============> ] 58.8MB / 154.7MB (90.2MBps)[2K[100074D 39% [==============> ] 60.3MB / 154.7MB (90.2MBps)[2K[100074D 40% [==============> ] 61.9MB / 154.7MB (93.7MBps)[2K[100074D 41% [===============> ] 63.4MB / 154.7MB (99.0MBps)[2K[100074D 42% [===============> ] 65.0MB / 154.7MB (99.0MBps)[2K[100074D 43% [===============> ] 66.5MB / 154.7MB (99.0MBps)[2K[100074D 44% [================> ] 68.1MB / 154.7MB (97.3MBps)[2K[100074D 45% [================> ] 69.6MB / 154.7MB (96.3MBps)[2K[100074D 46% [=================> ] 71.2MB / 154.7MB (99.0MBps)[2K[100074D 47% [=================> ] 72.7MB / 154.7MB (86.8MBps)[2K[100074D 48% [=================> ] 74.3MB / 154.7MB (81.6MBps)[2K[100074D 49% [==================> ] 75.8MB / 154.7MB (71.3MBps)[2K[100074D 50% [==================> ] 77.4MB / 154.7MB (68.8MBps)[2K[100074D 51% [==================> ] 78.9MB / 154.7MB (71.2MBps)[2K[100074D 52% [===================> ] 80.5MB / 154.7MB (86.8MBps)[2K[100074D 53% [===================> ] 82.0MB / 154.7MB (84.4MBps)[2K[100074D 54% [===================> ] 83.5MB / 154.7MB (99.0MBps)[2K[100074D 55% [====================> ] 85.1MB / 154.7MB (99.0MBps)[2K[100074D 56% [====================> ] 86.6MB / 154.7MB (99.0MBps)[2K[100074D 57% [=====================> ] 88.2MB / 154.7MB (99.0MBps)[2K[100074D 58% [=====================> ] 89.7MB / 154.7MB (90.1MBps)[2K[100074D 59% [=====================> ] 91.3MB / 154.7MB (93.3MBps)[2K[100074D 60% [======================> ] 92.8MB / 154.7MB (71.0MBps)[2K[100074D 61% [======================> ] 94.4MB / 154.7MB (77.5MBps)[2K[100074D 62% [======================> ] 95.9MB / 154.7MB (74.7MBps)[2K[100074D 63% [=======================> ] 97.5MB / 154.7MB (85.9MBps)[2K[100074D 64% [=======================> ] 99.0MB / 154.7MB (82.7MBps)[2K[100074D 65% [========================> ] 100.6MB / 154.7MB (99.0MBps)[2K[100074D 66% [========================> ] 102.1MB / 154.7MB (98.2MBps)[2K[100074D 67% [========================> ] 103.7MB / 154.7MB (99.0MBps)[2K[100074D 68% [=========================> ] 105.2MB / 154.7MB (99.0MBps)[2K[100074D 69% [=========================> ] 106.8MB / 154.7MB (99.0MBps)[2K[100074D 70% [=========================> ] 108.3MB / 154.7MB (99.0MBps)[2K[100074D 71% [==========================> ] 109.8MB / 154.7MB (99.0MBps)[2K[100074D 72% [==========================> ] 111.4MB / 154.7MB (99.0MBps)[2K[100074D 73% [===========================> ] 112.9MB / 154.7MB (99.0MBps)[2K[100074D 74% [===========================> ] 114.5MB / 154.7MB (99.0MBps)[2K[100074D 75% [===========================> ] 116.0MB / 154.7MB (85.8MBps)[2K[100074D 76% [============================> ] 117.6MB / 154.7MB (81.4MBps)[2K[100074D 77% [============================> ] 119.1MB / 154.7MB (70.8MBps)[2K[100074D 78% [============================> ] 120.7MB / 154.7MB (59.0MBps)[2K[100074D 79% [=============================> ] 122.2MB / 154.7MB (56.7MBps)[2K[100074D 80% [=============================> ] 123.8MB / 154.7MB (83.4MBps)[2K[100074D 81% [=============================> ] 125.3MB / 154.7MB (73.6MBps)[2K[100074D 82% [==============================> ] 126.9MB / 154.7MB (75.6MBps)[2K[100074D 83% [==============================> ] 128.4MB / 154.7MB (82.7MBps)[2K[100074D 84% [===============================> ] 130.0MB / 154.7MB (82.1MBps)[2K[100074D 85% [===============================> ] 131.5MB / 154.7MB (84.9MBps)[2K[100074D 86% [===============================> ] 133.1MB / 154.7MB (99.0MBps)[2K[100074D 87% [================================> ] 134.6MB / 154.7MB (79.4MBps)[2K[100074D 88% [================================> ] 136.2MB / 154.7MB (85.3MBps)[2K[100074D 89% [================================> ] 137.7MB / 154.7MB (99.0MBps)[2K[100074D 90% [=================================> ] 139.2MB / 154.7MB (88.7MBps)[2K[100074D 91% [=================================> ] 140.8MB / 154.7MB (91.1MBps)[2K[100074D 92% [==================================> ] 142.3MB / 154.7MB (99.0MBps)[2K[100074D 93% [==================================> ] 143.9MB / 154.7MB (99.0MBps)[2K[100074D 94% [==================================> ] 145.4MB / 154.7MB (90.4MBps)[2K[100074D 95% [===================================> ] 147.0MB / 154.7MB (97.6MBps)[2K[100074D 96% [===================================> ] 148.5MB / 154.7MB (99.0MBps)[2K[100074D 97% [===================================> ] 150.1MB / 154.7MB (96.1MBps)[2K[100074D 98% [====================================> ] 151.6MB / 154.7MB (97.7MBps)[2K[100074D 99% [====================================> ] 153.2MB / 154.7MB (99.0MBps)[2K[100074D100% [=====================================>] 154.7MB / 154.7MB (91.8MBps)

[32mUncompressing…[0m

[32mStoring download in artifact cache…[0m

[32mDone.[0m

[32m/home/travis/build/[…]/box.json updated with dependency.[0m

[32mInstalling to: /home/travis/build/[…][0m

-> 17 File(s) Installed

-> 0 File(s) ignored

[32mEureka, ‘adobe@9.0.2’ has been installed![0m

travis_time:end:1275fec4:start=1477056975097235425,finish=1477057017048786932,duration=41951551507

[0Ktravis_fold:end:install.3

[0Ktravis_fold:start:install.4

[0Ktravis_time:start:1777ce08

[0K$ /tmp/bin/box start cfengine=adobe@9.0.2

[32m[0m

[32mInstalling package [forgebox:adobe@9.0.2][0m

[33mVerifying package ‘adobe’ in ForgeBox, please wait…[0m

[32mInstalling version [9.0.2+282541].[0m

[32mVerified entry in ForgeBox: ‘adobe’[0m

[32mPackage found in local artifacts![0m

[32mUncompressing…[0m

[32mInstalling to: /home/travis/.CommandBox/temp/18EE4E51-3CF1-4924-BAFDC191A7086939[0m

-> 2 File(s) Installed

-> 0 File(s) ignored

[32mEureka, ‘adobe@9.0.2’ has been installed![0m

[32mExploding WAR/zip archive…[0m

[33mThe server for /home/travis/build/[…] is starting on 127.0.0.1:56249… type ‘server status’ to see result[0m

[1m[…][0m[1m ([0m[1m[32mrunning[0m[1m)[0m 127.0.0.1:56249 → /home/travis/build/[…]

Starting in background - the_name [adobe 9.0.2] Server is up - http-port:56249 stop-port:45814 PID:2641 version 3.4.10
`

Sorry, that log got cut off. Here it is: https://gist.githubusercontent.com/simonbingham/6fc1b95e0d1bf9c4aa53a3018ffee264/raw/cb17a2f0f0802cc70cab9af145d90d34e2802334/new_gist_file_0

Simon,

I’m assuming the file not found error occurs after the “server is starting…” message?

If so, I believe I’ve see the error before and it’s a known issue with installs on certain paths. The fix is in development, but didn’t make it to v3.3.0. Installing the bleeding edge should fix it. Change your Travis install block to:

before_install:
  # CommandBox Keys
  - sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
  - sudo echo "deb http://integration.stg.ortussolutions.com/artifacts/debs/noarch /" | sudo tee -a
    /etc/apt/sources.list.d/commandbox.list

install:
  # Install Commandbox
  - sudo apt-get update && sudo apt-get --assume-yes install commandbox-be

Simon, I don’t see any exception in that Travis output at all. Am I missing something?

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Jon, can you point out this ticket/commit? I’m not aware of any such development that didn’t make it into the 3.3.0 build.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Brad,

The one I’m referring to is: https://ortussolutions.atlassian.net/browse/COMMANDBOX-448

I’ll have to test the multi-engine unit tests again on Travis, though, as it looks like ticket should have made it in time for 3.3.0. I believe Simon’s error is the same one I was receiving when attempting to start up any engine except Lucee 4.5 on Travis.

Our Slack conversation about it was: #commandbox/p1475069766000002 on 9/28.

Jon

Ahh, this is simply an oversight in JIRA as it looks like I forgot to set the fix version for this ticket. This is absolutely fixed in 3.3.0. Here is the Commit which you can see is part of the 3.3.0 tag:
https://github.com/Ortus-Solutions/commandbox/commit/7e35e42a20dc8348abee247d8dd1192c0cb75638

Since I rarely use feature branches in CommandBox, every ticket that is closed prior to a release is typically part of that release.

I’m not quite sure what the OP’s issue is related too as there hasn’t been enough information provided to even know what’s going on. I need to see the actual full console output including the exception and it’s stack trace to know what’s happening.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com