FWIW, maven-shade-plugin configuration that properly merges META-INF/services
contents and thus preserves module auto-loading may look like the following
(taken from Bootique.io) :
.
...
org.apache.maven.plugins
maven-shade-plugin
true
You are welcome!
It is not a dependency problem it's a Cayenne module loading problem.
Java8 module wasn't enabled, thus causing your troubles.
If meta information is there (file in META-INF/services/) Cayenne will
load module without any help, but as it's not you should do this
explicitly.
On Th
Thank you so much Nikita! That did the trick! I would never have been
able to figure this out on my own.
I'm new to Maven as a build tool and I've never heard of the shade
plugin. When I was trying to figure out how to build a JAR file with
all dependencies I found this method via a Google
How do assemble your JAR file? Are you using maven-shade-plugin or
something like that? That may be a problem as it will strip out meta
information used by Cayenne's auto-loading mechanics.
Can you try to include Java8Module directly, like this:
ServerRuntime.builder().addModule(new Java8Module())
And if I look in the packaged JAR file I can see the cayenne java8
classes so I don't understand why there is an issue with it missing? Is
there something else to check or a dependency I'm missing that is needed
by Cayenne to utilize the java8 classes?
On 12/10/17 10:58 AM, Nikita Timofeev wr
Well, this definitely looks like cayenne-java8 module missing. Cayenne
tries to store your LocalDateTime as byte[].
On Thu, Oct 12, 2017 at 4:39 PM, Andrew Willerding
wrote:
> Hi Nikita,
>
> Your hunch is correct and I'm even more confused. I deleted all the records
> in the database and re-ran m
Hi Nikita,
Your hunch is correct and I'm even more confused. I deleted all the
records in the database and re-ran my application. It's complaining of
a cast to Date but I don't have any Date fields or objects. Now I'm
getting the following exception:
org.apache.cayenne.CayenneRuntimeExcept
Hi Andrew,
Your last exception seems like a Cayenne fallback to a serializable
type when it doesn't now how to handle given value, are there any
warnings preceding this exception?
Something like "Haven't found suitable ExtendedType for class..."?
On Wed, Oct 11, 2017 at 9:59 PM, Andrew Willerding
Sorry to bug the list but I seemed to have got around the DI issue by
deleting the Maven references to cayenne and reinstalling them but now
I'm getting another exception. I'm sure I have the correct versions of
Cayenne v4.0.B1 server, java8 and removed di. Am I still missing some
dependent li
Hi,
I'm not sure what I'm missing when I try to run my application jar
file. The intention is to load the cayenne configuration file from the
subdirectory etc.
I'm getting the following error
Exception in thread "main" org.apache.cayenne.di.DIRuntimeException: DI
container has no binding f
10 matches
Mail list logo