JSF, Tomcat Error

I am getting the following error when I try to run my JSF page:
org.apache.jasper.JasperException: Cannot find FacesContext
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
my web.xml looks like this:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<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>
I get this error if i type: http://localhost:8080/wes/faces/register1.jsp
What am i doing wrong

Doesn't look like a Sun JSF RI issue to me. Post this issue at the forum/mailinglist of Ajax4jsf.

Similar Messages

  • Tomcat error in DFM 3.0.5

    Hi,
    On a LMS 3.0.1, DFM 3.0.5, I've got a Tomcat error, when I want to see the "Alerts and Activity" (see attachement)
    Trying to solve the problem, i've made several try:
    1. I purged the dfm database (CSCOpx/bin/dbRestoreOrig.pl dsn=dfmInv dmprefix=INV, CSCOpx/bin/dbRestoreOrig.pl dsn=dfmFh dmprefix=FH,
    CSCOpx/bin/dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM)
    2. Import devices from DCR (almost 400 devices). I can see all the devices in "Device Management/Device summary"
    3. re-install DFM 3.0.5
    and this doesn't solve the problem
    I attach the "pdshow", if it can help.
    Which log file can help you ?
    thanks

    I add:
    As the post (https://supportforums.cisco.com/message/1328737#1328737), I do this:
    "NMSROOT/objects/db/win32/dbsrv9 -f NMSROOT/databases/dfmEpm/dfmEpm.db"
    and restore the database by
    "NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=epm dmprefix=EPM"
    in attachement, the new pdshow (the EPMDbEngine is started, but the EPMServer is down)
    And still "tomcat error"...
    If you have an idea...

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • Tomcat error:" It is not available the ServletAction"  and jars not found

    Hi,
    I am deploying an application using Ant from MyEclipse IDE.
    When I deploy the application with the Ant, it says to me that the application has successfully deployed. I go to webaapps directory and I can see into that it how the application has been deployed with its WAR.
    But when I try to excute the application, Tomcat gives me the following error:
    Message: It is not available the Servlet Action
    Description: The request resource (It doesn`t available the ServletAction) is not available.
    If I go to Apache Tomcat`s stdout log I can see two warnings:
    WARN: No appends could be found for logger (org.apache.commons.beanutils.Convertutils)
    WARN: Please initialize the log4j system properly
    But, If I go to the Java Build path of the application I can verify how I have added the commons.beanutils.jar and log4j.jar .
    I don`t know why it doesn´t run and I am stuck.
    I would be very grateful somebody could help me to solve this problem.
    Regards

    The logging doesn't need to be set up properly for the web app to function, usually. The more critical point is the error message from Tomcat about the Servlet Action. Is that the exact error message? I'm just asking because I've never seen a Tomcat error written like that. Could you post the exact message.. Are you using Struts? And where are you seeing the Tomcat error message? Is it appearing in the console or in one of the logs or in the browser?
    My guess is you have a jar missing from your classpath but I can't tell from what you've posted.

  • Tomcat error when posting on netpro

    Is there a way to make that tomcat error go away?
    (when I post I get an error, then I have to go back to the post and edit it to put in the actual text of the post and it sticks.)
    Just like I had to do on this one.

    I've seen this happening since years.
    Since it never happened to me, I've always thought it is actually related to the client or network connection
    Altough, I must agree that nothing in theory should cause a post to appear without an author. Unfortunately it seem the forum software here isn't what you call top notch.

  • BC4J / Tomcat error is back!?!?

    Hi all,
    Once I encountered the following problem with BC4J using Tomcat:
    Error Message: Only one of the two parameters target or targetParam should be defined.
    The solution was changing the enablePooling property to false (in the web.xml). Now, I upgraded Tomcat to 4.1.27 and now the problem is back. Changing the property again does not make any difference. Does anyone know (another) solution for this?
    Thanks...Hans

    Part of my web.xml which I changed:
    <!-- The JSP page compiler and execution servlet, which is the mechanism -->
    <!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
    <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- checkInterval If development is false and reloading is true, -->
    <!-- background compiles are enabled. checkInterval -->
    <!-- is the time in seconds between checks to see -->
    <!-- if a JSP page needs to be recompiled. [300] -->
    <!-- -->
    <!-- compiler Which compiler Ant should use to compile JSP -->
    <!-- pages. See the Ant documenation for more -->
    <!-- information. [javac] -->
    <!-- -->
    <!-- classdebuginfo Should the class file be compiled with -->
    <!-- debugging information? [true] -->
    <!-- -->
    <!-- classpath What class path should I use while compiling -->
    <!-- generated servlets? [Created dynamically      -->
      <!--                       based on the current web application] -->
    <!-- -->
    <!-- development Is Jasper used in development mode (will check -->
    <!-- for JSP modification on every access)? [true] -->
    <!-- -->
    <!-- enablePooling Determines whether tag handler pooling is -->
    <!-- enabled [true] -->
    <!-- -->
    <!-- ieClassId The class-id value to be sent to Internet -->
    <!-- Explorer when using <jsp:plugin> tags. -->
    <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
    <!-- -->
    <!-- fork Tell Ant to fork compiles of JSP pages so that -->
    <!-- a separate JVM is used for JSP page compiles -->
    <!-- from the one Tomcat is running in. [true] -->
    <!-- -->
    <!-- javaEncoding Java file encoding to use for generating java -->
    <!-- source files. [UTF8] -->
    <!-- -->
    <!-- keepgenerated Should we keep the generated Java source code -->
    <!-- for each page instead of deleting it? [true] -->
    <!-- -->
    <!-- largefile Should we store the static content of JSP -->
    <!-- pages in external data files, to reduce the -->
    <!-- size of the generated servlets? [false] -->
    <!-- -->
    <!-- logVerbosityLevel The level of detailed messages to be produced -->
    <!-- by this servlet. Increasing levels cause the -->
    <!-- generation of more messages. Valid values are -->
    <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
    <!-- [WARNING] -->
    <!-- -->
    <!-- mappedfile Should we generate static content with one -->
    <!-- print statement per input line, to ease -->
    <!-- debugging? [false] -->
    <!-- -->
    <!-- reloading Should Jasper check for modified JSPs? [true] -->
    <!-- -->
    <!-- scratchdir What scratch directory should we use when -->
    <!-- compiling JSP pages? [default work directory  -->
      <!--                       for the current web application] -->
    <!-- -->
    <!-- If you wish to use Jikes to compile JSP pages: -->
    <!-- Set the init parameter "compiler" to "jikes". Define -->
    <!-- the property "-Dbuild.compiler.emacs=true" when starting Tomcat -->
    <!-- by adding the above to your CATALINA_OPTS environment variable. -->
    <!-- If you get an error reporting that jikes can't use UTF8 encoding, -->
    <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>enablePooling</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
    </init-param>
    <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <!-- Server Side Includes processing servlet, which processes SSI -->
    <!-- directives in HTML pages consistent with similar support in web -->
    <!-- servers like Apache. Traditionally, this servlet is mapped to -->
    <!-- URL pattern "*.shtml". This servlet supports the following -->
    <!-- initialization parameters (default values are in square brackets): -->
    <!-- -->
    PS. Sorry for late response, but email notification of this forum doesn't work sometimes...

  • Tomcat error message help

    I am trying to get the sample file upload from orielly to work. I did not anything from the sample java classes (except the file location repository) and I get the following tomcat error message:
    org.apache.jasper.JasperException
         org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(JspRuntimeLibrary.java:711)
         org.apache.jsp.upload_005f1_jsp._jspService(upload_005f1_jsp.java:56)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)JSP:
    <jsp:useBean id="uploader" class="com.jspservletcookbook.UploadBean" />
    <jsp:setProperty name="uploader" property="dir"
        value="<%=application.getInitParameter(\"ROOT\")%>" />
    <jsp:setProperty name="uploader" property="req"  value="<%= request %>" />
    <html>
    <head><title>file uploads</title></head>
    <body>
    <h2>Here is information about the uploaded files</h2>
    <jsp:getProperty name="uploader" property="uploadedFiles" />
    </body>
    </html>HTML
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Please Choose The File</title>
    </head>
    <body bgcolor="#ffffff">
    <table border="0"><tr>
    <!-- /home/servlet/com.jspservletcookbook.UploadServlet -->
    <form action="upload_1.jsp" method="post" enctype="multipart/form-data">
    <td valign="top"><strong>Please choose your document:</strong><br></td>
    <td><input type="file" name="file1"><br><br>
    </td></tr>
    <tr><td><input type="submit" value="Upload"></td></tr>
    </form>
    </table>
    </body>
    </html>

    just a guess, there is an error in the way you are setting the property (hence the handleSetProperty method that threw the error.
    as you amy be newer, a good way to debug a jsp from tomcat that is giving odd errors on the page is to view the java source code that tomcat generated from your jsp. look in the work directory, and paw around a bit, and you will find a file called upload_005f1_jsp.java. That is the java servlet tomcat made you rjsp into. look in that file, and you'll see on line 56 the exception was either caught or thrown. then look for the property that it tried to set just above it. that is the property that tomcat got mad about. (either a mispelling on your part, or their docs are wrong - altered api perhaps? ) Anyway, if you continue to get frustrated with the orielly classes, look at commons-uploader from jakarta. It is a wonderful file upload library, and I have used it a lot in several struts apps.

  • JSF - Tomcat security...what is the best choice for a high activity site

    JSF - Tomcat security...what is the best choice for a high activity site
    The JDBCRealm is not multithreaded so what are options for high activity site??
    I would like to have Apache as front end doing load balancing, Tomcat as server and JSF.
    All ideals and suggestions please.
    Thanks
    Phil

    One more question.
    Since Tomcat has this setup.
    create table users (
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table user_roles (
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key (user_name, role_name)
    It seems like a huge pain to keep a user with every role. What happens when you have 500,000 users???
    Also, the authentications on every page....would it be easier to login once and setup a session bean check that on with the page header ??
    Thanks
    Phil

  • JSF Presentation Error

    I am implementing a custom JSF page as a presentation for a process. To model this implementation, I used the JSF sample found in \ORABPMStudioHome\samples\advanced\JSF-Screenflow_FoodDelivery.exp.
    I have a module entitle TestModule. This module has three objects - TheObject, Member, and Demographics. TheObject is a composition object using Member and Demographics.
    -TestModule
    -- Demographics
    --- address
    --- city
    --- etc.
    -- Member
    --- firstName
    --- lastName
    --- etc.
    -- TheObject
    --- caseNumber
    --- member : TestModule.Member
    So I wrote a JSF page with this code:
    <%@ page session="true" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="ftl" %>
    <%@ taglib uri="http://fuego.com/jsf/components" prefix="ft"%>
    <html>
    <body>
    <f:view>
    <h:form>
    <h:outputText value="Case Number2: " />
    <h:inputText value="#{theObject.caseNumber}" />
              <p />
    <h:outputText value="First Name: " />
    <h:inputText value="#{theObject.member.firstName}" />
    <h:outputText value="Last Name: " />
    <h:inputText value="#{theObject.member.lastName}" />
              <h:commandButton value="Submit" action="returnToFuego" />
    </h:form>
    </f:view>
    </body>
    </html>
    I have a process with a Global Create activity that references a screenflow. In the argument mapping for the screenflow from the Global Create, I have an IN argument that instantiates an instance of TestModule.TheObject(). The BeginIn of the screenflow takes this argument and assigns it to an instance variable of type TheObject.
    I start the engine and launch the workspace. Then, I access my Global Create activity. The custom JSF page is displayed, as intended. I populate the values of the controls and click the "Submit" button. BPM throws the following exception -
    Error workspace-1266290500365
    Error testing property 'caseNumber' in bean of type null
    javax.faces.el.PropertyNotFoundException: Error testing property 'caseNumber' in bean of type null
         at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
         at fuego.workspace.application.WorkspacePropertyResolver.getType(WorkspacePropertyResolver.java:60)
         at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
         at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
         at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:338)
         at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:111)
         at javax.faces.component.UIInput.getConvertedValue(UIInput.java:702)
         at javax.faces.component.UIInput.validate(UIInput.java:627)
         at javax.faces.component.UIInput.executeValidate(UIInput.java:838)
         at javax.faces.component.UIInput.processValidators(UIInput.java:412)
         at javax.faces.component.UIForm.processValidators(UIForm.java:170)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at fuego.workspace.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:132)
         at fuego.workspace.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:60)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    The Process instance enters the flow and stops at the first activity. If I open the instance and look at the values that I entered in the controls during the screenflow, the backing bean has been populated with data.
    Can anyone shed some light on this? Any help is appreciated. If there is something facet that I didn't mention, let me know, and I will describe it.

    Rajat's got a good point. You BPM Objects probably look something like this if they are all located in a module named "TestModule":
    TestModule.Demographics
    - address: String attribute
    - city: String attribute
    - state: String attribute
    TestModule.Member
    - firstName: String attribute
    - lastName: String attribute
    - demographics: TestModule.Demographics
    TestModule.TheObject
    - caseNumber: String attribute
    - member: TestModule.Member
    1. Double click the "caseNumber" attribute and change it to not default to null.
    2. To avoid chasing null pointer exceptions, open the constructor for "TestModule.Member" and add this logic:
    demographics = TestModule.Demographics()3. Similarly, open the constructor for the "TestModule.TheObject" and add this logic:
    member = TestModule.Member()Dan

  • JSF Deployment error - login.faces not available

    I am new to JSF and am having deploying my first example JSF pages in Eclipse on default Tomcat (6.x).
    I feel I have done everything stated in the tutorial http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html (I did not repeat the step by step instructions in the tutorial - instead, used these instructions to create my own pages / logic). However, I still get the following error:
    HTTP Status 404 - /reportwriter/pages/login.faces
    type Status report
    message /reportwriter/pages/login.faces
    description The requested resource (/reportwriter/pages/login.faces) is not available.
    Here is my directory structure:
    reportwriter
    - src
    - LoginBean
    - LoginServer.java
    - Resources.properties
    - js
    - html
    - images
    - pages
    - login.jsp
    - webRoot
    - WEB-INF
    - lib
    - faces-config.xml
    - web.xml
    - index.jsp with a one line jsp forward to pages/login.faces
    here is my faces-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
    <application>
    <message-bundle>LoginBean.Resources</message-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>en-us</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>es</supported-locale>
    </locale-config>
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
    </application>
    <navigation-rule>
    <from-view-id>/pages/login.jsp</from-view-id>
    <navigation-case>
    <description>Handle case for successful login</description>
    <from-action>#{loginServer.loginAction}</from-action>
    <from-outcome>success</from-outcome>
    <to-view-id>/pages/task.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <description>Handle case for unsuccessful login</description>
    <from-action>#{loginServer.loginAction}</from-action>
    <from-outcome>failure</from-outcome>
    <to-view-id>/pages/failure.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/pages/success.jsp</from-view-id>
    <navigation-case>
    <from-outcome>return</from-outcome>
    <to-view-id>/pages/login.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/pages/failure.jsp</from-view-id>
    <navigation-case>
    <from-outcome>return</from-outcome>
    <to-view-id>/pages/login.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>loginServer</managed-bean-name>
    <managed-bean-class>LoginBean.LoginServer</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    and here is web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    </web-app>
    Can you think what I may be missing here to get the login.faces not available error?
    One hint I have is - if I do not set a jsp forward line in the index.jsp file, I get the server deployment for the index.jsp file OK. But not when I have the forward from index.jsp to /pages/login.faces
    I also tried setting the context in tomcat server.xml file as follows:
    <Context debug="0"
    docBase="C:/evsapi/ReportWriter/reportwriter/WebRoot"
    path="/LoginBean" reloadable="true"/>
    Still no use.
    Please help!
    Edited by: tipseeker on Dec 1, 2008 3:51 PM

    tipseeker wrote:
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    I highly recommend your to stop with this and restart with JSF 1.2 instead. JSF 1.0 is legacy and may have still some nasty bugs. You may find this JSF 1.2 / Eclipse 3.4 / Tomcat 6.0 startup tutorial useful as well: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html]
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>There's the root cause of the problem, I think. Why did you add this? Are you using JSP or Facelets? This configuration is typical for Facelets, but in your remaining code I only see JSP's being mentioned.

  • JSF 404 Error

    Hello,
    I have googled a long time, but I couldn't find a solution to my problem.
    I am developing my first JSF 1.2 Application in combination with Tomcat 6 with Eclipse.
    I have imported all libraries needed (jsf_api, jsf_impl, jstl etc.). When I call a JSF page, I get a 404 resource not found error.
    Normal JSP projects work perfectly.
    These are the contents of my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>test</display-name>
      <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>*.jsf</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
           <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>Basically I followed this tutorial to set up my first jsf app: http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial-RC3/JSFTools_tutorial.html .
    There are two versions, one with JSF 1.1 support which worked, and one with JSF 1.2 support which didn't work.
    Thanks in advance,
    Tobias
    Message was edited by:
    tobiasgp

    I have found the following error messages in Tomcat's console output:
    INFO: Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/test'
    19.07.2007 18:38:40 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/test'
    19.07.2007 18:38:40 org.apache.catalina.core.StandardContext listenerStart
    SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         at org.ajax4jsf.framework.DebugLifecycleFactory.<clinit>(DebugLifecycleFactory.java:39)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567)
         at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:460)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1106)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:766)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:529)
         at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(GlassFishConfigureListener.java:47)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    19.07.2007 18:38:40 org.apache.catalina.core.StandardContext start
    SCHWERWIEGEND: Error listenerStart
    19.07.2007 18:38:40 org.apache.catalina.core.StandardContext start
    SCHWERWIEGEND: Context [test] startup failed due to previous errors
    SCHWERWIEGEND = Fatal ;-)
    I have just removed AJAX4JSF and it works! How shall I go on if I would like to use it?
    Message was edited by:
    tobiasgp
    Message was edited by:
    tobiasgp

  • Jsf install error

    I am trying to use jsf with JBOSS, i copied all my jar files, and reference in my web.xml ect.
    but when i try to start my server, it says
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Thread.java:534)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.

    I have very similar error. I have a very simple JSF page:
    <body>
         <f:view>
              This is my Error JSF JSP page. <br>
         </f:view>
    </body>It works with Tomcat, but not in JBoss, giving the following error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /Error.jsp:29
    26: </head>
    27:  
    28: <body>
    29:      <f:view>
    30:           This is my Error JSF JSP page. <br>
    31:      </f:view>
    32: </body>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    java.lang.NullPointerException
         javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
         org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
         org.apache.jsp.Error_jsp._jspx_meth_f_view_0(Error_jsp.java:109)
         org.apache.jsp.Error_jsp._jspService(Error_jsp.java:84)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.And I have the following web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
      <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
      <!-- Faces Servlet -->
       <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- Faces Servlet Mapping -->
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
           <welcome-file>/Index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>Any ideas??
    Thanks in advanced
    Mensaje editado por:
    [email protected]

  • Tomahawk on tomcat error !

    hi all , i try to use tomahawk but there an error when i try to run app , my files under WEB-INF/lib:
    commons-beanutils-1.7.0.jar
    commons-codec-1.3.jar
    commons-collections-3.2.jar
    commons-digester-1.8.jar
    commons-discovery-0.4.jar
    commons-el.jar
    commons-fileupload-1.0.jar
    commons-logging-1.1.jar
    commons-validator-1.3.1.jar
    jstl-1.2.jar
    log4j-1.2.8.jar
    myfaces-api-1.2.0.jar
    myfaces-impl-1.2.0.jar
    oro-2.0.8.jar
    portlet-api-1.0.jar
    struts.jar
    tomahawk-1.1.6.jar
    page.jsp :
    <%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"  %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Insert title here</title>
    </head>
    <f:view>
         <body style="text-align: center;">
         <h:form>
              <t:inputCalendar value="#{firstMyFaceBean.date}" ></t:inputCalendar>
              <h:commandButton action="display" value="get selected"></h:commandButton>
         </h:form>
         </body>
    </f:view>
    </html>and this is error :
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/sun/faces/taglib/jsf_core/ViewTag
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
         org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)i use tomcat 6.0
    help me, please !
    null

    i seached and someone say try delete tomcat cache in".metadata\.plugins\org.eclipse.wst.server.core\tmp0\work" , do like that and i get other error :
    org.apache.jasper.JasperException: Unable to convert string "go" to class "javax.el.MethodExpression" for attribute "action": Property Editor not registered with the PropertyEditorManager
         org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
         org.apache.jsp.index_jsp._jspx_meth_h_005fcommandButton_005f0(index_jsp.java:186)
         org.apache.jsp.index_jsp._jspx_meth_h_005fform_005f0(index_jsp.java:154)
         org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:113)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:75)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
         org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

  • JDevelopper 10.1.3.3 + JSF Trinidad error 405

    Hi,
    First, scuse for my english, i'm french.
    Hi have Trinidad 1.0.2 Distribution for JSF 1.1 in my JDevelopper.
    Here is my web.xml :
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    <!--<param-value>client</param-value> mettre à serveur pour la prod.-->
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
    <param-value>token</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
    <param-value>session</param-value>
    </context-param>
    <context-param>
    <param-name>Identifiant</param-name>
    <param-value>username</param-value>
    </context-param>
    <context-param>
    <param-name>MotDePasse</param-name>
    <param-value>password</param-value>
    </context-param>
    <context-param>
    <param-name>UrlBD</param-name>
    <param-value>jdbc:oracle:thin:@KEKATA.enap.ca:1521:DB</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <listener>
    <listener-class>ca.enap.brel.serveur.listeners.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>ca.enap.brel.serveur.listeners.RequestListener</listener-class>     
    </listener>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is my face-config.xml :
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
    <faces-config>
    <application>
    <default-render-kit-id>
    org.apache.myfaces.trinidad.core
    </default-render-kit-id>
    </application>
    <managed-bean>
    <managed-bean-name>EtudiantCoordonneesBean</managed-bean-name>
    <managed-bean-class>ca.enap.brel.etudiant.profilsociodemographique.clientetserveur.affaires.EtudiantCoordonneesBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>AdresseBean</managed-bean-name>
    <managed-bean-class>ca.enap.brel.etudiant.profilsociodemographique.clientetserveur.affaires.AdresseBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>TelephoneBean</managed-bean-name>
    <managed-bean-class>ca.enap.brel.etudiant.profilsociodemographique.clientetserveur.affaires.TelephoneBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/etudiantVueMain.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/dossierFinancier.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <to-view-id>/dossierAcademique.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <to-view-id>/profilSocioDemographique.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/profilSocioDemographique.jsp</from-view-id>
    <navigation-case>
    <from-outcome>Transmettre</from-outcome>
    <to-view-id>/dossierFinancier.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    He is my profilSocioDemographique.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
    <%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
    <%@ page import="javax.faces.context.FacesContext" %>
    <%@ page import="ca.enap.brel.etudiant.profilsociodemographique.clientetserveur.affaires.EtudiantCoordonneesBean" %>
    <%@ page import="ca.enap.brel.utilitaires.client.Transaction" %>
    <%@ page import="ca.enap.brel.utilitaires.client.UtilitairesClient" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.faces.application.Application" %>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>profilSocioDemographique</title>
    </head>
    <body>
    <h:form>
    <tr:panelHorizontalLayout>
    <tr:panelBox text="Adresse actuelle de correspondance"
    background="dark">
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondance.ligne1}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondance.ligne2}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondance.ligne3}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondance.codePostal}"/>
    </tr:panelBox>
    <tr:panelBox text="Adresse à venir de correspondance"
    background="dark">
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondanceFuture.ligne1}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondanceFuture.ligne2}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondanceFuture.ligne3}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.courriel}"/>
    <tr:inputText value="#{EtudiantCoordonneesBean.adresseCorrespondanceFuture.codePostal}"/>
    </tr:panelBox>
    </tr:panelHorizontalLayout>
    <tr:panelButtonBar>
    <h:commandButton value="Transmettre" /><br>
    <tr:resetButton text="Restaurer"/><br>
    </tr:panelButtonBar>
    </h:form>
    </body>
    </html>
    </f:view>
    When i go to localhost/myProject/faces/profilSocioDemographique.jsp and i click on the commandButton (Transmettre), i have this error : ERROR HTML 405 : HTTP POST not allowed ....
    Here is the list of the librairies :
    - commons-beanutils
    - commons-collections
    commons-logging
    commons-lang
    jsf-facelets
    trinidad-api1.0.2
    trinidad-impl 1.0.02
    JSF
    JSP Runtime
    JSTL
    Someone can help me ??
    I have also this problem in my log of tomcat :
    WARNING: Trying to attach RenderingContext to a thread that already had one.
    2007-09-05 14:49:46 org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit encodeFinally
    WARNING: No RenderingContext available
    Can someone can help me ?? I dont know why i am unabled to post a simply form with a command button.....
    Message was edited by:
    user591085

    Hello,
    Try something like that, it works fine for me.
    Web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5" >
        <description>Empty web.xml file for Web Application</description>
        <!-- Section Paramètres -->
        <!-- Spécification Servlet - Configuartion de la session -->
        <session-config>
            <session-timeout>30</session-timeout>
        </session-config>
        <!-- Section - Mime -->
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
        <!-- Specification JSF 1.1 -->
        <!-- Conservation de l'arbre JSF: server ou client -->
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
        </context-param>
        <!-- Specification Trinidad ... -->
        <!-- Trinidad also supports an optimized strategy for caching some
       view state at an application level, which significantly improves
       scalability.  However, it makes it harder to develop (updates to
       pages will not be noticed until the server is restarted), and in
       some rare cases cannot be used for some pages (see Trinidad
       documentation for more information) -->
        <context-param>
            <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
            <param-value>false</param-value>
        </context-param>
        <!-- If this parameter is enabled, Trinidad will automatically
           check the modification date of your JSPs, and discard saved
           state when they change;  this makes development easier,
           but adds overhead that should be avoided when your application
           is deployed -->
        <context-param>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>org.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POPUP</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
          <param-value>true</param-value>
        </context-param>
        <context-param>
          <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT</param-name>
          <param-value>true</param-value>
        </context-param>
        <servlet>
            <servlet-name>FacesServlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>FacesServlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <!-- Section - Filtre Trinidad - TOUJOURS PLACÉS COMME PREMIER FILTRE (Les filtres sont toujours exécutés avant le servlet concerné) -->
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>FacesServlet</servlet-name>
        </filter-mapping>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>
              org.apache.myfaces.trinidad.webapp.ResourceServlet
            </servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
    </web-app>
    faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
                  version="1.2">
      <application>
        <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
        <locale-config>
          <default-locale>fr</default-locale>
          <supported-locale>fr-ca</supported-locale>
          <supported-locale>fr</supported-locale>
          <supported-locale>fr-fr</supported-locale>
        </locale-config>
      </application>
    trinidad-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:shemaLocation="http://myfaces.apache.org/trinidad/config trinidad-config.xsd">
      <accessibility-mode>inaccessible</accessibility-mode>
      <client-validation>DISABLED</client-validation>
      <skin-family>simple</skin-family>
      <time-zone>America/New_York</time-zone>
    </trinidad-config>
    page.jspx
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:trh="http://myfaces.apache.org/trinidad/html"
              xmlns:tr="http://myfaces.apache.org/trinidad">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <trh:html>
          <trh:head title="Test page">
            <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
          </trh:head>
          <trh:body>
            <tr:form>
              <tr:inputDate label="inputDate Trinidad"/>
            </tr:form>
          </trh:body>
        </trh:html>
      </f:view>
    </jsp:root>

  • Internal Tomcat Error while running JSP

    Hi,
    I was running a jsp page on Sun One Studio and here is what I am getting, any help would really appreciate.
    C:\Sun\AppServer\jdk\jre\bin\java -classpath "C:\Sun\studio5u1_se\jwsdp\bin\bootstrap.jar";"C:\Sun\AppServer\jdk\lib\tools.jar" -Dcatalina.home="C:\Sun\studio5u1_se\jwsdp" -Dcatalina.base="C:\Documents and Settings\sjoy\studio5se_user\jwsdp_base" org.apache.catalina.startup.Bootstrap "start"
    Starting service Tomcat-Netbeans
    Java Web Services Developer Pack/1.0_01-fcs
    Thanks

    Hi,
    Maybe I am missing something but it does not appear your post below includes your error.

Maybe you are looking for

  • Messages can't be deleted from visual voice mail

    Hello, When I delete a message on the visual voice mail (in my combox from Sunrise Switzerland) this message don't disappear, or it's deleted and come back in seconds and sometimes with the blue point marking it as non read!!! Some times the phone "f

  • Check for source updates

    Hi, I mantain a couple of PKGBUILDs and I was wandering if there is a (simple) way to automatically check for upstream updates. P.S.: Happy new year. ^^

  • Error with update my windows phone 801883f error couldn't be installed

    Dear Sir, Plz Solve this Issue ASAP error with update my windows phone 801883f error couldn't be installed  therefore, i can't update my windows phone Salim

  • Insert multiple Rows at a time in Table control.

    I am Doing Dialog Programming, In Table control I have to insert some values,  by clicking on INSERT Button, so now its allowing only single rows to edit.. But as per my requirenments  "I want atleast 10 Rows should be editable,at a time when user cl

  • Internal table and work area

    Hi,        can anybody explain the concepts of Internal table and work area.Thanks in advance.