On startup getting Sorry, access is forbidden for security reasons.

Confluence User - 01 Mar, 2023

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

installation

4


01 Mar, 2023 •
confluenceUser •
•
confluenceUser •

Hi,

Also, please note while importing the project in eclipse I also got following error message "No marketplace entries found to handle aspectj-maven-plugin:1.11:compile in Eclipse.  Please see Help for more information.

Thanks

01 Mar, 2023 •
confluenceUser •
•
confluenceUser •

Hi, the "Error initializing WebApplicationContext" is likely due to an incorrect datasource configuration. If you can build it successfully from the command line, then it's likely an Eclipse specific issue. I am not that familiar with Eclipse, so perhaps you might want to ask in some Eclipse specific forums or sites.

01 Mar, 2023 •
confluenceUser •
•
confluenceUser •

Hi,

Which IDE you use to run java project, here Joget, in debug mode?

Thanks,

Umesh

06 Mar, 2023 •
confluenceUser •
•
confluenceUser •

I use NetBeans IDE and I build projects using Apache Maven from the command line.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print