There are 6 comments.
 
 
XWiki Commons / cid:jira-generated-image-avatar-c155b79e-8d6d-4113-9ac8-994d2060c404 XCOMMONS-3615 In Progress

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

 
View issue   ยท   Add comment
 

6 comments

 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:40
 

Ilie Andriuta Nikita Petrenko you can try setting environment.servlet.allowedRealPaths to your XWiki instance path as a workaround, in xwiki.properties. Something like:

environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\

Replace with your actual path that appears in the logs, making sure to leave a single backslash at the end. Please confirm.

Hi! I've tested with single backslash:

environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\{code}
and with single slash:
{code:java}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps/xwiki/

and with double slashes before the end, since this is how I configure my LibreOffice in the xwiki.properties file: C:/Program Files//LibreOffice

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

The issue still reproduces.

 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:41
 
{quote}[~iandriuta] [~npetrenko] you can try setting {{environment.servlet.allowedRealPaths}} to your XWiki instance path as a workaround, in {{{}xwiki.properties{}}}. Something like:
{noformat}
environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\
{noformat}
Replace with your actual path that appears in the logs, making sure to leave a single backslash at the end. Please confirm.
{quote}
Hi! I've tested with single backslash:
{code:java}
environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\{code}
and with single slash:
{code:java}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps/xwiki/{code}
and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}
{code:java}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps//xwiki{code}
The issue still reproduces.
 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:43
 
Hi! I've tested with single backslash:
{code:java}
environment.servlet.allowedRealPaths=D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL\webapps\xwiki\{code}
 

and with single slash:

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

and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}

 
{code:java}
environment.servlet.allowedRealPaths=D:/Win 10 Backup/LUCRU_D/TOMCAT_HOME 11.0.20 - 17.10.6 PostgreSQL/webapps//xwiki{code}
The issue still reproduces.
 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:44
 
Hi! I've tested with single backslash:
{code:java}

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

and with single slash:

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

and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}

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

The issue still reproduces.
 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:44
 
Hi! I've tested with single backslash:


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

 

and with single slash:

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

and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}

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

The issue still reproduces.
 
cid:jira-generated-image-avatar-e06787d6-909d-45ce-b5b4-64b4f6664766 Ilie Andriuta on 07/Apr/26 09:46
 
Hi! I've tested with single backslash:

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

 

and with single slash:

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

and with double slashes before the end, since this is how I configure my LibreOffice in the {{xwiki.properties}} file: {{C:/Program Files//LibreOffice}}

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

The issue still reproduces.


 

(It seems I cannot format the text as Code, since after saving the comment it gets messed up, in the Code format includes also other text that it was not included in edit mode, maybe a bug on the Jira side)