This is not specific to Axon, but in my case the problem is caused by a couple of Axon classes.
Axon uses the ServiceLoader pattern to find user implementations of a couple of things. See
core/src/main/java/org/axonframework/common/annotation/ParameterResolverFactory.java
core/src/main/java/org/axonframework/serializer/ChainingConverterFactory.java
I have lots of jars on my class path. It looks like files that should be in META-INF are not found at run time. Either they are not found at all or one file is overwritten by a file with the same name in a jar that is loaded later on. The result is that ServiceLoader returns no services so I had to hack the above mentioned files and hard code the correct classes to make it work.
Has anyone else experienced this?
I have similar problems with other assets that go into META-INF, like persistence.xml type things, that are not found at runtime. I’m thinking this is probably related to the fact that I am running this with Vert.x (http://vertx.io/) but no one over there has anything to say about it.
/Per