I am using netbeans to create my project and my code runs fine on Localhost . I create a war file and deploy on tomcat 7 and 8 , and it throws Internal server Error 500 . A little changes in code after a day of problem solving got us here to a point where our rest api where we use Mediatype.Application_json , it crashes gives the Internal server error .
When a string is passed using Mediatype.TEXT_HTML , we dont have an issue .
Unfortunately POST for rest api only taken in JSON and I am desperately trying to find someone who can solve this
Please help