Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1480

MyFaces1.1.1 example simple deployed in Tomcat 5.5.20 - Class Loader error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.1
    • 1.1.1
    • General
    • None
    • Tomcat 5.5.20, Java 5, Eclipse 3.2

    Description

      When I deploy the example simple folder from myfaces 1.1.1 into the webapps folder under Tomcat and then run Tomcat 5.5.20, I see the following error:-
      Error Screen :-
      Oct 26, 2006 12:09:11 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program Files\apache-ant-1.6.5\bin;C:\Program Files\Rational\common;\\drcalvin.dr.avaya.com\ccase_c_07\mmcxint\viewtools;
      Oct 26, 2006 12:09:12 PM org.apache.coyote.http11.Http11BaseProtocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      Oct 26, 2006 12:09:12 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 3312 ms
      Oct 26, 2006 12:09:12 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Oct 26, 2006 12:09:12 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
      Oct 26, 2006 12:09:12 PM org.apache.catalina.core.StandardHost start
      INFO: XML validation disabled
      Oct 26, 2006 12:09:13 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive HelloWorldWeb.war
      Oct 26, 2006 12:09:13 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive struts-blank.war
      Oct 26, 2006 12:09:13 PM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
      INFO: Tiles definition factory loaded for module ''.
      Oct 26, 2006 12:09:13 PM org.apache.struts.validator.ValidatorPlugIn initResources
      INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
      Oct 26, 2006 12:09:13 PM org.apache.struts.validator.ValidatorPlugIn initResources
      INFO: Loading validation rules file from '/WEB-INF/validation.xml'
      Oct 26, 2006 12:09:14 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive struts-menu.war
      Oct 26, 2006 12:09:14 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive StrutsTest.war
      Oct 26, 2006 12:09:15 PM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
      INFO: Tiles definition factory loaded for module ''.
      Oct 26, 2006 12:09:15 PM org.apache.struts.validator.ValidatorPlugIn initResources
      INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
      Oct 26, 2006 12:09:15 PM org.apache.struts.validator.ValidatorPlugIn initResources
      INFO: Loading validation rules file from '/WEB-INF/validation.xml'
      Oct 26, 2006 12:09:15 PM org.apache.catalina.core.ApplicationContext log
      INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: contextInitialized()
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextInitialized()
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: contextInitialized()
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextInitialized()
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.ApplicationContext log
      SEVERE: StandardWrapper.Throwable
      java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
      A typical config looks like this;
      <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      at org.apache.catalina.core.StandardService.start(StandardService.java:450)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
      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:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      Oct 26, 2006 12:09:16 PM org.apache.catalina.core.StandardContext loadOnStartup
      SEVERE: Servlet /simple threw load() exception
      java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
      A typical config looks like this;
      <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      at org.apache.catalina.core.StandardService.start(StandardService.java:450)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
      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:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      Oct 26, 2006 12:09:16 PM org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      Oct 26, 2006 12:09:17 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      Oct 26, 2006 12:09:17 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/31 config=null
      Oct 26, 2006 12:09:17 PM org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      Oct 26, 2006 12:09:17 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 5188 ms
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            vindya Vindya Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: