org.glassfish.jersey.message.internal.WriterInterceptorExecutor
First of all, the problem started with me using the @XmlRootElement
annotation on my Object class to return XML. The video i was watching had a smooth flow without any extra dependency being added to the pom.xml
file for importing @XmlRootElement
. I overcame that problem by including these following dependencies and then import was succesful using import javax.xml.bind.annotation.XmlRootElement;
Dependencies
I had issues with Jersey Version 4 and Tomcat 10 so i switched to Jersey Version 2.43 and Tomcat 9.0.86. Everything is working fine in my get method.
StudentResource.java
It is even printing “Called…” when i send a request to “studs”. But i keep getting that error.
For referance this is my
- Object Class code: Student.java
- Deployment Descriptor: web.xml
- Pom.xml :1st Half : 2nd Half(Dependencies)