Skip to content
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

Upgrade to a newer version of jaxb-xjc #54

Open
esfomeado opened this issue Jul 14, 2021 · 7 comments
Open

Upgrade to a newer version of jaxb-xjc #54

esfomeado opened this issue Jul 14, 2021 · 7 comments

Comments

@esfomeado
Copy link

The version used on the tutorial is old and the new ones introduce a few problems so I guess this needs a update.

@sc-yan
Copy link

sc-yan commented Aug 24, 2021

same here. after I run ./mvnw clean compile, the code generation failed. and I tried with gradle as well, still the same.
error message:

FAILURE: Build failed with an exception.

* Where:
Build file 'E:\samples\gs-consuming-web-service\complete\build.gradle' line: 36

@kubota-akihiro
Copy link

@sc-yan

I have same problem. how did you solve this problem?

./gradlew compileJava

> Task :genJaxb
[ant:xjc] [ERROR] Connection refused: connect
[ant:xjc] unknown location
[ant:xjc]

> Task :genJaxb FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '\path\to\gs-consuming-web-service\complete\build.gradle' line: 36

* What went wrong:
Execution failed for task ':genJaxb'.
> java.lang.NullPointerException

@sc-yan
Copy link

sc-yan commented Apr 5, 2022

@kubota-akihiro kind of forgot what I did but I think I didn't solve it. seems like jaxb-xjc is not easy to use. I decided to use this library to parse XML at last.
not sure what your problem is but hope it helps.

@jimmywshee
Copy link

jimmywshee commented Oct 31, 2022

Guys please refer to the guideline for solve the genJaxb issue. https://spring.io/guides/gs/consuming-web-service/#_run_the_target_web_service_locally It required to start the web service of server side only can run.

Follow the steps in the [companion guide](https://spring.io/guides/gs/producing-web-service/) or clone the [repository](https://github.com/spring-guides/gs-producing-web-service) and run the service (for example, by using mvn spring-boot:run) from its complete directory. You can verify that it works by visiting http://localhost:8080/ws/countries.wsdl in your browser. If you don’t do this you will see a confusing exception in your build later from the JAXB tooling.

@sc-yan
Copy link

sc-yan commented Oct 31, 2022

@jimmywshee your link is not referring to any issue. could you double check?

@jimmywshee
Copy link

Updated the link issue.. suppose it can helped to solved jaxb tooling issue

@Buzzardo
Copy link
Contributor

We're going to rewrite this guide soon. I'll leave this issue open, though, as a reminder of something to check when we do the rewrite. Paging @gregturn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants