dev@javaserverfaces.java.net

Re: Fw: Re: Getting: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'faces-config'. at startup

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 14 Nov 2005 13:53:56 -0800

jacob_at_hookom.net wrote:

>Did something change in the RI that now is not allowing the ELResolvers
>to be setup outside of JSP 2.1? I'm wondering if we lost some
>functionality (or silence) within the Configuration logic as it relates
>to configuring EL outside of JSP 2.1?
>
>
The logic to handle different JSP versions seems intact.
Looks to me that the last changes to this section was 8/2/05.

Any chance of getting a repro that demonstrates this?

>Thanks,
>Jacob
>
>Message forwarded from Johannes Hiemer <jhiemer_at_web.de> on 11/14/2005,
>05:02:35 PM:
>
>
>>Could be possibly right, but trying to run a jspx results in:
>>
>>14.11.2005 17:02:24 com.sun.facelets.FaceletViewHandler handleRenderException
>>SCHWERWIEGEND: Error Rendering View
>>java.lang.UnsupportedOperationException
>> at javax.faces.application.Application.getELResolver(Application.java:400)
>> at com.sun.faces.context.FacesContextImpl.getELContext(FacesContextImpl.java:143)
>> at com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:54)
>> at com.sun.facelets.impl.DefaultFaceletContext.(DefaultFaceletContext.java:64)
>> at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:91)
>> at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:400)
>> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
>> at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:182)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
>> at net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108)
>> at net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:154)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:214)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:324)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220)
>> at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
>> at net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
>> at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Unknown Source)
>>14.11.2005 17:02:24 com.sun.facelets.FaceletViewHandler handleRenderException
>>SCHWERWIEGEND: Took Type: org.apache.catalina.connector.CoyoteWriter
>>
>>
>>Regards Johannes.
>>
>>
>>users_at_facelets.dev.java.net schrieb am 14.11.05 15:36:21:
>>
>>
>>>If you are using the new 1.2 RI, it will log its exceptions on startup
>>>whereby JSF 1.2 is meant to run with JSP 2.1, so on startup, the RI
>>>attempts to register with a non-existant JSP 2.1 implementation. I'm
>>>not sure the NullPointerException in the logs in necessary though in
>>>place of a simple warning that it couldn't register with JSP 2.1--
>>>
>>>-- Jacob
>>>
>>>
>>>Johannes Hiemer wrote:
>>>
>>>
>>>
>>>>Hi,
>>>>after switching to 1.0e I always get the following exception at tomcat startup:
>>>>2005-11-14 09:03:36,203 [main] INFO - ServletContext 'C:\eclipse\workspace\Clara\.deployables\Clara\' initialized.
>>>>2005-11-14 09:03:36,437 [main] ERROR - Parse Error at line 2 column 59: cvc-elt.1: Cannot find the declaration of element 'faces-config'.
>>>>org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'faces-config'.
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>>>> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
>>>> at org.apache.commons.digester.Digester.parse(Digester.java:1548)
>>>> at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1300)
>>>> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:325)
>>>> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
>>>> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
>>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>>>> at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>>>>14.11.2005 09:03:38 com.sun.faces.config.ConfigureListener registerELResolverAndListenerWithJsp
>>>>SCHWERWIEGEND: Error Instantiating ExpressionFactory
>>>>java.lang.NullPointerException
>>>> at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1413)
>>>> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:399)
>>>> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
>>>> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
>>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>>>> at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>>>>
>>>>Does anybody know the reason?
>>>>
>>>>Thanks a lot.
>>>>
>>>>Regards Johannes
>>>>______________________________________________________________
>>>>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe_at_facelets.dev.java.net
>>>>For additional commands, e-mail: users-help_at_facelets.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>--
>>>Jacob Hookom - Minneapolis
>>>--------------------------
>>>http://hookom.blogspot.com
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe_at_facelets.dev.java.net
>>>For additional commands, e-mail: users-help_at_facelets.dev.java.net
>>>
>>>
>>>
>>__________________________________________________________________________
>>Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
>>Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_facelets.dev.java.net
>>For additional commands, e-mail: users-help_at_facelets.dev.java.net
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
>For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>
>