StartupServletContextlistener is the only place that actually calls WebXml.init() (besides from the MyFacesGenericPortlet), so even though you may actually have this thing configured in the web.xml, it seems you may have misconfigured or your container doesn't understand the concept of servlet context listeners. If the latter is true, try using the MyFacesServlet in your web.xml mapping, since that should try to initialize faces if it is not initialized already (talking 1.09 here, don't know about later versions)

Mvgr,
Martin

Khurram Ahmed wrote:
Well ive already configured the StartupServletContextListener that isnt the problem, id also like to add that ive posted to this mailing list after looking around for all possible answers to the question that i could come up with on my own or on google



On 11/10/05, *Martin van den Bemt* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Seems like you are missing :
         <!-- Listener, that does all the startup work for myfaces
    (configuration, init). -->
         <listener>
             <listener-class>
                 org.apache.myfaces.webapp.StartupServletContextListener
             </listener-class>
         </listener>
    from the web.xml ?

    Mvgr,
    Martin

    Khurram Ahmed wrote:
     > I have developed an application using my faces version 1.0.9 using
     > tomcat as my servlet container, i was able to deploy the
    application on
     > Oracle Application Server 10.1.3 Developer preview 4, however i am
     > unable to run the same application on oracle application server
     > 10.1.2.0.2 and encounter the following errors
     >
     >
     > 500 Internal Server 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
     >
    
(10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(
    ServletRequestDispatcher.java:330)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    
(10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    
(10.1.2.0.2)].server.http.EvermindPageContext.forward(EvermindPageContext.java:224)
     > at _index._jspService(_index.java:48)
     > [SRC:/index.jsp:5]
     > at com.orionserver[Oracle Application Server Containers for J2EE 10g
     > (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     > at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java :350)
     > at
    oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     > at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     > at javax.servlet.http.HttpServlet.service(HttpServlet.java :853)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    
(10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    
(10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     > (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(
    HttpRequestHandler.java:830)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     >
    (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
     > at com.evermind[Oracle Application Server Containers for J2EE 10g
     > (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(
    ReleasableResourcePooledExecutor.java:192)
     > at java.lang.Thread.run(Thread.java:534)
     >
     > I am getting the same error in my server log, what exactly could
    be the
     > reason for this error? Has anyone faced a similar error and found a
     > solution?


Reply via email to