mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

Cannot run the application #67

Open matizakoo opened 1 year ago

matizakoo commented 1 year ago

Hi Daniel I am not able to run application. I've created classes which are mentioned in ,,Technical requirements" and also changed .yaml file for my own MariaDB server.

Also /private/var/folders/2q/** is set 777 permission but still get error like that: shell> /private/var/folders/2q/190xvk2d6810kn6zwxljvtdc0000gn/T/MariaDB4j/base/bin/mysql -u root mysql

whole console log Is under the link: https://pastebin.com/BPQn6ANV

I tried to run cosmo-webaps package. Cosmo-api and cosmo-core with mvn clean spring-boot:run/mvn clean install doesn't run the application.

Maybe you have some steps how to finish configurating application to run it. I will be very thankful :)

danielgrigore commented 1 year ago

Hi @matizakoo,

From the log files it looks like the application still tries to start an embedded MariaDB instance and it fails. In order not do that and use your own MariaDB instance you have to comment out/remove the following two dependencies from cosmo-webapp pom.xml file

<dependency>
  <groupId>ch.vorburger.mariaDB4j</groupId>
  <artifactId>mariaDB4j-core</artifactId>
</dependency>
<dependency>
  <groupId>ch.vorburger.mariaDB4j</groupId>
  <artifactId>mariaDB4j-app</artifactId>
</dependency>

I also updated the pom.xml file to use the latest cosmo-core version with Java 17. Cheers,

matizakoo commented 1 year ago

Thank you Daniel :) I will check it later