On startup getting Sorry, access is forbidden for security reasons.
Hi,
From command line I have successfully build (with Java 11) the code (jw-community-7.0.36) and when I am deploying war file in Tomcat 8.5 it is running perfectly alright.
But when I am trying to build project in eclipse, while deploying in eclipse on startup I am getting "Sorry, access is forbidden for security reasons."
I am getting additional following info when I'm trying to run project from eclipse.
INFO 01 Mar 2023 02:51:10 bitronix.tm.BitronixTransactionManager - shutting down Bitronix Transaction Manager
ERROR 01 Mar 2023 02:51:11 org.joget.commons.spring.web.CustomContextLoaderListener - ===== Error initializing WebApplicationContext =====
Mar 01, 2023 2:51:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 01, 2023 2:51:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [classpath:log4j2.xml]
Mar 01, 2023 2:51:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Printing properties before Javascript servlet, note, the javascript properties might not be initialized yet:
*****************************************************
* Owasp.CsrfGuard Properties
*
* Logger: org.joget.commons.util.CsrfGuardLogger
* NewTokenLandingPage: null
* PRNG: SHA1PRNG
* SessionKey: OWASP_CSRFTOKEN
* TokenLength: 32
* TokenName: OWASP_CSRFTOKEN
* Ajax: true
* Rotate: false
* Javascript cache control: null
* Javascript domain strict: false
* Javascript inject attributes: false
* Javascript inject forms: false
* Javascript referer pattern: null
* Javascript referer match domain: false
* Javascript source file: null
* Javascript X requested with: null
* Protected methods: Empty HashSet
* Protected pages size: 0
* Unprotected methods: HashSet size: 1: [0]: GET
* Unprotected pages size: 3
* TokenPerPage: false
* Enabled: true
* ValidateWhenNoSessionExists: true
* Action: org.owasp.csrfguard.action.Log
* Parameter: Message = potential cross-site request forgery (CSRF) attack thwarted (user:%user%, ip:%remote_ip%, method:%request_method%, uri:%request_uri%, error:%exception_message%)
* Action: org.owasp.csrfguard.action.Error
* Parameter: Message = Security Violation.
* Parameter: Code = 403
* Action: org.owasp.csrfguard.action.Rotate
*****************************************************
Do you see I am missing anything or does this project run on eclipse? Your help will be highly appreciated.
Thanks