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

Necessity of JAXB API dependencies in vaadin-archetype-application-example #139

Open
mehdi-vaadin opened this issue May 25, 2018 · 0 comments
Labels
v8 Issues for Vaadin 8 versions of the archetypes

Comments

@mehdi-vaadin
Copy link

I tried to create a Vaadin 8 CRUD example using vaadin-archetype-application-example by Maven as explained in Vaadin.com "Get Started" section (https://www.youtube.com/watch?v=sMGHSK_97NI). But I faced the following error when I wanted to log in:

java.lang.IllegalStateException: BeanValidationBinder cannot be used because a JSR-303 Bean Validation implementation not found on the classpath or could not be initialized. Use Binder instead

I realised that it’s because I’m using Java 10 and it does not include JAXB API in its default class path. So, as explained here: https://stackoverflow.com/a/43574427/5613292 , I added the following dependencies to my pom.xml and the problem is resolved:

<dependency>
   <groupId>javax.xml.bind</groupId>
   <artifactId>jaxb-api</artifactId>
   <version>2.2.11</version>
</dependency>
<dependency>
   <groupId>com.sun.xml.bind</groupId>
   <artifactId>jaxb-core</artifactId>
   <version>2.2.11</version>
</dependency>
<dependency>
   <groupId>com.sun.xml.bind</groupId>
   <artifactId>jaxb-impl</artifactId>
   <version>2.2.11</version>
</dependency>

So, I think it must be resolved in the same way in the maven archetype.

@pleku pleku added the v8 Issues for Vaadin 8 versions of the archetypes label Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues for Vaadin 8 versions of the archetypes
Projects
None yet
Development

No branches or pull requests

2 participants