I'm having trouble with identifying issue with below code snippet. When I click the link "mypage", it throws servlet not found exception. File not found: /servlet/com.df.csImaging.DisplayImageServlet.
I've attached the project structure. The jsp page where below code resides is under WebContent. I'm not a web developer, but the servlet path seems little odd. The puzzle is, it was working all good since 2014 and all of a sudden it broke. I believe there is something wrong with the path specified in the showImage() function, but not sure how to point to the servlet under com.df.csImaging location. Can you please advise?
How did you map the servlet in web.xml or with an @WebServlet annotation? Because without either of these, the servlet is just a class. It will definitely not be available under servlet/<class name> (unless if you map it like that).
This was working fine without any issues before. The only difference I notice is websphere server patch upgrade. Earlier I used to deploy it on WAS 220.127.116.11 and now it is WAS 18.104.22.168. There was a fix pack upgrade happened and now current version of WAS is 22.214.171.124. Not sure, if this really matters, but this is the only difference I could see between both work-spaces.