Question

Service definer: After upgrade from 9.1 to 10: "No such class: javax.ws.rs.core.Response"

  • 20 June 2021
  • 1 reply
  • 25 views

Hi,

 

After the upgrade from 9.1 to 10.0 I run into the following errors when publishing from within the Service Definer.

- Class not found: javax.ws.rs.container.ContainerRequestFilter
- Annotation 'javax.ws.rs.container.PreMatching' could not be resolved. Check if you have the right annotation name or use the fully qualified name.
- Annotation 'javax.ws.rs.container.Priority' could not be resolved. Check if you have the right annotation name or use the fully qualified name.
- method 'filter': [source error] no such class  javax.ws.rs.container.ContainerRequestContext
 errors:

- method 'a':[source error] no such class:  javax.ws.rs.core.Response
- method 'b':[source error] no such class:  javax.ws.rs.core.Response
- method 'c':[source error] no such class:  javax.ws.rs.core.Response

 

It looks that USoft 10 comes with some JAVA package changes. All errors seem to be related to the javax package. Please assist.

 

Thank you advance.

 


1 reply

Hey Marc, 

 

What you are seeing is indeed the result of dependency updates. Due to a trademark issue with Oracle, the javax.* package had to be renamed by the eclipse foundation. This means, when you've used the javax.* package, that the package needs to be renamed to jakarta.*. So in your example it should be jakarta.ws.rs.core.Response.
I hope this answers your question.


Kind regards,
Gert Kommer

Reply