Hi Legolas, I remember an issue like this with Tomcat 5.5.20, it cant get the context listener defined in tld.
You could either try with some other tomcat or define the listener in web.xml. Regards, Cagatay On 1/23/07, legolas <[EMAIL PROTECTED]> wrote:
legolas wrote: > > Hi > Thank you for reading my post. > can you please tell me where i can downlaod source code for Tomahawk > examples ? > binaries are http://people.apache.org/builds/myfaces/nightly/ but i can > not find the source codes. > > Hi I download the tomhawk samples as a zip file and i find some war files inside it, now i deployed the war files inside tomcat 5.5.20 and it does not works, it returns an error like : Message: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; org.apache.myfaces.webapp.StartupServletContextListener and an stack trace is shown : [code] java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; org.apache.myfaces.webapp.StartupServletContextListener at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93) at javax.faces.webapp.FacesServlet.init(FacesServlet.java:91) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java :1105) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java :757) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:130) 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: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:619) [/code] can some one tell me what is problem here? thanks -- View this message in context: http://www.nabble.com/where-i-can-download-Tomahawk-examples-source-code--tf3050509.html#a8549687 Sent from the MyFaces - Users mailing list archive at Nabble.com.