You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Khurram Ahmed <kh...@gmail.com> on 2005/11/10 07:36:25 UTC

java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!

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?