Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:25:25 PM

Pages: [1]   Go Down
  Print  
Author Topic: Help: Exception on simple JSF 1.1 test on Resin 2.1.13  (Read 1225 times)
slegge
Newbie
*
Offline Offline

Posts: 2


« on: April 10, 2009, 10:54:44 AM »

I'm deploying a simple JSF 1.1 "Hello world" application to Resin 2.1.13 (using MyFaces 1.1.6) and I get this error when I visit the page (below).

I tried putting the <listener> tag in the web.xml like it suggests, but that caused the entire webapp to die.

Does anyone know what I'm doing wrong?  Any help is greatly appreciated.

Here's the URL:
http://www.rightclick.ca/jsftest1/test1.jsf

rh

>>>
500 Servlet Exception
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. <br/>
 Make sure that the JSF-API (myfaces-api-xxx.jar) is not included twice on the classpath - if not, the factories might be configured in the wrong class instance. <br/>
If you use Tomcat, it might also pay off to clear your /[tomcat-installation]/work/
directory - Tomcat sometimes stumbles over its own tld-cache stored there,
and doesn't load the StartupServletContextListener. <br/>
Also check the logging output of your web application and your container
for any exceptions!
<br/>If you did that and find nothing, the mistake might be due to the
fact that you use one of the very few web-containers which do not support
registering context-listeners via TLD files and a context listener is not
setup in your web.xml. <br/>
Add the following lines to your web.xml file to work around this issue
: <br/>
&lt;listener&gt;
<br/>  &lt;listener-class&gt;org.apache.myfaces.webapp.StartupServletContextListener&lt;/listener-class&gt;
<br/>&lt;/listener&gt;
   at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:110)
   at javax.faces.webapp.FacesServlet.init(FacesServlet.java:99)
   at com.caucho.server.http.Application.createServlet(Application.java:3114)
   at com.caucho.server.http.Application.loadServlet(Application.java:3065)
   at com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:435)
   at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2809)
   at com.caucho.server.http.Application.buildFilterChain(Application.java:2765)
   at com.caucho.server.http.Invocation.service(Invocation.java:313)
   at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
   at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
   at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
   at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
   at java.lang.Thread.run(Thread.java:595)

Resin 2.1.13 (built Thu Apr 1 10:57:42 PST 2004)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: