Bug 28527 - Not able to execute the faces example
Summary: Not able to execute the faces example
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.0.19
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 23:36 UTC by Prabhakar Krishnaswami
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Prabhakar Krishnaswami 2004-04-21 23:36:34 UTC
I downloaded the example from 
http://java.sun.com/developer/EJTechTips/2004/tt0324.html#1. After I rebuilt 
the war file and deployed it, I tried to access the first values.jsp. I 
immediately got an error saying "could not access 
httP:/127.0.0.1:8080/<webapp>/faces/jsp/values.jsp. I couldn't find what the 
problem was. Here are the contents of the web.xml:

<web-app>
   <context-param>
      <param-name>saveStateInClient</param-name>
      <param-value>false</param-value>
   </context-param>
   
   <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>   
   
   <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>  

   <welcome-file-list>
      <welcome-file>index.html</welcome-file>
   </welcome-file-list>
</web-app>

The faces-config.xml contains the following:

<faces-config>

   <navigation-rule>
     <description>
       This rule defines the navigation for the view "values.jsp".
     </description>
     <from-view-id>/jsp/values.jsp</from-view-id>

     <navigation-case>
       <description>
         When the "values.jsp" form has valid values for all of its
         inputs, the command button on the form produces a "validated"
         event. In this case, the next view should be "valid.jsp".
       </description>

       <from-outcome>validated</from-outcome>

       <to-view-id>/jsp/valid.jsp</to-view-id>

     </navigation-case>
   </navigation-rule>

   <managed-bean> 
     <managed-bean-name>data</managed-bean-name>
     <managed-bean-class>test.DataBean</managed-bean-class>
     <managed-bean-scope>session</managed-bean-scope> 

   </managed-bean>

</faces-config>

I examined the war file and jsp is present in the correct directory. Is this 
bug in this version of Tomcat?
Comment 1 Tim Funk 2004-04-22 01:53:17 UTC
Please use the tomcat-user list to debug this.