JSF error on Tomcat

Hi I am getting a strange error when I deploy the war file for JSF on tomcat as follows 2006-12-01 10:19:51 StandardContext[/manager]HTMLManager: start: Starting web application at '/campman'
2006-12-01 10:19:51 StandardContext[/campman]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: com.sun.faces.lifecycle.LifecycleFactoryImpl
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
     at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:411)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:702)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
     at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
     at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
     at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
     at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
Caused by: javax.faces.FacesException: ApplicationFactory
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:540)
     at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
     at com.sun.faces.lifecycle.RestoreViewPhase.<init>(RestoreViewPhase.java:69)
     at com.sun.faces.lifecycle.LifecycleImpl.<init>(LifecycleImpl.java:53)
     at com.sun.faces.lifecycle.LifecycleFactoryImpl.<init>(LifecycleFactoryImpl.java:69)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
     at java.lang.Class.newInstance0(Class.java:308)
     at java.lang.Class.newInstance(Class.java:261)
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
     ... 40 more
Caused by: java.lang.ClassNotFoundException: ApplicationFactory
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:528)
     ... 52 more
2006-12-01 10:19:51 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2006-12-01 10:19:55 StandardContext[/manager]HTMLManager: start: Starting web application at '/campman'
2006-12-01 10:19:55 StandardContext[/campman]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: com.sun.faces.lifecycle.LifecycleFactoryImpl
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
     at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:411)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:702)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
     at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
     at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
     at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
     at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
Caused by: javax.faces.FacesException: ApplicationFactory
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:540)
     at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
     at com.sun.faces.lifecycle.RestoreViewPhase.<init>(RestoreViewPhase.java:69)
     at com.sun.faces.lifecycle.LifecycleImpl.<init>(LifecycleImpl.java:53)
     at com.sun.faces.lifecycle.LifecycleFactoryImpl.<init>(LifecycleFactoryImpl.java:69)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
     at java.lang.Class.newInstance0(Class.java:308)
     at java.lang.Class.newInstance(Class.java:261)
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
     ... 40 more
Caused by: java.lang.ClassNotFoundException: ApplicationFactory
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:528)
     ... 52 more
2006-12-01 10:19:55 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'

Sounds like a classloader problem. Do you have multiple jsf-api.jar files in your environment? Check the shared lib directories.
If you have the flexibility to use a different app server for development, GlassFish is the best JSF application server (IMO): https://glassfish.dev.java.net
Ken Paulsen
https://jsftemplating.dev.java.net

Similar Messages

  • Deploy problem of JSF WebApp on Tomcat 5.5.17 SEVERE: Error listenerStart

    Hi there,
    My installation configuration is as followed:
    Tomcat5.5.17 using the following connector:
        <Connector
          port="8083"
          maxHttpHeaderSize="8192"
          maxThreads="150"
          minSpareThreads="25"
          maxSpareThreads="75"
          enableLookups="true"
          redirectPort="8080"
          acceptCount="100"
          debug="1"
          connectionTimeout="20000"
          disableUploadTimeout="true" />tomcat-user.xml defines:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="tomcat" password="tomcat" roles="manager,admin"/>
    </tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
    http://localhost:8083/manager/html
    My WebApp is a simple Test App and is the following:
    index.html:
    <html>
       <head>
          <meta http-equiv="Refresh" content= "0; URL=index.faces"/>
          <title>Start Web Application</title>
       </head>
       <body>
          <p>Please wait for the web application to start.</p>
       </body>
    </html>
    index.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>Please enter your name and password.</h3>
                <table>
                   <tr>
                      <td>Name:</td>
                      <td>
                         <h:inputText value="#{user.name}"/>
                      </td>
                   </tr>            
                   <tr>
                      <td>Password:</td>
                      <td>
                         <h:inputSecret value="#{user.password}"/>
                      </td>
                   </tr>
                </table>
                <p>
                   <h:commandButton value="Login" action="login"/>
                </p>
             </h:form>
          </body>
       </f:view>
    </html>welcome.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>              
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>
                   Welcome to JavaServer Faces,
                   <h:outputText value="#{user.name}"/>!
                </h3>
             </h:form>
          </body>     
       </f:view>
    </html>
    UserBean.java:
    package com.jsfcore;
    public class UserBean {
         private String name;
         private String password;
         public UserBean() {
              super();
         private String getName() {
              return this.name;
         private void setName(String name) {
              this.name = name;
         private String getPassword() {
              return this.password;
         private void setPassword(String password) {
              this.password = password;
    web.xml:
    <?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>
       <display-name>Simple Login Applications</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>/faces/*</url-pattern>
       </servlet-mapping> 
       <welcome-file-list>
          <welcome-file>index.html</welcome-file>
       </welcome-file-list>
    </web-app>
    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>
       <navigation-rule>
          <from-view-id>/index.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/welcome.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>user</managed-bean-name>
          <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    </faces-config>I have downloaded jsf-1_1_01.zip and installed it.
    I have downloaded java_ee_sdk-5-windows.exe and installed it too.
    Path login/WEB-INF/lib contains the following jars:
    jsf/lib/jsf-api.jar
    jsf/lib/jsf-impl.jar
    tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
    tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
    tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
    tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
    The compilation and deployment was successful.
    With my build.xml, I have deployed the login.war file into path
    tomcat/webapps
    The login.war file was unpacked into the normal web application directory structure.
    That is where the problem appeared with the output display on the consol:
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 750 ms
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive login.war
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [login] startup failed due to previous errors
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3047 ms
    I am unable to start the login application on the Tomcat Web Application Manager.
    The following Message appears on top:
    FAIL - Application at context path /login could not be started
    Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
    Is anybody out there who could give me a hint to solve this problem?
    I really appreciate any hints, since I am circeling around the problem for guit a while.
    Thanks very much
    Markus

    Hi there,
    My installation configuration is as followed:
    Tomcat5.5.17 using the following connector:
        <Connector
          port="8083"
          maxHttpHeaderSize="8192"
          maxThreads="150"
          minSpareThreads="25"
          maxSpareThreads="75"
          enableLookups="true"
          redirectPort="8080"
          acceptCount="100"
          debug="1"
          connectionTimeout="20000"
          disableUploadTimeout="true" />tomcat-user.xml defines:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="tomcat" password="tomcat" roles="manager,admin"/>
    </tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
    http://localhost:8083/manager/html
    My WebApp is a simple Test App and is the following:
    index.html:
    <html>
       <head>
          <meta http-equiv="Refresh" content= "0; URL=index.faces"/>
          <title>Start Web Application</title>
       </head>
       <body>
          <p>Please wait for the web application to start.</p>
       </body>
    </html>
    index.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>Please enter your name and password.</h3>
                <table>
                   <tr>
                      <td>Name:</td>
                      <td>
                         <h:inputText value="#{user.name}"/>
                      </td>
                   </tr>            
                   <tr>
                      <td>Password:</td>
                      <td>
                         <h:inputSecret value="#{user.password}"/>
                      </td>
                   </tr>
                </table>
                <p>
                   <h:commandButton value="Login" action="login"/>
                </p>
             </h:form>
          </body>
       </f:view>
    </html>welcome.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>              
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>
                   Welcome to JavaServer Faces,
                   <h:outputText value="#{user.name}"/>!
                </h3>
             </h:form>
          </body>     
       </f:view>
    </html>
    UserBean.java:
    package com.jsfcore;
    public class UserBean {
         private String name;
         private String password;
         public UserBean() {
              super();
         private String getName() {
              return this.name;
         private void setName(String name) {
              this.name = name;
         private String getPassword() {
              return this.password;
         private void setPassword(String password) {
              this.password = password;
    web.xml:
    <?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>
       <display-name>Simple Login Applications</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>/faces/*</url-pattern>
       </servlet-mapping> 
       <welcome-file-list>
          <welcome-file>index.html</welcome-file>
       </welcome-file-list>
    </web-app>
    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>
       <navigation-rule>
          <from-view-id>/index.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/welcome.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>user</managed-bean-name>
          <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    </faces-config>I have downloaded jsf-1_1_01.zip and installed it.
    I have downloaded java_ee_sdk-5-windows.exe and installed it too.
    Path login/WEB-INF/lib contains the following jars:
    jsf/lib/jsf-api.jar
    jsf/lib/jsf-impl.jar
    tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
    tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
    tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
    tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
    The compilation and deployment was successful.
    With my build.xml, I have deployed the login.war file into path
    tomcat/webapps
    The login.war file was unpacked into the normal web application directory structure.
    That is where the problem appeared with the output display on the consol:
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 750 ms
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive login.war
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [login] startup failed due to previous errors
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3047 ms
    I am unable to start the login application on the Tomcat Web Application Manager.
    The following Message appears on top:
    FAIL - Application at context path /login could not be started
    Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
    Is anybody out there who could give me a hint to solve this problem?
    I really appreciate any hints, since I am circeling around the problem for guit a while.
    Thanks very much
    Markus

  • JSF 2 with Tomcat 6

    Has anyone tried running JSF2 on Tomcat 6? I tried to do this but running into EL compatibility issues. Tried various combinations but nothing worked. I did the setup and test based on the following post.
    http://weblogs.java.net/blog/cayhorstmann/archive/2009/12/29/jsf-20-and-tomcat
    If anyone accomplished this, please post the following
    1) list of libraries in tomcat lib
    2) list of libraries in WEB-INF/lib
    3) web.xml configuration
    I have the following config and my sample page only displays plain HTML but not any JSF text box fields.
    I added the following to tomcat lib
    el-api-2.2.jar
    el-impl-2.2.jar
    jstl-api-1.2.jar
    jstl-impl-1.2.jar
    I have the following in WEB-INF/lib
    jsf-api.jar
    jsf-impl.jar
    jstl-api-1.2.jar
    jstl-impl-1.2.jar
    weld-servlet.jar
    My web.xml is:
    <?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>JsfTest</display-name>
    <context-param>
         <param-name>javax.faces.PROJECT_STAGE</param-name>
         <param-value>Development</param-value>
    </context-param>
    <context-param>
         <param-name>com.sun.faces.expressionFactory</param-name>
         <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    </context-param>
    <listener>
    <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
    </listener>
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.xhtml</welcome-file>
    </welcome-file-list>
    </web-app>
    I also have an empty beans.xml in my WEB-INF folder. This is required for Weld.
    Anyone, plese help.

    user1093102 wrote:
    Has anyone tried running JSF2 on Tomcat 6? Yep, I use the Mojarra JSF 2 implementation in Tomcat 6 all the time, and many of my students and clients have as well.
    I have used various different Mojarra 2.0.x releases without problems on Tomcat 6, Tomcat 7, Glassfish 3, and JBoss 6
    (minus the JAR files in the Java EE 6 containers). JSF 2 is supposed to run in any container that supports servlets 2.5 and later,
    and I have gotten reports of it running on the Google Cloud Server, which I think is running Jetty.
    Maybe you could be more specific about the constructs that caused problems and the error messages that you got?
    Here are some details:
    1) Here is my web.xml. The PROJECT_STAGE and welcome-file-list entries are optional. Your sample app had some
    extra things in the web.xml that were not related to JSF; I would suggest removing them first to test a barebones
    JSF 2 app before trying to combine technologies.
    <?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"
      version="2.5">
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
      </context-param>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
      </welcome-file-list>
    </web-app>2) The JAR files I have in WEB-INF/lib are jsf-api.jar, jsf-impl.jar, jstl-api-1.2.jar, and jstl-impl-1.2.jar.
    The JSTL JAR files are actually not needed for the simple apps I link to below, but are needed for
    any JSF 2.0 app that uses ui:repeat, so IMHO should be considered a required part of a JSF 2.0 app.
    3) Here is my faces-config.xml file (the trivial apps below don't use any declarations in it,
    so it just has start and end tags):
    <?xml version="1.0"?>
    <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_2_0.xsd"
       version="2.0">
    </faces-config>4) Of course, it is not used by the server at all, but I also think it is a good practice to add the JSF 2.0
    project facet if you are using Eclipse 3.6. That way, you get some help from the IDE when editing faces-config.xml and any .xhtml file.
    5) Here are two very simple Eclipse projects that you can download and try. They follow the structure outlined above, and they work
    for me in Tomcat 6, Tomcat 7, and Glassfish 3 as is. They will run in JBoss 6 if you remove the JAR files from WEB-INF/lib (and, removing
    the JAR files is really the right thing to do in Glassfish also, although they do in fact run as is).
    [url http://www.coreservlets.com/JSF-Tutorial/jsf2/#Getting-Started]Sample JSF 2 App for Testing.
    Cheers-
    - Marty

  • While opening most of the website i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before. Kindly help.

    while opening most of the website on Safari i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before.
    HTTP Status 404 - /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    type Status report
    message /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    description The requested resource (/ssssportal.war/fup_gpon_1m_6g_512k.jspp) is not available.
    Kindly help. Also I am getting spinning ball most of the time. This was not with OS X Maverick 10.9.

    while opening most of the website on Safari i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before.
    HTTP Status 404 - /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    type Status report
    message /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    description The requested resource (/ssssportal.war/fup_gpon_1m_6g_512k.jspp) is not available.
    Kindly help. Also I am getting spinning ball most of the time. This was not with OS X Maverick 10.9.

  • JSF error messages

    has anybody successful using JSF error messages. Im using JSF portlet framework to display error msgs using h:messages tag. Im able to display validation/conversion errors with h:message tag.
    Im unable to display general messages that are result of an application exception. Has anybody ever done that?
    Help would be appreciated.
    Thanks
    -Sri

    If I understand you correctly ...
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage("New Message");
    context.addMessage(null, message);

  • Error starting Tomcat

    Hi all,
    I'm stupefied. In the past I had a Tomcat running in Apache, now I seem not to be able to accomplish it.
    My environment:
    OS: Windows XP
    Java: jdk1.6.0_03
    Apache: Apache2.2
    Tomcat: Tomcat6.0
    JAVA_HOME is set to C:\Program Files\Java\jdk1.6.0_03
    I used the Apache Tomcat Setup Wizard to install Tomcat. It is installed as an XP service. Starting fails, with the following entry in the log file:
    [2007-12-05 15:37:44] [info] Procrun (2.0.3.0) started
    [2007-12-05 15:37:44] [info] Running Service...
    [2007-12-05 15:37:44] [info] Starting service...
    [2007-12-05 15:37:44] [174 javajni.c] [error] The specified module could not be found.
    [2007-12-05 15:37:44] [986 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
    [2007-12-05 15:37:44] [1260 prunsrv.c] [error] ServiceStart returned 1
    [2007-12-05 15:37:44] [info] Run service finished.
    [2007-12-05 15:37:44] [info] Procrun finished.
    I've been searching the Internet on the error message <tomcat jdk The specified module could not be found>, and have been fiddling around with my configuration, but still my Tomcat does not want to start. So does anyone have an idea what I need to do to get my Tomcat in the air?
    Abel

    Found the error, after searching some more on the Internet. It seems Tomcat misses a file, msvcr71.dll, which is located in the C:\Program Files\Java\jdk1.6.0_03\bin directory. If you copy this file to the <windows>/system32 directory, Tomcat starts without a problem.
    :-|

  • JSF Error Tomcat NullPointer restart

    I have developed an application in Tomcat55 and JSF, everything goes well
    when I start for the first time Tomcat, the problem comes when a new update
    on unemployment Tomcat, I introduce a new war in the webapp and restarted
    the tomcat, reload does well but when I ask the web, I get this error.
    [http-81-Processor25] ERROR
    org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[SitioWeb].[j
    sp]
    - Servlet.service() para servlet jsp lanz� excepci�n
    java.lang.NullPointerException
    at
    org.ajax4jsf.framework.ajax.AjaxViewHandler.createView(AjaxViewHandler.java:
    78)
    at
    org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:14
    4)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
    FilterChain.java:269)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
    ain.java:188)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
    java:691)
    at
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
    patcher.java:469)
    at
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
    er.java:403)
    at
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
    java:301)
    at
    org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686
    at
    org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:48)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
    31)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
    FilterChain.java:269)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
    ain.java:188)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    va:213)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
    va:174)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
    :108)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
    onnection(Http11BaseProtocol.java:665)
    at
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
    a:528)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
    rkerThread.java:81)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
    a:689)
    at java.lang.Thread.run(Thread.java:595)
    State and looking information and are no longer what might happen.
    Edited by: Scra on Dec 17, 2007 9:37 AM

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

  • JSF app on Tomcat 5.0.27

    Hi I'm reading (and I guess I'm not the only one here) the Core JSF Book, I've installed all the jar files needed in the app of the Chapter 1 to the .../common/lib folder, I have this errors when I try to access to the localhost:8080/login app
    2004-07-28 16:09:13 StandardContext[login]Excepci?n enviando evento inicializado de contexto a instancia de escuchador de clase com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/el/MethodBinding
         at com.sun.faces.config.ConfigureListener.initialized(ConfigureListener.java:1014)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:146)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1068)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
         at java.lang.Thread.run(Unknown Source)
    2004-07-28 16:09:13 StandardContext[login]Excepci?n enviando evento de contexto destru?do a instancia de escuchador de clase com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/el/MethodBinding
         at com.sun.faces.config.ConfigureListener.release(ConfigureListener.java:1250)
         at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:337)
         at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3868)
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4500)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1068)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
         at java.lang.Thread.run(Unknown Source)
    I checked and re-checked the web and config-faces xml files, I even copy the login folder of the example book!
    what should I do ? or what is else more to configure ?

    hi there
    Hmmmm. I think this issue is quite subtle:
    my expanded \WEB-INF\lib shows:
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-discovery-0.2.jar
    myapp-20050627.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    log4j-1.3alpha-6.jar
    spring.jar
    standard.jar
    ( i have excluded commons-logging.jar as this caused errors when reading the existing log4j.properties file)
    Once the build script is run and I copy my .war to ${CATALINA_HOME}/webapps
    I get the following shown in STDOUT although my does deploy
    27-Jun-2005 13:22:04 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3203 ms
    27-Jun-2005 13:22:25 org.apache.catalina.startup.HostConfig deployWARs
    WARNING: Exception while expanding web application archive myapp.war
    27-Jun-2005 13:22:36 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /myapp from URL file:E:/Apache/
    jakarta/Tomcat5.0/webapps/myapp
    27-Jun-2005 13:22:39 org.springframework.web.context.ContextLoader initWebApplic
    .....My tomcat localhost log shows
    2005-06-27 13:22:39 StandardContext[/myapp]Loading Spring root WebApplicationContext
    2005-06-27 13:26:02 StandardContext[/myapp]Closing Spring root WebApplicationContext
    2005-06-27 13:26:02 StandardContext[/myapp]Error configuring application listener of class com.sun.faces.config.ConfigureListener
    java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)I guess I need to turn on trace logging in Tomcat ( and make sure I redirect all statements to tomcat localhost .log) as I need to find which unchecked exception
    causes the Tomcat autodeploy mechanism to stop working
    Regards
    Daniel

  • JSF: Problem during Tomcat Startup

    Hi, I am having a strange problem with a JSF-application.
    I am using jdk 1.3.1 (13), Tomcat 5.0.28 and the Sun JSF-Ref. implementation. On my dev-environment all is well. On the system-test environment of the customer, Tomcat would not initialize the FacesServlet claiming that it can not find the faces-config-file.
    I have tries all 3 ways of referencing the config-file (put it into a jar, put faces-config.xml directly into WEB-INF, add a context-param to web.xml with the URI of the file and param-name javax.faces.CONFIG_FILES). All three work fine on my dev, none of them works on sys-test.
    Funny enough, if I use the context-param in web.xml, where the web-app context is ctx, for the URI /WEB-INF/the-faces-config.xml I get an error during startup, for the URI /ctx/WEB-INF/the-faces-config.xml I don't have a problem on startup but the servlet does not actually read the config-file (you can tell from the fact that it can't resolve any of the Bean-methods).
    Any idea would be much appreciated!
    Cheers, Bastian

    Hi, thanks - unfortunately that did not help. The system (in the original configuration) does find the jars ok in WEB-INF/lib (I can tell since there is code in the jar which is executed before the problems hit me and the stack-trace when it can't resolve the bean-methods is from com.sun.faces.el.impl). It looks like the beans are not actually initialized (which is consistent, since the system can't find the config-file which wires the beans).

  • JSF 1.2/Tomcat 6.x

    I'm having trouble getting JSF 1.2 (myFaces implementation) running with Tomcat 6. Pretty much any JSF tag I use gives me this error:
    javax.servlet.ServletException: /index.jsp(22,4) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)I've done a search, and found some old threads that offer many different solutions that don't work (replace jars in tomcat lib dir, or other wierd configuration changes). It seems tomcat 6 shouldn't need any wierd hacks to play nice with JSF 1.2, as it meets the Servlet and JSP spec required. Any idea whats going on here?
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
        <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>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.faces</url-pattern>
        </servlet-mapping>
    </web-app>faces-config.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <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">
        <managed-bean>
           <managed-bean-name>TestFace</managed-bean-name>
           <managed-bean-class>com.jacked.TestFace</managed-bean-class>
           <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
    </faces-config>index.jsp
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>enter your name page</title>
    </head>
    <body>
    <f:view>
    <h1>
    <h:outputText value="JSF 1.2 Tutorial"/>
    </h1>
      <h:form id="UserEntryForm">
        <h:outputText value="Enter Your Name:"/>
        <h:inputText value="#{TestFace.test}" />
        <h:commandButton action="welcome" value="OK" />
       </h:form>
    </f:view>
    </body>
    </html>Any help is greatly appreciated.
    Thanks

    You could compare with this Pre-configured 6.0.1.0 version. I've done a manual install, but you're right, there are too many possible solutions that just don't work
    http://www.coreservlets.com/Apache-Tomcat-Tutorial/Preconfigured-Tomcat-Version.html

  • Tomahawk + Facelets + JSF 1.1 + Tomcat 4.1

    When I try to run my server with the latest Tomahawk jar, I get the following exception on server startup:
    2006-06-30 08:10:15 org.apache.myfaces.component.html.ext.HtmlDataTable
    javax.faces.FacesException: Can't instantiate class: 'org.apache.myfaces.component.html.ext.HtmlDataTable'.
         at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:792)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:372)
         at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1088)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:362)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3212)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3554)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)These are the jars I'm including in my library:
    antlr-2.7.6rc1.jar
    asm.jar
    cglib-2.1.3.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    dom4j-1.4.jar
    el-api.jar
    el-ri.jar
    hibernate3.jar
    httpunit.jar
    itext-1.4.jar
    jsf-api.jar
    jsf-facelets.jar
    JUnit.3.8.1.jar
    junitee.1.11.jar
    log4j-1.2.13.jar
    nekohtml.jar
    spring.jar
    tomahawk-1.1.3.jar
    jsf-impl.jarI've searched google and these forums for any related problems, but have come up short. Does anyone see a problem with my setup? Thanks in advance!

    Me as well I have the same problem when I tried to use a simple datatable in my JSP
    <t:dataTable id="data"      var="searchResult" border="1">
          <h:column>
              <h:outputText value="test" />     
         </h:column>
    </t:dataTable>The libraries I am using are :
    common-annotations.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar.jar
    standard.jar
    tomahawk-1.1.3.jarMy error :
    org.apache.jasper.JasperException: Can't instantiate class: 'org.apache.myfaces.component.html.ext.HtmlDataTable'.
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:627)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:306)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:225)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         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(Thread.java:534)I tried some other component of Tomahawk and it works, but I am struggling with the extended datatable.
    Thanks,
    Paul

  • Error in Tomcat --- context start up failed due to previous errors

    Feb 27, 2008 11:05:11 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/jstl] startup failed due to previous errors
    Feb 27, 2008 11:05:13 AM com.sun.faces.config.rules.ComponentRule end
    WARNING: [ComponentRule]{faces-config/component} Merge(com.mycompany.TabLabel)
    Feb 27, 2008 11:05:13 AM com.sun.faces.config.rules.ComponentRule end
    WARNING: [ComponentRule]{faces-config/component} Merge(com.mycompany.Tree)
    Feb 27, 2008 11:05:13 AM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(com.mycompany.jsf.validat
    or.LATER_THAN)
    Feb 27, 2008 11:05:14 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 27, 2008 11:05:14 AM org.apache.catalina.core.StandardContext startHello frnds i dont understand what should i do? anybody familiar with this kind of error. please let me know in this case what should i do?
    even if i am trying to copy whole files in another folder it shows same msg for that folder too. please help me
    Thankyou everybody

    Hi ,
    I also face this same kind of problem.
    I tried to fix the problem but not work out.
    I got another solution. I am not sure its a current solution .
    Try it carefully.
    Finally 1, I take back up -copy of server.xml and common/lib .
    2, Un-install Tomcat server.
    3, After i have installed fresh tomcat server.
    4, Replace back-up copy of server.xml and common/lib.
    its working fine

  • Tomcat 5.5 issues, has anyone got JSF working with tomcat 5.5 yet?

    Hi,
    Firstly I'm wondering if anyone has got JSF 1.1 working with tomcat 5.5 yet.
    I'm trying to move from tomcat 5.0.25 to 5.5.4 and my JSF webapps have not liked the move at all.
    The classpath doesn't seem to be a problem as I have all the .jars that are required in the classpath of tomcat just like before.
    I see the error log in stdout.log (catalina.out on linux) have been reduced to only show the precise error. Or at least is seems at lot easier to read.
    My error is simply
    SEVERE: Error listenerStart
    SEVERE: Context startup failed due to previous errors
    I reverted back to using the examples provided like jsf-guessNumber and the car-demo but neither of these will start-up.
    This issue seems to have occurred to lots of other people previously but I couldn't find a particular fix or direct compatability issue with tomcat.
    Has anyone encountered this before?

    Back again,
    Allright well after a little thought I concluded that this issue had to be some to do with the classpath and the changes between the two tomcat versions.
    I had a look at
    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
    and noticed that tomcat 5.5 leaves out some important .jar as they are only needed for java 1.4.
    -------------------- EXTRACT ------------------------
    Installing the compatibility package will add the following to the list, which are
    needed when running on J2SE 1.4:
    * jmx.jar (Java Management Extensions API 1.2 or later)
    * xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)
    --------------------END EXTRACT ------------------------
    Therefore I tried putting xercexImpl.jar back onto the tomcat classpath and JSF works once again.
    Ah what a relief.

  • A new approach to JSF error handling?

    Hi.
    I would like to run an idea by the community to check that I am not being crazy in doing this stuff. I would appreciate any comments, criticism or ideas.
    I was thinking about JSF's error processing mechanism, specifically about how label text gets associated with an input field. So, I am talking about this kind of stuff:
    <h:outputLabel for="firstName" value='#{msgs["applicant.search.firstName"]}: ' />
    <h:inputText id="firstName" value='#{applicantDetailsBackingBean.firstName}' required=�true�/>If the value is not entered into the input field, we will get an error message saying:
    �First Name�: is required.
    So HtmlMessageRenderer has replaced the field id in the FacesMessage with the label text by using the association set up with the 'for' attribute on the label. All of this message "decoration" work happens in the RENDER phase in a centralized location. I see a couple of weaknesses in this approach
    1) It is too late for resolving label text data if the label is inside a data table
    2) JSF establishes associations between label text and the input fields by using the label components to point to their input fields. Although this seems more natural, it limits label text sources to just the label components present on the current page (or whatever is nested under them), which makes it impossible to associate input field messages with label text that does not exist on the page in its entirety.
    Let's look at a couple examples, both of which I ran into in my application:
    1) Consider a situation in which we have a dataTable where every row consists of a student name and an input field for entering their assignment mark. The validation on the input field will be restricted to valid letter grades only. If the user enters an invalid grade, we want them to see an error message of the form: +�The mark entered for <student name> is invalid�.+ Since <student name> is dependent on the row in which the error occurred, this error message is not possible to generate with bare JSF functionality.
    2) Another situation that gets us in trouble is when the label text we want in our error message is not on the page (or not in it's entirety). For example, your page could be split up into multiple parts with those parts having input fields with the same name. We would want the error message to include the page part as well as the field name. This is not easily achieved with the bare JSF functionality.
    So to generalize, any situation where a label component with a static value throughout the lifecycle is not available will cause difficulty.
    Please correct me if I am wrong on any of these points.
    Since in my app I had a lot of complicated pages to deal with, I solved my difficulties by writing a very simple framework that I called Message Decorator Framework (MDF). It enabled me to easily construct much more detailed error messages than what the standard JSF approach seems to allows for. MDF provides a mechanism to specify the label text to be applied to a validation or a conversion message by either a literal, an el expression or via an id of another ValueHolder and all of these work in data tables.
    The idea is a s such, and this is what i would like your opinion on:
    MDF provides more flexible message decoration by adapting the opposite approach to the one used by the JSF:
    1) Message decoration is decentralized. MDF wraps converters and validators on individual input fields and performs message text replacement right on the spot in the PROCESS_VALIDATIONS phase, when all of the pertinent data for resolving the label text is still available.(i.e the components in data tables would still have the correct values for the current row being validated)
    2) The label text to be used is specified by the input field, not the label. This allows the developer to reference any text value, instead of tying them to a specific label component.
    Pictures are better than words, so here is an architectural diagram:
    http://www.imagehosting.com/out.php/i1259440_ArchitectureDiagram.png
    The framework consists of two main classes, ConverterMessageDecorator and ValidatorMessageDecorator. I will just talk about the converter part, b/c the validator part is very similar but wraps a list of validators instead of one converter.
    So ConverterMessageDecorator is a JSF converter. Its purpose is to wrap the converter that is going to do the actual conversion work and decorate the FacesMessage inside ConverterException if one was thrown.
    The converter to wrap can be either determined automatically based on the type of the value reference of the input field or specified explicitly. This converter decorates the message by replacing all instances of the input field�s id with the resolved label text. The power of this approach is that not only do you get a much more flexible way to specify what the label text is (either fieldLabel or fieldLabelComponent attributes), but now data tables are no longer a problem.
    Here are some usage examples:
    <h:inputText value='#{section33SetupBackingBean.contribution.sampleGatePct}'>
       <md:decorateConverterMessage fieldLabel= '#{msgs["section.34.setup.contribution.initial.sampling.gate.max.size"]}' />
    </h:inputText>
    �etc�
    <h:inputText value='#{section33SetupBackingBean.payment.sampleGatePct}'>
       <md:decorateConverterMessage fieldLabel= '#{msgs["section.34.setup.payment.initial.sampling.gate.max.size"]}' />
    </h:inputText>The two input fields have exactly the same labels on the screen (they are in two different parts of the page), so if we used their respective labels, the error messages would look the same for these two input fields.
    More complicated example:
    <h:dataTable value="#{paymentCalcBackingBean.currentPaymentPercentages}" var="currentPercentage" >
    <h:column>
      <ops:refDataDescription id="provinceLabelTextId" refDataType="provinceStateType"
                code="${currentPercentage.programProvince.provinceStateTypeCode}" />
    </h:column>
    <h:column>
      <h:inputText value="${currentPercentage.federalPercentage}">
    <md:decorateConverterMessage fieldLabelComponent="provinceLabelTextId"  valueRequired="true" >
       <f:converter converterId="ops.PercentageConverter" />
    </md:decorateConverterMessage>
    <md:decorateValidatorMessage fieldLabelComponent="provinceLabelTextId" >
       <f:validator validatorId="ops.PercentageValidator" />
    </md:decorateValidatorMessage>
    </h:column>
    �etc�
    </h:dataTable>This would produce errors shown in this screenshot: http://www.imagehosting.com/out.php/i1259418_Example3.png
    Here is another example that shows off what you can do by referencing other ValueHolders on the page.
    The code is exactly the same as the snippet shown above, but the inputText component is referencing a text box, so the label text is going to be whatever the user types into the text box:
    http://www.imagehosting.com/out.php/i1259467_Example4.png
    Does this approach seem reasonable to people, or am I reinventing the wheel? Please let me know.
    Val

    Try restarting the DTR application and see if the problem persists.

  • Java 64-bit Windows 7 - Error with Tomcat Install

    Downloaded and ran jre-6u20-windows-i586-s.exe on a Win host (Dell PowerEdge R610 with 16 Core 2.27 GHz Intel Xeon) running Windows 7 64-bit. The website said if you're running a 64-bit Windows OS then download that file.
    When I run the command "java -version" it says,
    "C:\Users\plozanci>java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)"
    I'm trying to install Apache Tomcat 6.0.26. Getting the error: "[206 javajni.c] [error] %1 is not a valid Win32 application."
    After searching the web, it looks like the Tomcat is looking for a 64-bit JRE but encountering a 32-bit version. I thought that the jre-6u20-windows-i586-s.exe file had the 32-bit & 64-bit versions. If this is true, how do I get Tomcat to use the right version?
    If its false, where is the 64-bit version for Windows 7?

    No. They are separate installers. The 32bit will run on a 64bit OS, but it is not 64bit. If you need the 64bit, you will need to download the 64bit installer.
    You will need: jre-6u20-windows-x64.exe
    Go: http://java.sun.com/javase/downloads/index.jsp
    select: Download JRE
    select: Windows x64
    Happy downloading!
    -Roger

Maybe you are looking for

  • How to upload vendor open item data.

    How to upload vendor open item data.

  • IC WebClient: Add new field case management result view.

    Hello Experts, I need to add a new field in the view CaseAResult.htm, this field is EXT_REF and It is in the structure of CmgCaseStandard (I see in the GENIL_MODEL_BROWSER) I append the field in the view CaseASearch.htm with the transaction BSP_WD_WO

  • **SOLVED** TrueCrypt - Why would you add it to startup script?

    Hi Guys, This might be a stupid question, but... I read the wiki entry on TrueCrypt (http://wiki.archlinux.org/index.php/TrueCrypt). I'm assuming the use-case for TrueCrypt would be if someone management to get hold of the hard-disk, the contents wou

  • BI Publisher xmlpserver 500 Internal Server Error

    Hi All, I am fairly new to Oracle BI; we recently experienced a problem with BI Publisher after redeploying xmlpServer.ear onto OC4J. We are unable to connect to the Presentation Server. We are getting the following errors Exception java.lang.Excepti

  • I change my shortname and now I'm hosed?

    Hi all, I'm new to the mac so go gently on me. I used "sudo niutil -createprop . /users/$USER name newname" to change my shortname (where newname was actually the name I wanted to change to). Now after researching some more Apple does not recommend t