Lucee 5 Extension

292 views
Skip to first unread message

ADK

unread,
Jul 16, 2016, 9:20:27 PM7/16/16
to Lucee
Currently you can create extensions for the server context, web context or both. However, there are 2 issues with extensions that require components. First, the docs say this:
You can make components globally available by adding them to the folder /components.
However, this is currently not functioning as the deploy.log clearly shows when you try it:

Extension;not supported yet!;lucee.runtime.exp.ApplicationException: not supported yet!

For server extensions, you can get around this by using the /applications folder, but this does not work for web contexts.

This brings us to the second issue: it appears that Lucee has a default {lucee-web} component mapping, but not a {lucee-server} mapping. Is there a way to add this mapping automatically upon component installation? Otherwise, the user would need to add the mapping manually.

ADK

unread,
Jul 17, 2016, 5:38:39 AM7/17/16
to Lucee
OK, so I circumvented most of these issues by packaging the cfc component, along with the appropriate mapping, in a .lar file in the archives folder of the .lex. This allows it to auto-deploy in either server or web context and auto-map the component.

Is this the "best-practice" or just a workaround until the /component deployment is incorporated?

Also, the .lar files do not get removed on an uninstall, so that's still something that needs to be looked at...

I think I have ironed out most of auto-deploy issues, so if anyone wants to test out deployment, the extension is here:

https://github.com/Leftbower/cfspreadsheet-lucee-5

Jonathan Smith

unread,
Nov 11, 2016, 1:57:21 PM11/11/16
to Lucee
Hi,

I must be missing something... I can't for the life of me get cfspreadsheet for lucee 5 to install. My windows workstation is running Lucee 5.1.0.34, and I'm using the .lex from: https://github.com/Leftbower/cfspreadsheet-lucee-5.

I'm dropping the .lex into:  C:\lucee\tomcat\lucee-server\deploy

The error I get in  C:\lucee\tomcat\lucee-server\context\logs\deploy.log is:

"ERROR","Thread-225115","11/11/2016","13:51:06","","Extension;The Extension [C:\lucee\tomcat\lucee-server\deploy\cfspreadsheet-lucee-5.lex] is invalid,no Manifest file was found at [META-INF/MANIFEST.MF].;lucee.runtime.exp.ApplicationException: The Extension [C:\lucee\tomcat\lucee-server\deploy\cfspreadsheet-lucee-5.lex] is invalid,no Manifest file was found at [META-INF/MANIFEST.MF].
at lucee.runtime.extension.RHExtension.<init>(RHExtension.java:199)
at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4585)
at lucee.runtime.config.XMLConfigAdmin._updateRHExtension(XMLConfigAdmin.java:4573)
at lucee.runtime.config.DeployHandler.deploy(DeployHandler.java:80)
at lucee.runtime.engine.Controler.control(Controler.java:203)
at lucee.runtime.engine.Controler.access$000(Controler.java:58)
at lucee.runtime.engine.Controler$ControlerThread.run(Controler.java:108)

ADK

unread,
Nov 11, 2016, 2:49:09 PM11/11/16
to Lucee
That is odd? Check your download, perhaps it's corrupted?

I just checked and the manifest is definitely in the META_INF folder in the Github repo (which has been untouched in ~4 months.)

I wonder if it is an issue with case sensitivity on Linux? I've only ever tested it on Windows. The file is "Manifest.mf" lowercase in the archive. You could try renaming it in the .lex (a LEX file is just a zip) and see if that works, but that's just a pot-shot guess...

Jonathan Smith

unread,
Nov 11, 2016, 4:01:07 PM11/11/16
to Lucee
Update: 

The .lex copying installation worked perfectly in the web context:

Lex file:

Copying it to a web context:
ie,  \website\wwwroot\WEB-INF\lucee\deploy\ [ put lex here ]

Fábio Jr.

unread,
Dec 5, 2016, 12:40:09 PM12/5/16
to Lucee
Hi,
I had the same problem on a linux machine, and solved by opening the .lex file and changing the case from Manifest.mf file to MANIFEST.MF like ADK suggested.

Thank you!

ADK

unread,
Dec 5, 2016, 3:28:40 PM12/5/16
to Lucee
I've updated the extension now to uppercase that filename:

Reply all
Reply to author
Forward
0 new messages