You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mihir Solanki <mi...@patni.com> on 2005/03/21 12:56:27 UTC

MyFaces 1.0.9 not working with Tomcat 5.0.28

MyFaces 1.0.9 is also not working at my end in Tomcat 5.0.28

 

Following is the error I am getting when I request for the index.jsp

 

Thanks

Mihir Solanki

  _____  

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet
threw exception

 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)

 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)

 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)

        java.lang.Thread.run(Thread.java:534)

root cause 

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</lis
tener-class>

</listener>

 

        javax.faces.FactoryFinder.getFactory(FactoryFinder.java:101)

        javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)

 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)

 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)

 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)

        java.lang.Thread.run(Thread.java:534)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.

  _____  

Apache Tomcat/5.0.28

 


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________

Re: MyFaces 1.0.9 not working with Tomcat 5.0.28

Posted by Sean Schofield <se...@gmail.com>.
I am running MyFaces 1.0.9 on Tomcat 5.0.28 with no problem.  Try
using a *clean* install of Tomcat (no changes to the libs, or
server.xml) along with the latest simple examples WAR
(http://cvs.apache.org/builds/myfaces/nightly/)

This should verify that there is no issue with the default
installation of Tomcat 5.0.28.

sean


On Mon, 21 Mar 2005 17:26:27 +0530, Mihir Solanki
<mi...@patni.com> wrote:
>  
>  
> 
> MyFaces 1.0.9 is also not working at my end in Tomcat 5.0.28 
> 
>   
> 
> Following is the error I am getting when I request for the index.jsp 
> 
>   
> 
> Thanks 
> 
> Mihir Solanki 
>  ________________________________
>  
> 
> type Exception report 
> 
> message 
> 
> description The server encountered an internal error () that prevented it
> from fulfilling this request. 
> 
> exception 
> 
> javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet
> threw exception 
> 
>        
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 
>        
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 
> 
>        
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
> 
>        
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 
>        
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
> 
>        
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 
>         java.lang.Thread.run(Thread.java:534) 
> 
> root cause 
> 
> 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> 
> 
>   
> 
>         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:101) 
> 
>         javax.faces.webapp.FacesServlet.init(FacesServlet.java:88) 
> 
>        
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 
>        
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 
> 
>        
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
> 
>        
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 
>        
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
> 
>        
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 
>         java.lang.Thread.run(Thread.java:534) 
> 
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.0.28 logs. 
>  ________________________________
>  
> 
> Apache Tomcat/5.0.28 
> 
>   
> http://www.patni.com
>  World-Wide Partnerships. World-Class Solutions. 
>  _____________________________________________________________________ 
>  
>  This e-mail message may contain proprietary, confidential or legally
> privileged information for the sole use of the person or entity to whom this
> message was originally addressed. Any review, e-transmission dissemination
> or other use of or taking of any action in reliance upon this information by
> persons or entities other than the intended recipient is prohibited. If you
> have received this e-mail in error kindly delete this e-mail from your
> records. If it appears that this mail has been forwarded to you without
> proper authority, please notify us immediately at netadmin@patni.com and
> delete this mail. 
>  _____________________________________________________________________