Skip to main content
March 1, 2019
Question

CF2016 jsp file stop working

  • March 1, 2019
  • 1 reply
  • 1271 views

I'm upgrading our server from CF9 to CF2016 now. CF2016 can successfully talking to Apache and our cfm web pages seems working perfectly with cf2016. However, all the .jsp files stopped working. When trying to access a simple test.jsp file throught https://our_web_url/test.jsp, the raw code displayed like this:

Any hint on how to debug next would be really appreciate!

    This topic has been closed for replies.

    1 reply

    Community Expert
    March 2, 2019

    JSPs seem to work fine for me with CF 2016 and 2018. I think this will be down to your web server's configuration. Your web server needs to process JSPs the same way it processes CFM and CFC files. In IIS, you'd do this by ensuring you had the same handler mappings etc for all three file extensions.

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC
    Charlie Arehart
    Community Expert
    Community Expert
    March 2, 2019

    luvianw4652648,, you say you're moving from cf9.There was in fact a change in cf10 where CF would not run JSPs unless they were in the CF webroot (cfusion/wwwroot) rather than in your external web server root.

    Are you indeed trying to serve them via an external web server, like IIS?

    And Dave, are the jsps you're running in the cf webroot? If not, that would be interesting to hear.

    Also, note that cf has a characteristic whereby pages in the cf webroot (cfm or jsp) can be accessed WHEN REQUESTED BY THE EXTERNAL WEB SERVER. So yes, I'm saying to luvianw4652648 that you should find you CAN still access the jsp via IIS simply by putting the jsp file in the cf webroot (or subdolder) but accessing it via IIS *AS IF* it was in the IIS web root (or its subfolders) 

    That said, I am writing this on my phone, so not testing it, but sharing it from past experience. I look forward to hearing back from you both.

    /Charlie (troubleshooter, carehart. org)
    March 4, 2019

    Hi Charlie,

    Thank you for your quick reply. We are using Apache for our web server instead of IIS.

    I put the test.jsp file in the wwwroot and try to access it via out virtual host, still only displaying raw code. Is there any handler mappings like Dave mentioned I need to do?

    Thanks.