There is 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-94e65e69-a239-49f7-a98a-a31d1bb8c586 XCOMMONS-3615 In Progress

XWiki fails to start on Tomcat on Windows because critical resource files cannot be loaded

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-f16a9c2c-0abf-4596-b311-ed8153c86ce9 Ilie Andriuta on 07/Apr/26 10:08
 
Hi! I've tested with single backslash:

{noformat}
environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\
{noformat}
The log generated is:
{noformat}
2026-04-07 10:56:40,395 [main] WARN  o.x.e.i.ServletEnvironment     - The resource path [/WEB-INF/cache/infinispan/config.xml] is trying to access a resource outside of the resource root. It's expected to be located inside one of the allowed real locations [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\\, /etc/xwiki/], but its real location is [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\WEB-INF\cache\infinispan\config.xml].{noformat}
and with single slash:

{noformat}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps/xwiki/
{noformat}
The log generated is:
{noformat}
2026-04-07 11:00:27,801 [main] WARN  o.x.e.i.ServletEnvironment     - The resource path [/WEB-INF/cache/infinispan/config.xml] is trying to access a resource outside of the resource root. It's expected to be located inside one of the allowed real locations [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\\, /etc/xwiki/], but its real location is [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\WEB-INF\cache\infinispan\config.xml].{noformat}
 
and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}

{noformat}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps//xwiki
{noformat}

The issue still reproduces. log generated is:
{noformat}
( 2026-04-07 11:02:37,069 [main] WARN  o.x.e.i.ServletEnvironment     - The resource path [/WEB-INF/cache/infinispan/config.xml] is trying to access a resource outside of the resource root. It seems I cannot format 's expected to be located inside one of the text as Code allowed real locations [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\\ , since after saving the comment it gets messed up /etc/xwiki/] , in but its real location is [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\WEB-INF\cache\infinispan\config.xml].{noformat}
Tried as well with with double slashes before
the Code format includes also other text that it was not included in edit mode end , maybe but with a bug single slash on the Jira side) end:
{noformat}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps//xwiki/{noformat}
The log generated is:
{noformat}
2026-04-07 11:08:21,332 [main] WARN  o.x.e.i.ServletEnvironment     - The resource path [/WEB-INF/cache/infinispan/config.xml] is trying to access a resource outside of the resource root. It's expected to be located inside one of the allowed real locations [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\\, /etc/xwiki/], but its real location is [D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\WEB-INF\cache\infinispan\config.xml].{noformat}
The issue still reproduces.