Yep, I’ve just had the self same thing when my shared hosting provider
moved my site to a Lucee 5.1 server over the weekend (not my
decision/choice).
All works fine under macOS 10.12.2 and CommandBox 3.4 / Lucee 5.1.0.34 but
I get the same error on their server which is using Linux
(2.6.32-642.13.1.el6.x86_64) 64bit.
I don’t have a mapping as my folder is located under the webroot so I think
mappings is not the issue.
In a frantic attempt to debug the issue I removed the leading “/” and got a
more predictable error of “could not find template
[myTemplateName.[cfc|lucee|cfm|lucee]] in the following directories
[myCustomTageFolder]”.
So it seems like some issue supporting the “/” prefix???On Monday, 23 January 2017 10:52:33 UTC, Matt Casey wrote:
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
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) 64bitI’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;
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;
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
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?