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!
FalveyCFAsked:
Who is Participating?
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 ChongCommented:
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?

test.html
<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>
</form>

Open in new window

0
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.
0
Ryan ChongCommented:
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
https://forums.adobe.com/thread/1254849

Installing the Server Configuration
http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec18c28-8000.html#WS932f2e4c7c04df8f288f04831353cc0bade-7ffe
0
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.
0

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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.