alejandro-du / vaadin-microservices-demo

A microservices example developed with Spring Cloud and Vaadin
126 stars 63 forks source link

issue running discovery server #3

Closed pghdeveloper closed 5 years ago

pghdeveloper commented 6 years ago

Hi Alejandro,

I downloaded your microservices application. I have java and Maven. When I try to run java -jar target/discovery-server-0.0.1-SNAPSHOT.jar in the command window(I'm using Windows 8.1), I'm getting an error: java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present

I tried putting in

javax.xml.bind jaxb-api 2.3.0
pghdeveloper commented 6 years ago

I was able to resolve the issue by using java 9.0.4 for Maven. However when I try to run biz-application, I get an error:

nested exception is org.springframework.beans.factory.BeanCreationException: Er ror creating bean with name 'entityManagerFactory' defined in class path resourc e [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.clas s]: Invocation of init method failed; nested exception is java.lang.NoClassDefFo undError: javax/xml/bind/JAXBException

alejandro-du commented 5 years ago

A bit late, but here I go: Thanks for reporting and sharing the solution. Cheers!