I'm having an issue building the Lucee's 5.3.9.133...
# lucee
d
I'm having an issue building the Lucee's 5.3.9.133 source code. The error I'm getting is:
Copy code
javax.servlet.ServletException: java.lang.RuntimeException: Lucee is missing the Bundle jar, javax.mail.activation:1.6.2.0000L, 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.
It feels like I'm missing some dependency (even though I've checked out the code from Github). I've attached the full stack trace.
b
@dswitzer That's likely just an issue on the bleeding edge of Lucee. The Lucee build is configured to disable Lucee's feature of auto-downloading missing OSGI bundles to help root out issues with lucee configuration at build time.
I would check Lucee's github actions and see if the latest builds are failing with the same error. if so, there's not much to do other than wait for them to fix it, or go fiddle with the build to stop disabling bundle downloads
z
yeah, but the build should download those at the start of the process. auto download is only disabled at later steps
b
Right, the error is being thrown when actually booting up the newly built Lucee to run the tests
A different step from that part of the build that actually creates the lucee jar and downloads the default OSGI bundles that get packaged with it
z
maybe the maven cache is corrupted?
the .m2 dir under your user profile?
github actions runs a fresh maven download for any PRs
b
@zackster Do you know right off where Lucee lists the bundles that are downloaded as part of the build? I know where the extensions for the core are listed, but not the OSGI bundles that get baked into the lucee jar.
z
that's all from pom.xml
👍 1
then it reads the manifest and copies it in
and warns when there's a mismatch
b
Ok, so the first step would be to check and actually see if
javax.mail.activation:1.6.2.0000L
is listed in the POM
z
it is
👍 1
was looking at that yesterday 🙂
b
@dswitzer The next step would be to inspect your lucee.jar that was built (it may still be in a temp folder, not sure) and see if that bundle is inside the bundles folder when you unzip the jar
I would assume not since it threw the error, but if it's in the POM, it sounds like it should be in the jar
d
I'm trying to compile the 5.3.9.133 release, so the code should be stable. I just tried clearing the Maven cache using:
Copy code
mvn dependency:purge-local-repository
I'm seeing if that helps.
That seems to be the issue. I've just submitted a pull request for the docs to add that information.
👍 1
z
cool, love it when a wild guess works out, thanks for the PR.
b
Sweet, good chance. I'm sure I'll run into that myself some day 👍
z
PR merged
I just wanted to make cfml better and somehow ended up learning all this crap about java build systems!
d
There is no simple build systems. No matter what the original goals are, they all seem to get really complicated over time and usually expect the users to already know everything about the tools! 😆
z
now that 5.3.9 is out, 5.3.10 will be a minor release, I've done a shitload of work to make the 6.0 build process way nicer