I've recently installed an application for a customer on a shared server (to save money) but am running into a mapping/cfimport problem that I've not seen before.
I have the mappings defined in the web-admin but whenever I try to <cfimport> a custom tag library I get the following error.
"invalid definition of the attribute taglib [{blahblah}]"
With {blahblah} being the name of the custom tag folder I want to import.
This is on a shared server where I only have access to the Lucee web-admin.
I do not have access to the Lucee server-admin.
The server is running;
Lucee: 5.1.0.34
OS: Linux (3.10.0-327.18.2.el7.centos.plus.x86_64) 64bit
Servlet Container: Apache Tomcat/8.5.6
Java: 1.8.0_112 (Oracle Corporation) 64bit
I've been working the the hosting provider support to try and resolve the issue but I'm not getting anywhere and feel like I have my hands tied.
I built a very simple test to highlight the issue.
The mapping is defined in the web-admin as;
<mapping inspect-template="once" physical="{web-root-directory}/test/tags/" primary="physical" readonly="false" toplevel="true" virtual="/newtestmapping"/>
There is a very basic custom tag in the webroot /test/tags/ folder.
Then in a test.cfm I try to import the library using;
<cfimport taglib="/newtestmapping/" prefix="test" />
It fails with the error;
"invalid definition of the attribute taglib [/newtestmapping/]""
Using expandpath() I can see that the mapping is resolving to the correct path.
{Redacted...}/httpdocs/test/tags/
I've been using this method succcessfully for years across CF, Railo and now Lucee without ever having to give it much thought. I have the exact same application running live in two other Lucee environments and have tested the code using various setups with commandbox
https://www.ortussolutions.com/products/commandbox and it all works as expected.
I'm completely stumped.
Could it be a permissions issue?
Or is there a difference between mappings defined in the web-admin compared to those defined in the server-admin.
Has anyone else had similar experience?