• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

JSP page loading issue

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to upgrade my project from Spring 4 to Spring 5.
I am able to build the project and start the server without any errors.
But when I try to access the home page, only JSP comments and page directive code is shown.



As per the Spring upgrade requirement Servlet is upgraded from 2.4 to 3.1.

I have updated the version changes in the web.xml file.

When I check the server log and application log there is no exception message printed and also logs from  the interceptor and filter classes also printed.

Please help to suggest to resolve this issue.
 
Saloon Keeper
Posts: 28997
214
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring should not be affecting your JSPs. But the URL that you use to see the JSP has to end with ".jsp", as does the JSP file itself.

If you have done that, check web.xml to make sure you do not have a URL pattern defined for something like "*.jsp" or for that matter, the full JSP resource path.

If you've done all that and it fails, then you probably don't have your webapp deployed in WAR format. You cannot just dump files into a webapp server and expect it to work just like a file server does.
 
Crusading Chameleon likes the size of this ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic