EUSurvey / EUSURVEY

EUSurvey is an opensource surveying tool. It features different types of questions, free text fields as well as more complex elements like editable tables and gallery elements. Results can be displayed as histograms, percentages or in full details and can be exported to different formats. All submitted answers (or a sub-set) can be published automatically on a dedicated webpage within the application. It is freely available for any organisation or administration, public or private and can also be deployed as an open source version.
https://ec.europa.eu/eusurvey
European Union Public License 1.2
126 stars 34 forks source link

Compilation problem in EUSurvey 1.5.1 #512

Open whakaoo opened 1 year ago

whakaoo commented 1 year ago

Dear all, I'm trying to compile the EUSURVEY-1.5.1but I'm getting different errors

from the command line using the 'mvn clean package' I got the following error: Failed tests: springTestContextBeforeTestMethod(com.ec.survey.controller.TestSurveyControllerRefactored): Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection In STS by compiling the project using the run as maven build... and therefore with the text 'package' and skipping the tests I got this: ERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-antrun-plugin:1.7:run[m m [m on project [36meusurvey[m: [1;31mAn Ant BuildException has occured: Unable to create javax script engine for javascript[m [[1;31mERROR[m] [1;31maround Ant part ...... @ 14:21 in C:\EUSURVEY-1.5.1\target\antrun\build-main.xml My current configuration is: Windows 10 x64 C:\Users\mauri>echo %JAVA_HOME% ---> C:\Program Files\Java\jdk1.8.0_211 C:\Users\mauri>echo %M2% ---> C:\apache-maven-3.8.8\bin Server version: 8.0.32 MySQL Community Server - GPL Apache Tomcat 8.5.84 Server Spring Tool Suite 4 (Version: 4.18.0.RELEASE)

I'm a newbie in JAVA so if you have some idea on how to solve this issue I thank you in advance.

clam2310 commented 1 year ago

The unit tests currently do not work. You could deactivate them using this parameter: -Dmaven.test.skip=true

Iddah commented 10 months ago

@whakaoo Were you able to compile the application? I am getting the following errors when i try to start the application from the Tomcat Web Application Manager: SEVERE [http-nio-8080-exec-285] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'answerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'answerExplanationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'participationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'surveyService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exportService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'skinService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ldapService': Unsatisfied dependency expressed through field 'ecasWorker'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ecasWorker': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'ecf.template' in value "${ecf.template}"

My current configuration is: C:\Windows\System32>echo %JAVA_HOME% ------> C:\Program Files\Java\jdk-1.8 C:\Windows\System32>echo %M2% -----> C:\Users\work\apache-maven-3.2.3\bin Apache Tomcat Server 8.5.95 Spring Tool Suite 4 (Version 4.19.0 RELEASE)

whakaoo commented 10 months ago

@Iddah I'm sorry but I can't help you. I have chosen not to use this library. Too many problems and limited technical support from developers make it unusable for me.

jobenjada commented 3 months ago

hey! Not sure if the EU Survey team is still actively developing the solution. We've been working on a free & open source (AGPLv3) survey platform for almost 2 year now and keep improving it daily: Have a look at Formbricks

Github repo: https://github.com/formbricks/formbricks Website: https://formbricks.com/

Happy to answer any questions in our Discord :)