CFIMPORT and Web-Admin mappings
Description
Environment
Windows Server 2012, Java 1.8.0_111, Tomcat running Lucee.
relates to
Activity

Marcel Dix 6 May 2020 at 15:55Edited
I can confirm it is still happening on 5.3.6 RC and only for web admin mappings.
Strangely after increasing the Java heap space it started to work normally, then when I decreased it again it was still fine. What?
I decided to go outside to take a stroll.

Daniel Bleisch 15 November 2019 at 10:10Edited
Thanks for the hint. Mappings in the per-site web-admin are actually the configurations that we use productively. I just moved the mappings to the server administrator. So far it looks good. I'll keep an eye on it for the next days.
I will also upgrade the complete installation to the latest Lucee configuration with Tomcat 9.0.14 & OpenJDK 11.0.3 (currently Lucee 5.3.3.62 with Apache Tomcat/8.5.40 & Java 1.8.0_212 64bit).

Harry Klein 15 November 2019 at 08:34
Could you please try this:
When I map at the server-admin the mapping works
Can you confirm that server mappings are working for you too and only web mappings not?
The Lucee throw statement is here:
https://github.com/lucee/Lucee/blob/dbb220d72027fea68f927654388456515289867a/core/src/main/java/lucee/transformer/cfml/evaluator/impl/Import.java#L140

Daniel Bleisch 14 November 2019 at 16:10Edited
I had the same problem on a Lucee instance on CentOS 7 (with 16GB RAM) with CONTENS 5.6.2 and several smaller projects under development.
The affected Lucee versions varied between 5.2.8.50 and 5.3.3.62. The problem has been increasing for the last 1-2 months. Frequently after restarts or adjustments in templates during running operation / or corresponding deployments.
The allocation of different amounts of RAM aggravated the problem or reduced it.
Current: CATALINA_OPTS="-Xms6144m -Xmx6144m -XX:+UseG1GC -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=70 -XX:G1ReservePercent=15 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:+AggressiveOpts";
But I couldn't even say that more RAM mitigated the problem.
Sometimes I got the impression that the error was forced when large applications/templates were loaded/executed too quickly shortly after Lucee restarted.
I will clarify whether SELinux has an effect on the error message.

Barbara Renowden 30 April 2018 at 19:23
I have just run across the same issue on a site that worked on Lucee 4.5 but we upgraded our servers and the latest stable release of Lucee 5.2.6.60 we now have this issue on one of our sites.
<cfimport taglib="/default/includes/display_objects/custom/datepicker/CustomTags" prefix="tmt">
throws an error.
invalid definition of the attribute taglib /default/includes/display_objects/custom/datepicker/Custom
I do not have a mapping set in the site Lucee admin this was working just fine without is before the upgrade. Any ideas how to fix this?
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
PatrickPatrickPriority
CriticalNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Details
Details
Assignee

Reporter

Priority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Myself and several members of the Lucee Google Group have been battling the issue of web mappings and cfimport. I understand that the https://luceeserver.atlassian.net/browse/LDEV-355#icft=LDEV-355 was rejected based on the taglib is something compiled so the mapping cannot be dynamically set in application.cfc and thats fine.
When I map at the server-admin the mapping works but I am unable to have more than one of the same mapping which I need, which is the purpose of the web-admin I thought. BUT when mapping at the per-site web-admin a specific mapping does not work. So what this appears to be is that the web-admin mapping is being ignored and only looking at the server-admin for mappings by CFIMPORT. Let me know if any clarifications are needed.