geronimo-iia / winstone

Winstone is a servlet container that was written out of a desire to provide servlet functionality without the bloat that full J2EE compliance introduces.
GNU Lesser General Public License v2.1
22 stars 3 forks source link

Simple JSF webapp can't work: could not find Factory: javax.faces.context.FacesContextFactory #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.>winstone-XX.jar --warfile=myjsfapp.war

What is the expected output? What do you see instead?
Simple JSF webapp doesnt seemed to work.
I have jsf-api.jar and jsf-impl.jar in the WEB-INF/lib directory.
War file works on tomcat.

What version of the product are you using? On what operating system?
Windows 7 Home Premium 64bit

Please provide any additional information below.
Log:

[Winstone 2011/10/09 06:12:52] - Beginning extraction from war file
[Winstone 2011/10/09 06:12:58] - Error initializing web application: prefix []
java.lang.IllegalStateException: Application was not properly initialized at 
startup, could not find Factory: javax.faces.context.FacesContextFactory
    at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:894)
    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:253)
    at winstone.ServletConfiguration.ensureInitialization(ServletConfiguration.java:183)
    at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:918)
    at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
    at winstone.HostConfiguration.<init>(HostConfiguration.java:73)
    at winstone.HostGroup.initHost(HostGroup.java:85)
    at winstone.HostGroup.<init>(HostGroup.java:45)
    at winstone.Launcher.<init>(Launcher.java:196)
    at winstone.Launcher.main(Launcher.java:391)

[Winstone 2011/10/09 06:12:58] - Winstone Servlet Engine v0.9.10 running: 
controlPort=disabled
[Winstone 2011/10/09 06:12:58] - HTTP Listener started: port=8080
[Winstone 2011/10/09 06:12:58] - AJP13 Listener started: port=8009

Original issue reported on code.google.com by srichard...@gmail.com on 8 Oct 2011 at 10:33

GoogleCodeExporter commented 9 years ago
it seems to be a classpath problem during initialization.
I will going to test a simple web app with jsf inside in order to reproduce it.

Original comment by jguibert@gmail.com on 26 Oct 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Could you provide me your webapp or more information about your web.xml and lib 
folder ?
Because i could not reproduce this bug...

Regards

Jerome

Original comment by jguibert@gmail.com on 28 Jan 2012 at 10:00

GoogleCodeExporter commented 9 years ago

Original comment by jguibert@gmail.com on 22 Feb 2012 at 10:57