spring-boot with flyway and how to get your tests working

spring-boot with flyway and how to get your tests working published on No Comments on spring-boot with flyway and how to get your tests working

Problem You have a spring boot application with flyway migration scripts for a MySQL database. Now your tests are failing because you don’t have the database available during unit testing and flyway is complaining. Solution Use an in memory H2 database in MySql mode. How Create a file called flyway_init.sql in src/test/resources with the following… Continue reading spring-boot with flyway and how to get your tests working

How to fix time drift in docker

How to fix time drift in docker published on No Comments on How to fix time drift in docker

Problem You have docker running on your machine and after setting your laptop into standby a couple of times the docker time is running behind the local machine time. I noticed this when using portainer (I love that tool so I use it a lot) but when logging in I got the “Your session has… Continue reading How to fix time drift in docker

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper published on 2 Comments on java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

Problem You just installed GlassFish 4.1.1 and deployed your java jax-rs application to it and it fails with the above mentioned error. Solution Well as far as I found out it has not yet officially been fixed by Oracle. A solution has been described there and I can confirm that for me it worked. The… Continue reading java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

SystemTray icon on Mac OSX problem

SystemTray icon on Mac OSX problem published on No Comments on SystemTray icon on Mac OSX problem

Problem I want to have an icon in the SystemTray of Mac in order to sync some calendar stuff. Solution

Extra information I came to this solution via this code snippet Before finding this snippet I have tried a variety of options, namely: ScalaFx, JavaFx, Swt, com.dorkbox.SystemTray. ScalaFx/JavaFx can handle native menu’s via the… Continue reading SystemTray icon on Mac OSX problem

Kill zombi processes on linux

Kill zombi processes on linux published on No Comments on Kill zombi processes on linux

Problem Sometimes I have processes called zombi processes reported by my login screen. I could not seem te get rid of them and now I can 🙂 Solution

Extra information Any of the commands above can of course be done or not according to your wishes. The first command searches for the zombi processes… Continue reading Kill zombi processes on linux