You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by João Carlos Bortoletto Junior <JB...@visanet.com.br> on 2005/10/19 22:23:45 UTC
Myfaces under OC4J
Hi friends
I'm trying to load myfaces-examples application under OC4J (Oracle IAS), with MyFaces version 1.0.9.
Do you have any idea of what is happening???
Thanks!!!
Joao
===============================================================================
05/10/19 16:42:12 Started
05/10/19 16:42:36 myfaces-examples: jsp: init
05/10/19 16:42:36 myfaces-examples: Error initializing servlet
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:101)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
at com.evermind.server.Application.getHttpApplication(Application.java:886)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:534)
05/10/19 16:42:36 myfaces-examples: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4574)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
at com.evermind.server.Application.getHttpApplication(Application.java:886)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:534)
05/10/19 16:42:38 myfaces-examples: 9.0.4.0.0 Started
05/10/19 16:42:43 myfaces-examples: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!
java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!
at org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:131)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:385)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:246)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/10/19 16:42:43 myfaces-examples: Servlet error
java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!
at org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:131)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:385)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:246)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Re: Myfaces under OC4J
Posted by Matthias Wessendorf <mw...@gmail.com>.
note the informations provided on that page are ADF Faces informations...
but with *modifications* that will work for MyFaces as well
;-)
On 10/20/05, Matthias Wessendorf <mw...@gmail.com> wrote:
> sounds like your web.xml has no Context Listener defined
> <listener>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
>
> the newer versions of myfaces contains this listener inside of the
> core.tld (like the RI does).
>
> I was able to deploy MyFaces demo app in OC4J 9.0.4.0 and OC4J 9.0.4.1
>
> More informations on deployment you'll find here:
> (Plattform Information)
> http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html#Platform%20Information
>
> HTH,
> Matthias
>
--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com
Re: Myfaces under OC4J
Posted by Matthias Wessendorf <mw...@gmail.com>.
sounds like your web.xml has no Context Listener defined
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
the newer versions of myfaces contains this listener inside of the
core.tld (like the RI does).
I was able to deploy MyFaces demo app in OC4J 9.0.4.0 and OC4J 9.0.4.1
More informations on deployment you'll find here:
(Plattform Information)
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html#Platform%20Information
HTH,
Matthias