Two Laptop Bag
The moose likes Websphere and the fly likes Forwarding/Redirecting causes java.io.FileNotFoundException but file exists Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "Forwarding/Redirecting causes java.io.FileNotFoundException but file exists" Watch "Forwarding/Redirecting causes java.io.FileNotFoundException but file exists" New topic
Author

Forwarding/Redirecting causes java.io.FileNotFoundException but file exists

Phil Powell
Greenhorn

Joined: Jul 13, 2004
Posts: 26
http://www.mydomain.com/common/handler.jsp:



This throws a java.io.FileNotFoundException:



However, I can go to http://www.mydomain.com/common/error_page.jsp and verify that it does indeed exist.

Why would it throw a FileNotFoundException if not only does the forwarding page exist but exists within the exact same web module?

I checked ibm-web-ext.xml for the "common" web module to notice that fileServingEnabled="true".

Any ideas why this is happening?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

Is common a folder name in the root web app, or is common the context path?

if it's the context path, you don't specify it on a forward.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Phil Powell
Greenhorn

Joined: Jul 13, 2004
Posts: 26
/common is one of the context roots.

I figured out that it's possible now to do forwarding from within the same web module, however, we are unable to forward to another web module.

I need to be able to forward from /main/register.jsp (/main is one context root) to /common/error_page.jsp (/common is another context root), but that constantly fails.

We were completely able to forward between web modules until a couple of weeks ago when a server reboot took place and then suddenly that ability was gone; we constantly get java.io.FileNotFoundException errors thrown every time we try to forward from one web module to another

We're using WebSphere 6.0 if that helps any.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Forwarding/Redirecting causes java.io.FileNotFoundException but file exists
 
Similar Threads
get domain url
Deploying Struts app on Linux server
Picking up parameters in the URL
WebSite Mapping
struts deploy issues