myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Niemeyer <andreas.nieme...@gutzmann.com>
Subject Re: XML Parse Error MyFaces 1.1.6 (please help)
Date Wed, 15 Oct 2008 12:58:03 GMT
I use MyFaces 1.1.6 and the faces-config.xml looks different:

<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
   "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
   "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >

<faces-config>


Andreas



jhomuth schrieb:
> Hello List,
> 
> we first used MyFaces 1.2 in our project, but now we have to downgrade 
> to 1.1.6. Ok we inserted the Libs for that Version and no Output is on 
> the screen. Damm it. We wanted to start a new projekt with this version 
> but we always get an Exception:
> 
> Parse Error at line 4 column 14: Document is invalid: no grammar found.
> org.xml.sax.SAXParseException: Document is invalid: no grammar found.
>      at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)

> 
>      at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:177)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) 
> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

> 
>      at org.apache.commons.digester.Digester.parse(Digester.java:1745)
>      at 
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:197)

> 
>      at 
> org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(FacesConfigurator.java:641)

> 
>      at 
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:215) 
> 
>      at 
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:82)

> 
>      at 
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:65)

> 
>      at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523) 
> 
>      at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
>      at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
>      at 
> com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
>      at 
> com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304) 
> 
>      at 
> com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341) 
> 
>      at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) 
> 
>      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 
> 
>      at java.lang.Thread.run(Thread.java:595)
> Parse Error at line 4 column 14: Document root element "faces-config", 
> must match DOCTYPE root "null".
> org.xml.sax.SAXParseException: Document root element "faces-config", 
> must match DOCTYPE root "null".
>      at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)

> 
>      at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:183)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)

> 
>      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) 
> 
>      at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

> 
>      at org.apache.commons.digester.Digester.parse(Digester.java:1745)
>      at 
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:197)

> 
>      at 
> org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(FacesConfigurator.java:641)

> 
>      at 
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:215) 
> 
>      at 
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:82)

> 
>      at 
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:65)

> 
>      at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523) 
> 
>      at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
>      at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
>      at 
> com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
>      at 
> com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304) 
> 
>      at 
> com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341) 
> 
>      at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) 
> 
>      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 
> 
>      at java.lang.Thread.run(Thread.java:595)
> 
> 
> 
> 
> How get we solve this issue????
> 
> Here the first lines of our faces config.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <!DOCTYPE faces-config PUBLIC
> "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
> "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
> 
> <faces-config>
> </faces-config>
> 
> Any suggestions?? Please help it urgent
> 
> 
> 


Mime
View raw message