Open SeSodesa opened 2 years ago
Or maybe the .properties
file is to be copied manually to the Tomcat conf
folder? If so, it wouldn't hurt to know what else needs to be deployed manually. Maybe a clear mention in the documentation for any Tomcat newcomers would be in place?
As an update, moving the
edci-viewer/edci-viewer-web/src/main/resources/config/ext//viewer.properties
file to the location
$CATALINA_HOME/conf/edci/viewer/viewer.properties
indicated by the error message in catalina.out
did not resolve the issue. Tomcat still complains about a missing file in exactly the same manner, even after it has been restarted.
Edit: this should not be a permissions issue, as Tomcat is the sole owner of the $CATALINA_HOME
directory.
I have been able to compile the project with Maven and NPM, but have since run into issues with logging in to the Europass and viewing the diploma pages. I have done as follows, with slight modifications to the actual contents of certain strings:
copied the contents of
configuration/documentation/mvn_settings.xml
into the file$HOME/.m2/settings.xml
,installed the
.jar
files inconfiguration/external_libs/
into my local Maven repository$HOME/.m2/repository/
, so that Maven can locate them during the project build process,disabled any malfunctioning tests that prevent Maven from compiling the project,
built the project with Maven and NPM in that order and
placed the generated
.war
files into mytomcat/webapps/
folder.I am able to start up the Angular front-end server at
localhost:4200
by runningin
edci-viewer/edci-viewer-web/src/main/angular
, as can be seen in the below video.https://user-images.githubusercontent.com/19917000/134295319-08cc4fd8-673d-431a-b83b-04ddd125f470.mp4
The error seen in the lower right corner turns out to be the result of a CORS violation. This is strange, because the file
says the following:
Now, Tomcat itself is running at
localhost:8080
, as can be verified by running the commandsystemctl status tomcat
(and just by looking at the fact that the 404 page was displayed in the first place):Logging in to the Tomcat manager app also reveals, that the
.war
files have been deployed successfully:However, trying to actually start the webapps up in the manager results in an error
Looking into the logs in
reveals the following:
In other words, the
viewer.properties
file located in the sources and whose contents contain a CORS whitelist must not have been placed into a correct location in the.war
file generated by the Maven build.Now, I am still learning the technologies used here, and apparently an instance of a MitreID server also needs to be set up as well to make this work, but since some settings seem to be off from the get-go, there is not much I can do. I can program, but I can't know how a system is supposed to work without these semantic errors (?), if there is no documentation of how these different components are supposed to be integrated.
My question then is, what exactly do I need to set up (and how) to be able to log into Europass locally, and is everything in the settings (disregarding any user-defined admin usernames and passwords) as intended? If it is not, what do I need to change to have the compilation process work as intended, such as having the
viewer.properties
file properly copied to a desired location?