WebXml.init must be called before
I am attempting to delpoy to the SAP webAS server. The application works fine with Tomcat 4 but with webAS I get the following error: Error [javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!], with root cause [java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!]. I have the listener included in my web.xml file. org.apache.myfaces.webapp.StartupServletContextListener I have noticed it has been discussed before in November 2005, but the suggested solutions have been unsuccessful at the moment. Any help gratefully appreciated. Johnny Sutherland Johnny Sutherland
WebXml.init must be called before
I am attempting to delpoy to the SAP webAS server. The application works fine with Tomcat 4 but with webAS I get the following error: Error [javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!], with root cause [java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!]. I have the listener included in my web.xml file. org.apache.myfaces.webapp.StartupServletContextListener I have noticed it has been discussed before in November 2005, but the suggested solutions have been unsuccessful at the moment. Any help gratefully appreciated. Johnny Sutherland
WebXml.init must be called before!
I'm trying to move an application from the RI to MyFaces. I've got the StartupServletContextListener specified in web.xml, but when I try to access the application, I get the following unpleasantness: javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! javax.faces.webapp.FacesServlet.service(FacesServlet.java:125) org.apache.shale.faces.ShaleApplicationFilter.doFilter (ShaleApplicationFilter.java:280) I have no idea what that message means (before *what*!?!) or what to do about it. Can anybody help me out? Thanks, david
Re: WebXml.init must be called before!
Nevermind, I figured out what's going on as soon as I hit the send button to send the email. But, hey, thanks anyway. 8-} david Le 05-08-26 à 17:49, David Geary a écrit : I'm trying to move an application from the RI to MyFaces. I've got the StartupServletContextListener specified in web.xml, but when I try to access the application, I get the following unpleasantness: javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! javax.faces.webapp.FacesServlet.service(FacesServlet.java:125) org.apache.shale.faces.ShaleApplicationFilter.doFilter (ShaleApplicationFilter.java:280) I have no idea what that message means (before *what*!?!) or what to do about it. Can anybody help me out? Thanks, david
AW: WebXml.init must be called before!
What was your solution as I'm getting the same error with MyFaces 1.09 and Weblogic 8.1? -Ursprüngliche Nachricht- Von: David Geary [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 27. August 2005 01:54 An: MyFaces Discussion Betreff: Re: WebXml.init must be called before! Nevermind, I figured out what's going on as soon as I hit the send =20 button to send the email. But, hey, thanks anyway. 8-} david Le 05-08-26 =E0 17:49, David Geary a =E9crit : > I'm trying to move an application from the RI to MyFaces. I've got =20 > the StartupServletContextListener specified in web.xml, but when I =20 > try to access the application, I get the following unpleasantness: > > javax.servlet.ServletException: =20 > org.apache.myfaces.webapp.webxml.WebXml.init must be called before! > javax.faces.webapp.FacesServlet.service(FacesServlet.java:125) > org.apache.shale.faces.ShaleApplicationFilter.doFilter=20 > (ShaleApplicationFilter.java:280) > > I have no idea what that message means (before *what*!?!) or what =20 > to do about it. Can anybody help me out? > > Thanks, > > > david >
sandbox and "WebXml.init must be called before!"
Hi all, If I try to include sandbox.jar in my project, when I launch it I obtain: exception javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) root cause java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:123) org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:346) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:199) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) Obviously, in my web.xml file is included the listener: org.apache.myfaces.webapp.StartupServletContextListener suggestion ? I need sandbox in order to use instead of the one, because of famous date shifting. thanks to all. -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: sandbox and "WebXml.init must be called before!"
Does the sandbox.war work for you? Bruno 2005/11/10, Francesco Consumi <[EMAIL PROTECTED]>: > Hi all, > > If I try to include sandbox.jar in my project, when I launch it I obtain: > exception > > javax.servlet.ServletException: > org.apache.myfaces.webapp.webxml.WebXml.init must be called before! > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) > > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) > > root cause > > java.lang.IllegalStateException: > org.apache.myfaces.webapp.webxml.WebXml.init must be called before! > org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:123) > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:346) > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:199) > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) > javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) > > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) > > > Obviously, in my web.xml file is included the listener: > > > org.apache.myfaces.webapp.StartupServletContextListener > > > > suggestion ? > > I need sandbox in order to use instead of the > one, because of famous date shifting. > > > thanks to all. > > > -- > Francesco Consumi > Ufficio Sistemi informativi > Istituto degli Innocenti > Piazza SS.Annunziata, 12 > 50122 Firenze > consumi at istitutodeglinnocenti.it > Tel. +39 055 2037320 > ICQ# 12516133 > > >
Re: sandbox and "WebXml.init must be called before!"
hello, have you checked that your myfaces & sandbox are of same version? i think if you are using myfaces-20050101 jars you should pick also sandbox-20050101 jars HTH marco On 11/10/05, Bruno Aranda <[EMAIL PROTECTED]> wrote: Does the sandbox.war work for you?Bruno2005/11/10, Francesco Consumi < [EMAIL PROTECTED]>:> Hi all,>> If I try to include sandbox.jar in my project, when I launch it I obtain:> exception>> javax.servlet.ServletException:> org.apache.myfaces.webapp.webxml.WebXml.init must be called before!> javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:362)>> root cause>> java.lang.IllegalStateException:> org.apache.myfaces.webapp.webxml.WebXml.init must be called before!> org.apache.myfaces.webapp.webxml.WebXml.getWebXml (WebXml.java:123)> org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:346)> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java :199)> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)> javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:362)>>> Obviously, in my web.xml file is included the listener:> >> org.apache.myfaces.webapp.StartupServletContextListener > >>> suggestion ?>> I need sandbox in order to use instead of the > one, because of famous date shifting. >>> thanks to all.>>> --> Francesco Consumi> Ufficio Sistemi informativi> Istituto degli Innocenti> Piazza SS.Annunziata, 12> 50122 Firenze> consumi at istitutodeglinnocenti.it> Tel. +39 055 2037320> ICQ# 12516133>>>
Re: sandbox and "WebXml.init must be called before!"
Quoting Bruno Aranda <[EMAIL PROTECTED]>: Does the sandbox.war work for you? No. If I deploy sandbox.war (20051109 snapshot) as is on my Tomcat 5.5.12, I obtain: GRAVE: Servlet /sandbox threw load() 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. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; org.apache.myfaces.webapp.StartupServletContextListener -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: sandbox and "WebXml.init must be called before!"
I reproduced your problem Francesco. I am going to investigate further. Yesterday I did a build from the svn and I had no problems, maybe this is a problem with the general build... Regards, Bruno 2005/11/10, Francesco Consumi <[EMAIL PROTECTED]>: > Quoting Bruno Aranda <[EMAIL PROTECTED]>: > > > Does the sandbox.war work for you? > > > > No. If I deploy sandbox.war (20051109 snapshot) as is on my Tomcat > 5.5.12, I obtain: > > GRAVE: Servlet /sandbox threw load() 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. Also check the logging output of your web application and > your container for any exceptions! > If you did that and find nothing, the mistake might be due to the fact > that you use some special web-containers which do not support > registering context-listeners via TLD files and a context listener is > not setup in your web.xml. > A typical config looks like this; > > > org.apache.myfaces.webapp.StartupServletContextListener > > > > > > > -- > Francesco Consumi > Ufficio Sistemi informativi > Istituto degli Innocenti > Piazza SS.Annunziata, 12 > 50122 Firenze > consumi at istitutodeglinnocenti.it > Tel. +39 055 2037320 > ICQ# 12516133 > > >
Re: sandbox and "WebXml.init must be called before!"
In the meanwhile, can you open a JIRA issue? Regards, Bruno 2005/11/10, Bruno Aranda <[EMAIL PROTECTED]>: > I reproduced your problem Francesco. I am going to investigate > further. Yesterday I did a build from the svn and I had no problems, > maybe this is a problem with the general build... > > Regards, > > Bruno > > 2005/11/10, Francesco Consumi <[EMAIL PROTECTED]>: > > Quoting Bruno Aranda <[EMAIL PROTECTED]>: > > > > > Does the sandbox.war work for you? > > > > > > > No. If I deploy sandbox.war (20051109 snapshot) as is on my Tomcat > > 5.5.12, I obtain: > > > > GRAVE: Servlet /sandbox threw load() 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. Also check the logging output of your web application and > > your container for any exceptions! > > If you did that and find nothing, the mistake might be due to the fact > > that you use some special web-containers which do not support > > registering context-listeners via TLD files and a context listener is > > not setup in your web.xml. > > A typical config looks like this; > > > > > > org.apache.myfaces.webapp.StartupServletContextListener > > > > > > > > > > > > > > -- > > Francesco Consumi > > Ufficio Sistemi informativi > > Istituto degli Innocenti > > Piazza SS.Annunziata, 12 > > 50122 Firenze > > consumi at istitutodeglinnocenti.it > > Tel. +39 055 2037320 > > ICQ# 12516133 > > > > > > >
Re: sandbox and "WebXml.init must be called before!"
Quoting Bruno Aranda <[EMAIL PROTECTED]>: Bruno Aranda ha scritto: I reproduced your problem Francesco. I am going to investigate further. Yesterday I did a build from the svn and I had no problems, maybe this is a problem with the general build... Thanks, I noticed this problem since a week. Older builds of sandbox.jar didn't have this problem, but there wasn't the converter I need for replacing myfaces-all.jar from 1.1.0 with 1.1.1 .. -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: sandbox and "WebXml.init must be called before!"
I've identified the source of the problem, I am going to open a JIRA now. The top part of the examples-config.xml file is missing: http://java.sun.com/dtd/web-facesconfig_1_0.dtd";> and this provokes a org.xml.sax.SAXParseException... INFO: Reading config /WEB-INF/examples-config.xml 10/11/2005 10:37:35 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 5 column 18: Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found. The file is ok in the sources, so something happens during the build process... Regards, Bruno 2005/11/10, Francesco Consumi <[EMAIL PROTECTED]>: > Quoting Bruno Aranda <[EMAIL PROTECTED]>: > > Bruno Aranda ha scritto: > > I reproduced your problem Francesco. I am going to investigate > > further. Yesterday I did a build from the svn and I had no problems, > > maybe this is a problem with the general build... > > Thanks, > I noticed this problem since a week. Older builds of sandbox.jar didn't > have this problem, but there wasn't the converter I > need for replacing myfaces-all.jar from 1.1.0 with 1.1.1 .. > > > > -- > Francesco Consumi > Ufficio Sistemi informativi > Istituto degli Innocenti > Piazza SS.Annunziata, 12 > 50122 Firenze > consumi at istitutodeglinnocenti.it > Tel. +39 055 2037320 > ICQ# 12516133 > > >
Re: sandbox and "WebXml.init must be called before!"
Quoting Bruno Aranda <[EMAIL PROTECTED]>: I've identified the source of the problem, I am going to open a JIRA now. Thank you. Regarding my "main" problem, I solved by doing as suggested by Marco: I replaced myfaces-all.jar file with latest version. -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: sandbox and "WebXml.init must be called before!"
I've fixed the sandbox.war thing in the SVN... Bruno 2005/11/10, Francesco Consumi <[EMAIL PROTECTED]>: > Quoting Bruno Aranda <[EMAIL PROTECTED]>: > > > I've identified the source of the problem, I am going to open a JIRA > > now. > > Thank you. Regarding my "main" problem, I solved by doing as suggested > by Marco: I replaced myfaces-all.jar file with latest version. > > > > -- > Francesco Consumi > Ufficio Sistemi informativi > Istituto degli Innocenti > Piazza SS.Annunziata, 12 > 50122 Firenze > consumi at istitutodeglinnocenti.it > Tel. +39 055 2037320 > ICQ# 12516133 > > >