Hey there, Does anyone have a docker image that ha...
# lucee
g
Hey there, Does anyone have a docker image that has been setup for building/testing Lucee on Windows host? If not that's fine... I'll work through setting one up myself... I have all the prerequisites, setup. Lucee BUILDS fine - but I seem to be having errors with the tests. It would seem I have a permissions issue - bhut that is weird - because I am running
Copy code
cd loader
mvn test
from a CMD prompt that I started with "Run as Administrator". So before I went into a rabbit-hole - I thought I would ask if there was something already setup - that I could use. Thanks!
The errors I am getting are; Right at the beginning - missing log4j
Copy code
[INFO]      [java]    [script] java.lang.RuntimeException: Lucee is missing the Bundle jar [log4j:null], and has been prevented from downloading it. If this jar is not a core jar, it will need to be manually downloaded and placed in the {{lucee-server}}/context/bundles directory.
z
what sort of errors? there are a number of errors with a few tests on windows • cfindex related shite • a date mask error • exif errors with 6.0 this is in the build archives step? Lucee prints out a lot of warnings at the moment, there's some stuff which needs to be cleaned up
g
Copy code
[INFO]      [java]    [script] -------------- Deploy.Log ------------
[INFO]      [java]    [script] "Severity","ThreadID","Date","Time","Application","Message"
[INFO]      [java]    [script] "ERROR","main","09/13/2022","23:58:18","extract-extension","Could not find [/extensions/.index] defined in the index of the lucee.jar"
I'm guessing this is one to ignore - since I'm not specifically testing any extensions?
Copy code
[INFO]      [java]    [script] testCacheClearTagsRAM
[INFO]      [java]    [script]
[INFO]      [java]    [script]  Errored: Can't delete file [C:\Users\gavin\Workspace\Lucee\test\functions\datasource\cacheClear\cacheClear_1219.h2.db]
[INFO]      [java]    [script]
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\functions\CacheClear.cfc:123
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\functions\CacheClear.cfc:76
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\_testRunner.cfc:376
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\run-tests.cfm:203
[INFO]      [java]    [script]
[INFO]      [java]    [script]
[INFO]      [java]    [script]  lucee.runtime.exp.NativeException: Can't delete file [C:\Users\gavin\Workspace\Lucee\test\functions\datasource\cacheClear\cacheClear_1219.h2.db]
[INFO]      [java]    [script]
[INFO]      [java]    [script]  at lucee.commons.io.res.type.file.FileResource.remove(FileResource.java:305)
[INFO]      [java]    [script]  at lucee.commons.io.res.type.file.FileResource.remove(FileResource.java:296)
[INFO]      [java]    [script]  at lucee.runtime.tag.Directory.actionDelete(Directory.java:777)
[INFO]      [java]    [script]  at lucee.runtime.functions.file.DirectoryDelete.call(DirectoryDelete.java:34)
[INFO]      [java]    [script]  at functions.cacheclear_cfc$cf.udfCall1(/test/functions/CacheClear.cfc:123)
[INFO]      [java]    [script]  at functions.cacheclear_cfc$cf.udfCall(/test/functions/CacheClear.cfc)
[INFO]      [java]    [script]  at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
[INFO]      [java]    [script]  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
[INFO]      [java]    [script]  at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
[INFO]      [java]    [script]  at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:787)
[INFO]      [java]    [script]  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
[INFO]      [java]    [script]  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1769)
[INFO]      [java]    [script]  at functions.cacheclear_cfc$cf.udfCall1(/test/functions/CacheClear.cfc:76)
And... there are also issues that at least read like there are genuine bug; Either in the test or the code it's exercising.
Copy code
[INFO]      [java]    [script] checking LSparseDateTime() function
[INFO]      [java]    [script]
[INFO]      [java]    [script]  Errored: can't cast [6 avr. 2008 01:02:03] to date value
[INFO]      [java]    [script]
[INFO]      [java]    [script]  Detail: to add custom formats for fr_CH, create/extend on of the following files [fr-CH-datetime.df (for date time formats), fr-CH-date.df (for date formats) or fr-CH-time.df (for time formats)] in the following directory [<context>/lucee/locales].
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\functions\LSParseDateTime.cfc:170
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\_testRunner.cfc:376
[INFO]      [java]    [script]  C:\Users\gavin\Workspace\Lucee\test\run-tests.cfm:203
[INFO]      [java]    [script]
[INFO]      [java]    [script]
[INFO]      [java]    [script]  lucee.runtime.exp.ExpressionException: can't cast [6 avr. 2008 01:02:03] to date value
[INFO]      [java]    [script]
[INFO]      [java]    [script]  at lucee.runtime.op.date.DateCaster.toDateTime(DateCaster.java:192)
[INFO]      [java]    [script]  at lucee.runtime.functions.international.LSParseDateTime._call(LSParseDateTime.java:73)
[INFO]      [java]    [script]  at lucee.runtime.functions.international.LSParseDateTime.call(LSParseDateTime.java:45)
[INFO]      [java]    [script]  at functions.lsparsedatetime_cfc$cf.udfCall(/test/functions/LSParseDateTime.cfc:170)