-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting exception package javax.xml.bind.annotation does not exist with JDK 17 #279
Comments
Hi @Gus-2 The support of jakarta is currently under progress. We know that a lot of people are waiting for it and hope to provide it soon with both v3 and v4 of this plugin. V3 : will support jakarta with jaxb 3 and jdk8 baseline Regards |
See also if this tip can provide you a QW for your build |
Ok Good luck ! #233 did help. Thanks for the quick answer |
Linked to #199 |
@laurentschoelens Hi Laurent, we are trying to decide if we should wait for the jakarta support which you mentioned under progress, or completely find a different solution. We also have dependencies to a variety of basicjaxb plugins, and we use jaxb4. Not to put any pressure, but do you have a ballpark number when can we expect this? more like in weeks or months? thanks |
Hi @icarusfire We are currently working on 2.X version with 3 repos merged (this one, basics, annotate). |
@laurentschoelens Thanks, is that solution going to help with basicjaxb plugin dependecnies and when using jaxb4? |
It depends which basicjaxb plugins you're using but I guess that you're using ones that generate annotation with jaxb-javax version. Could you give it a try first and tell me if it works ? |
I have this error: I use maven-jaxb2-plugin which also depends on: jaxb-xew-plugin |
Could you use the 2.0.2 version ?
|
still same error : ) here more details about my config:
|
Could you provide more context ? |
ant plugin should be outside..my bad trying again |
ok now I get Unable to parse input schema(s). Error messages should have been provided. |
you should have a more detailed error in the upper log of the build |
Also the jaxb-basics-tools should not be included in my opinion. You only need jaxb-basics dep in plugin section (see https://github.com/highsource/jaxb2-basics/wiki/Using-JAXB2-Basics-Plugins#using-jaxb-plugins-with-maven) and jaxb2-basics-runtime in dependency of project |
org.xml.sax.SAXParseException: Attribute "xmlns:jxb" was already specified for element "jxb:bindings". |
never mind found the problem, run again now this: |
guess you should have a binding in "javax" mode, since you're generating javax classes and ant-maven is going to replace javax by jakarta after generation |
i did that and got this: |
which version of jaxb2-basics are you using ? |
1.11.1 and these are the plugins again: |
1.11.1 should not be used -> release by mistake : try 0.13.1 |
ok this is my current setup, and still has teh same error: : An API incompatibility was encountered while executing org.jvnet.jaxb:jaxb-maven-plugin:2.0.2:generate: java.lang.NoSuchMethodError: 'java.lang.Object org.jvnet.jaxb2_commons.util.CustomizationUtils.unmarshall(javax.xml.bind.JAXBContext, com.sun.tools.xjc.model.CPluginCustomization)'
|
This is a bit weird |
wow I think it worked now, I see it created classes(not sure it did correctly but they are there). So what about the xew plugin we removed? |
I'll look more deeper tomorrow but xew depends on jaxb-basics so I guess it mismatched config. |
ok thanks and how do i know if i need it, I am middle of migration and nothing works right now, so passing unit tests is a long way to go :) |
but regardless thanks a lot for your help! let me know if you find out more tomorrow. good night |
You're welcome |
you should use xew 1.11 version (bases on jaxb-basics 0.12.0) |
thank you! |
Tell me if it worked. |
works! btw what is the difference between the suggested org.jvnet.jaxb plugin and the one I was using |
Just the same. |
See #262 and release note of 2.0.2 |
you mentioned above "and jaxb2-basics-runtime in dependency of project" is this still necessary? |
No if not already in your legacy dependencies, you can remove it. |
@Gus-2 : v4 based on jaxb-ri 4.0.2 will be out in few hours |
Fixed by #410 |
Hi,
I am having an issue while generating classes based on a wsdl file.
I do get the warning :
But as already discussed #243 , the files are correctly generated.
The issue is that I am getting this error when opening the generated files : package javax.xml.bind.annotation does not exist
I am using JDK 17, Springboot version 3.1.1.
Here is the pom file configuration :
The text was updated successfully, but these errors were encountered: