Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

JSF driving me nuts - requested resource is not available

Thread view: 
timasmith@hotmail.com - 15 Aug 2006 03:53 GMT
HTTP Status 404 - /myproj/WEB-INF/pages/products.faces

--------------------------------------------------------------------------------

type Status report

message /myproj/WEB-INF/pages/products.faces

description The requested resource
(/myproj/WEB-INF/pages/products.faces) is not available.

This rather useless message is quite annoying and I cant find anything
to debug with.

Darn HTML/javascript is too messy and abstract to be useful.

This is from clicking a link generated by:

       <h:commandLink action="#{myTreeBean.list}">
           <h:outputText value="#{myDisplay.display}" />
       </h:commandLink>

The bean myTreeBean is defined in faces-config

 <managed-bean>
   <managed-bean-name>myTreeBean</managed-bean-name>

<managed-bean-class>com.myproj.www.ArtifactTreeBean</managed-bean-class>
   <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>

myTreeBean.list() returns "artifactlist"

which is defined in faces-config

   <navigation-case>
     <from-outcome>artifactlist</from-outcome>
     <to-view-id>/WEB-INF/pages/artifact/artifacttree.jsp</to-view-id>
   </navigation-case>

BUT clicking on the link results in the error first stated.

I am at a loss without a good nights sleep...
Chris Smith - 15 Aug 2006 05:56 GMT
> HTTP Status 404 - /myproj/WEB-INF/pages/products.faces

Note that resources inside of WEB-INF are not served directly from URLs.  
This could be a problem for you.

What does your web.xml look like?

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation

hiwa - 15 Aug 2006 06:15 GMT
timasmith@hotmail.com のメッセージ:

> HTTP Status 404 - /myproj/WEB-INF/pages/products.faces
>
[quoted text clipped - 39 lines]
>
> I am at a loss without a good nights sleep...
In a typical Web app, your 'pages' directory shoud be a sibling of
WEB-INF, not a child of it.
Or, more typically, page resources are usually put in the root
directory, which is 'myproj'.
timasmith@hotmail.com - 15 Aug 2006 16:54 GMT
Ahh thank you thank you to you and Chris

> timasmith@hotmail.com のメッセージ:
>
[quoted text clipped - 45 lines]
> Or, more typically, page resources are usually put in the root
> directory, which is 'myproj'.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.