This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JSF and the fly likes Issues when porting to production server - requested resource not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Issues when porting to production server - requested resource not available." Watch "Issues when porting to production server - requested resource not available." New topic
Author

Issues when porting to production server - requested resource not available.

John Tannel
Greenhorn

Joined: Dec 17, 2010
Posts: 23
Everything works fine on my local tomcat, but when I move it to the production server from Arvixe, it cannot locate any resources that are not in the home directory. Both I and the server are running tomcat 5.5.

Everything in the home directory seems to work fine (I haven't tried moving the whole project there to test it, but basic pages, buttons, input/output works fine there. When I try to access /admin/main.jsf it gives me the following error:



If I navigate straight to the jsp file, I get errors of course, but it finds the file just fine. Does anyone have any ideas?

My jsf pattern is *.jsf so I don't believe that is it. Thanks in advance!

John

Edit: I tried deploying via WAR file, and I get the same problem
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17142
    
  27

Does the production server support JSF? By which I mean not only does it explicitly support JSF, but does it run at a high enough servlet/JSP version to handle JSF? Does it have built-in JSF that conflicts with the JSF jars that you include when building for Tomcat?


An IDE is no substitute for an Intelligent Developer.
John Tannel
Greenhorn

Joined: Dec 17, 2010
Posts: 23
The server does not explicitly support JSF. It supports JSPs with Tomcat. I have admin access to the tomcat installation, and so installed the JSF libraries, etc.

JSF works fine in the home directory as far as I can tell (like I said it supports navigation rules, input tags, output tags).

I didn't have computer access since my last post, but I'm going to try moving all the pages to the home directory and see if it works. I'm fairly certain it will since when I started development it was in the home directory and worked fine online. If you have any other ideas, let me know! I'll report back with results of the migration as soon as I have them.


EDIT:

Solved it. It had to do with the context entry in server.xml

Before(broken):


After(fixed):



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues when porting to production server - requested resource not available.
 
It's not a secret anymore!