tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CarlotaVina <carlota_v...@hotmail.com>
Subject Plugin Maven TomEE and javax.ws.rs.ext.Link
Date Sun, 16 Jun 2019 07:40:40 GMT
Hello,

I have a resource JAX-RS and I work with plugin TomEE Maven. My application
starts right when I start server TomEE.

My problem is when I use the class  javax.ws.rs.core.Link


Link self = Link.fromUri(uriInfo.getBaseUriBuilder()
				.path(getClass())
				.path(getClass(), "getBookByIsbn")
				.build(book.get().getId()))
				.rel("self")
				.type("GET")
				.build();	


When I check with POSTMAN 
http://localhost:8080/rest-server/api/books/2526987585		

In the server I get the message

Caused by: java.lang.NoSuchMethodError:
javax.ws.rs.ext.RuntimeDelegate.createLinkBuilder()Ljavax/ws/rs/core/Link$Builder;
	at javax.ws.rs.core.Link.fromUri(Link.java:198)


How do I have to configure dependencies to use TomEE and JAX-RS?




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Mime
View raw message