Skip to content

java.lang.IllegalStateException: Cannot instantiate datasource instance of de.focus_shift.jaxb.JaxbConfigurationService #224

Closed Answered by mailq
oleksiy-rybakov asked this question in Q&A
Discussion options

You must be logged in to vote

I'm getting the same Exception. But I can also provide the cause of it. The root cause is - according to the stacktrace - a java.lang.ClassNotFoundException: jakarta.xml.bind.JAXBException
This on the other hand is due to a conflict in the jaxb-runtime version present in the (my) project. I have the "old" jaxb-runtime with the javax.xml.bind namespace; it comes from Spring 2. But jollyday requires the "new" jaxb-runtime with the jakarta.xml.bind namespace; which is only present in Spring 3.
Yes there are other cases when the jaxb-runtime version does not match, but the above circumstance is just one example. So check your dependencies if it has the wrong runtime. (Check which dependency p…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by derTobsch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #208 on May 05, 2023 10:34.