Coldfusion 10 - JSP File Not Found - 404 Error

We recently upgraded from ColdFusion MX7 to ColdFusion 10.  We have a credit card billing page in which the user clicks a submit button and is redirected to the action page which is a .jsp template.  This was working fine in CFMX7, but now in CF10 we get the following error message "404 - File or directory not found."

This is the form tag that I am using to make the call.

<form method="post" name="cc_#invoiceid#" id="cc_#invoiceid#" action="../billing/createHash.jsp">

The url on redirect page is also correct.

The file is clearly there in my directory structure. I even changed my "action" list above to another file in that same directory and it works as long as the extension is not .jsp.

Thank you in advance for any help!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
what if you created a very simple HTML file which has the same form tag settings in the same directory as your coldfusion file, will it actually reach that .jsp file?

<form name="form1" id="form1" method="POST" action="../billing/createHash.jsp">
    Test 1 <input type="text" name="textbox1"><br>
    Test 2 <input type="text" name="textbox2"><br>
    <input type="submit" value="Submit">
    <p id="demo"></p>

Open in new window

FalveyCFAuthor Commented:
I didn't try that, but I did just try and manually type out the url in a new window. No luck there either, still the 404 error. This leads me to believe that it does not have to with form or the redirect. It seems more so that the issue is that coldfusion 10 is not recognizing the .jsp extension on my files.

As an additional test, I made a duplicate of the .jsp and just changed the extension to .cfm (I know it would work, but just wanted to see if I could get a coldfusion error) . When I typed the url manually, I don't get the 404 error. The server is seeing the page there. Definitely something to do with ColdFusion not recognizing .jsp templates.
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
is your backend web server is IIS ? I'm not really in Coldfusion programming these days so only can provide limited advice to you (sorry for that).

But see if the resources below are useful for you to resolve the issue?

ColdFusion 10 cannot serve JSP files

Installing the Server Configuration
FalveyCFAuthor Commented:
There is no need to mess with the web.xml file, you simply need to copy just your jsp file into the webroot of where you installed Coldfusion 10, in my installation I had to copy it into C:\Coldfusion10\cfusion\wwwroot

So the jsp file will exist in two locations.
1. the root folder of your website
2. in the coldfusion wwwroot folder
  - C:\Coldfusion10\cfusion\wwwroot

If you make any changes to the jsp file then you will need to copy it to the other location as well. Basically you need to have the same jsp in both of those locations in order to get it to work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FalveyCFAuthor Commented:
The solution provided by Ryan Chong  had the correct link to a partial solution that was not clear. It really needed to clearly state that the JSP file needed to be in both locations. Also, if any changes were made to either file they the other file would also need to be updated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.