myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.
Date Thu, 02 Aug 2007 22:38:47 GMT
Indeed, but I don't see this issue when running with the JSF RI
in Glassfish.  So my hunch is that we have a MyFaces 1.2 issue,
or perhaps a difference in XML parsers between Tomcat and
Glassfish?

The Trinidad faces-config.xml is correct AFAIK.

-- Adam


On 8/2/07, Jan Linders <jan.linders@home.nl> wrote:
> Hi Adam,
>
> you are right. The schemalocation is correct.
> however it seems that (when run in Tomcat6) a validation against a schema is
> started.
> I can see tomcat connecting to java.sun.com.
>
> more details :
>
> Parse Error at line 2 column 238: 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.createSAXParseEx
> ception(ErrorHandlerWrapper.java:195)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
> erWrapper.java:131)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> rReporter.java:384)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> rReporter.java:318)
>         at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpeci
> fied(XMLDTDValidator.java:1621)
>         at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
> nt(XMLDTDValidator.java:1900)
>         at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
> DTDValidator.java:764)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
> tartElement(XMLDocumentFragmentScannerImpl.java:1357)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
> .scanRootElementHook(XMLDocumentScannerImpl.java:1289)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
> next(XMLDocumentScannerImpl.java:912)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
> entScannerImpl.java:645)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> ocument(XMLDocumentFragmentScannerImpl.java:508)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:807)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:737)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
> 7)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
> AXParser.java:1205)
>         at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
> XParserImpl.java:522)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1745)
>         at
> org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
> :157)
>         at
> org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
> Listener2.java:1282)
>         at
> org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
> cycleListener2.java:290)
>         at
> org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
> stener.java:138)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> 3827)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Parse Error at line 2 column 238: 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.createSAXParseEx
> ception(ErrorHandlerWrapper.java:195)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
> erWrapper.java:131)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> rReporter.java:384)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> rReporter.java:318)
>         at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
> nt(XMLDTDValidator.java:1910)
>         at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
> DTDValidator.java:764)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
> tartElement(XMLDocumentFragmentScannerImpl.java:1357)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
> .scanRootElementHook(XMLDocumentScannerImpl.java:1289)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
> next(XMLDocumentScannerImpl.java:912)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
> entScannerImpl.java:645)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> ocument(XMLDocumentFragmentScannerImpl.java:508)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:807)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> figuration.java:737)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
> 7)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
> AXParser.java:1205)
>         at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
> XParserImpl.java:522)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1745)
>         at
> org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
> :157)
>         at
> org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
> Listener2.java:1282)
>         at
> org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
> cycleListener2.java:290)
>         at
> org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
> stener.java:138)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> 3827)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> it's definitely the faces-config.xml of the trinidad-impl-1.2.1.jar that
> causes this error message.
>
> --Jan
>
> -----Original Message-----
> From: Adam Winer [mailto:awiner@gmail.com]
> Sent: Thursday, August 02, 2007 11:55 PM
> To: MyFaces Discussion
> Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
> grammar found.
>
>
> On 8/2/07, Jan Linders <jan.linders@home.nl> wrote:
> > I have the same issue with the DOCROOT error.
> > Allthough the JSF Kickstart sample App is working.
> >
> > I think it has (in my case) somehow todo with the faces-config.xml file
> > within the trinidad-impl-1.2.1.jar file.
> > In META-INF there is a faces-config.xml.
> >
> > First part of the file :
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" version="1.2">
> >
> > I think there is an error in the schemaLocation URL : '
> > http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '
> >
> > I tried fixing this by changing it too URL : '
> > http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '
>
> No, the schemaLocation is correct.  See:
> http://www.w3.org/TR/xmlschema-0/#schemaLocation
> ... for a description of the schemaLocation attribute.  It's
> not just 1 URL, it's N *pairs* of URLs associating namespaces
> with schemas.
>
> -- Adam
>
>
> >
> > but the same error is coming allthough now at a different position. Still
> > line 2 but column 204 instead of 238.
> >
> > So the error seems to be in this file, however don't know enough of this
> to
> > pinpoint the root cause.
> >
> > Perhaps Matthias can shed some light :-)
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com]On Behalf Of
> > Matthias Wessendorf
> > Sent: Thursday, August 02, 2007 6:28 PM
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
> > grammar found.
> >
> >
> > java.lang.NoClassDefFoundError:
> > org/apache/myfaces/trinidad/context/ExternalContextDecorator
> >
> > do you have the trinidad-API in place ?
> >
> >
> >
> > On 8/2/07, Jessica Johnson <jessica@internetmi.com> wrote:
> > > The manifest in the my-faces jar file is giving the version as
> > > Implementation-Version: 1.1.1 (20051230).
> > >
> > > I'm not behind a firewall, I'm attempting to deploy locally.  The only
> > > changes I have made are the addition of the 2 trinidad jars to Tomcat
> > > 5.5/common/lib/.  I originally made the changes to web.xml and
> > > faces-config.xml that are given here:
> > > http://myfaces.apache.org/trinidad/installation.html within
> > > the application that I am trying to deploy   But I removed those changes
> > in
> > > an attempt to isolate the problem. So it seems that Tomcat is unable to
> > > start whenever those jars are in the lib directory.
> > >
> > > Below is the message log Tomcat is giving on startup.
> > >
> > > Anyone have an idea whats going on here?
> > >
> > >  jessica
> > >
> > > Using CATALINA_BASE:   C:\Program Files\Apache Software
> Foundation\Tomcat
> > > 5.5
> > > Using CATALINA_HOME:   C:\Program Files\Apache Software
> Foundation\Tomcat
> > > 5.5
> > > Using CATALINA_TMPDIR: C:\Program Files\Apache Software
> Foundation\Tomcat
> > > 5.5\temp
> > > Using JAVA_HOME:       C:\Program Files\Java\jrockit-jdk1.5.0_06
> > > Listening for transport dt_shmem at address: tomcat_shared_memory_id
> > > Aug 2, 2007 10:09:13 AM
> > > org.apache.catalina.core.AprLifecycleListener
> > > lifecycleEvent
> > > INFO: The Apache Tomcat Native library which allows optimal performance
> in
> > > production environments was not found on the java.library.path:
> C:\Program
> > >
> >
> Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
> > WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> > > Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL
> > > Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
> > > Server\90\DTS\Binn\;C:\Sun\AppServer\bin
> > > Aug 2, 2007 10:09:14 AM
> > > org.apache.coyote.http11.Http11BaseProtocol init
> > > INFO: Initializing Coyote HTTP/1.1 on http-80
> > > Aug 2, 2007 10:09:14 AM
> > > org.apache.catalina.startup.Catalina load
> > > INFO: Initialization processed in 1766 ms
> > > Aug 2, 2007 10:09:14 AM
> > > org.apache.catalina.core.StandardService start
> > > INFO: Starting service Catalina
> > > Aug 2, 2007 10:09:14 AM
> > > org.apache.catalina.core.StandardEngine start
> > > INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> > > Aug 2, 2007 10:09:14 AM
> > > org.apache.catalina.core.StandardHost start
> > > INFO: XML validation disabled
> > > Aug 2, 2007 10:09:16 AM
> > > org.apache.myfaces.config.FacesConfigurator
> > > feedStandardConfig
> > > INFO: Reading standard config
> > > org/apache/myfaces/resource/standard- faces-config.xml
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.myfaces.config.FacesConfigurator
> > > feedClassloaderConfigurations
> > > INFO: Reading config jar:file:/C:/Program Files/Apache Software
> > > Foundation/Tomcat 5.5/common/lib/trinidad-
> > > impl-1.2.1.jar!/META-INF/faces-config.xml
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.commons.digester.Digester error
> > >
> > > SEVERE: Parse Error at line 2 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.createSAXParseEx
> > ception(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(XMLErro
> > rReporter.java:382)
> > >         at
> > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > > (XMLErrorReporter.java:316)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
> > ement(XMLNSDocumentScannerImpl.java:177)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDi
> > spatcher.scanRootElementHook
> > > (XMLNSDocumentScannerImpl.java:779)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> > entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> > ocument
> > > (XMLDocumentFragmentScannerImpl.java:368)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> > figuration.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:14
> > 8)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
> > AXParser.java
> > > :1242)
> > >         at
> > > org.apache.commons.digester.Digester.parse(Digester.java:1548)
> > >         at
> > >
> >
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.
> > getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java
> > > :183)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(Fa
> > cesConfigurator.java:233)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
> > :118)
> > >          at
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
> > vletContextListener.java:63)
> > >         at
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
> > tartupServletContextListener.java
> > > :46)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> > 3729)
> > >         at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> > >         at
> > > org.apache.catalina.core.ContainerBase.addChildInternal
> > > (ContainerBase.java:759)
> > >         at
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > >         at
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > >         at
> > > org.apache.catalina.startup.HostConfig.deployDescriptor
> > > (HostConfig.java:608)
> > >         at
> > >
> >
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535
> > )
> > >         at
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.commons.digester.Digester error
> > >
> > > SEVERE: Parse Error at line 2 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.createSAXParseEx
> > ception(ErrorHandlerWrapper.java:236)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
> > erWrapper.java
> > > :172)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> > rReporter.java:382)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
> > rReporter.java:316)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
> > ement(XMLNSDocumentScannerImpl.java:183)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDi
> > spatcher.scanRootElementHook
> > > (XMLNSDocumentScannerImpl.java:779)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> > entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> > ocument
> > > (XMLDocumentFragmentScannerImpl.java:368)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> > figuration.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:14
> > 8)
> > >         at
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
> > AXParser.java
> > > :1242)
> > >         at
> > > org.apache.commons.digester.Digester.parse(Digester.java:1548)
> > >         at
> > >
> >
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.
> > getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java
> > > :183)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(Fa
> > cesConfigurator.java:233)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
> > :118)
> > >          at
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
> > vletContextListener.java:63)
> > >         at
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
> > tartupServletContextListener.java
> > > :46)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> > 3729)
> > >         at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> > >         at
> > > org.apache.catalina.core.ContainerBase.addChildInternal
> > > (ContainerBase.java:759)
> > >         at
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > >         at
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > >         at
> > > org.apache.catalina.startup.HostConfig.deployDescriptor
> > > (HostConfig.java:608)
> > >         at
> > >
> >
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535
> > )
> > >         at
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.myfaces.config.FacesConfigurator
> > > feedClassloaderConfigurations
> > > INFO: Reading config
> > >
> >
> jar:file:/C:/cygwin/home/Jessica/work/imi/reporting/working/reporting/trunk/
> > build/web/WEB-INF/lib/myfaces-all.jar!/META-INF/faces-config.xml
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.myfaces.config.FacesConfigurator
> > > feedContextSpecifiedConfig
> > > INFO: Reading config /WEB-INF/faces-config.xml
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.myfaces.config.FacesConfigurator
> > > feedWebAppConfig
> > > INFO: Reading config /WEB-INF/faces-config.xml
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.catalina.core.StandardContext listenerStart
> > > SEVERE: Exception sending context initialized event to listener instance
> > of
> > > class
> > > org.apache.myfaces.webapp.StartupServletContextListener
> > > java.lang.NoClassDefFoundError:
> > > org/apache/myfaces/trinidadinternal/application/NavigationHandlerImpl
> > > : javax/faces/application/NavigationHandler
> > >         at
> > >
> >
> java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.Prote
> > ctionDomain
> > > ;)Ljava.lang.Class;(Unknown Source)
> > >         at
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > >         at
> > > java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >         at java.net.URLClassLoader.access$100
> > > (URLClassLoader.java:56)
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >         at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at java.lang.ClassLoader.loadClass(Ljava.lang.String
> > > ;Z)Ljava.lang.Class;(Unknown Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Unknow
> > n
> > > Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(Unknown
> > > Source)
> > >         at
> > >
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> > a:1339)
> > >         at
> > >
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> > a:1198)
> > >         at java.lang.ClassLoader.loadClassFromNative
> > > (Ljava.lang.String;)Ljava.lang.Class;(Unknown Source)
> > >         at
> > >
> >
> java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lan
> > g.Class;(Unknown
> > > Source)
> > >         at org.apache.myfaces.util.ClassUtils.classForName
> > > (ClassUtils.java:131)
> > >         at
> > >
> org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfig
> > urator.java:506)
> > >          at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfig
> > urator.java:433)
> > >         at
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
> > :130)
> > >         at
> > > org.apache.myfaces.webapp.StartupServletContextListener.initFaces
> > > (StartupServletContextListener.java:63)
> > >         at
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
> > tartupServletContextListener.java:46)
> > >         at
> > > org.apache.catalina.core.StandardContext.listenerStart
> > > (StandardContext.java:3729)
> > >         at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> > >         at
> > >
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> > 59)
> > >         at
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > >         at
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > >         at
> > > org.apache.catalina.startup.HostConfig.deployDescriptor
> > > (HostConfig.java:608)
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.catalina.core.StandardContext start
> > > SEVERE: Error listenerStart
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.catalina.core.StandardContext start
> > > SEVERE: Context [/reporting] startup failed due to previous errors
> > > Aug 2, 2007 10:09:17 AM
> > > org.apache.catalina.core.StandardContext listenerStop
> > > SEVERE: Exception sending context destroyed event to listener instance
> of
> > > class
> > > org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl
> > > java.lang.NoClassDefFoundError:
> > > org/apache/myfaces/trinidad/context/ExternalContextDecorator
> > > : javax/faces/context/ExternalContext
> > >         at
> > >
> >
> java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.Prote
> > ctionDomain
> > > ;)Ljava.lang.Class;(Unknown Source)
> > >         at
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > >         at
> > > java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >         at java.net.URLClassLoader.access$100
> > > (URLClassLoader.java:56)
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >         at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at java.lang.ClassLoader.loadClass(Ljava.lang.String
> > > ;Z)Ljava.lang.Class;(Unknown Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(Unknown
> > > Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClassFromNative(Ljava.lang.String;)Ljava.lang.Clas
> > s;(Unknown
> > > Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.Prote
> > ctionDomain;)Ljava.lang.Class;(Unknown
> > > Source)
> > >         at
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > >         at
> > > java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >         at
> > > java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >          at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Unknow
> > n
> > > Source)
> > >         at java.lang.ClassLoader.loadClass(Ljava.lang.String
> > > ;)Ljava.lang.Class;(Unknown Source)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClassFromNative(Ljava.lang.String;)Ljava.lang.Clas
> > s;(Unknown
> > > Source)
> > >         at
> > >
> >
> org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl.contextDestr
> > oyed
> > > (TrinidadListenerImpl.java:39)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3
> > 770)
> > >         at
> > > org.apache.catalina.core.StandardContext.stop(StandardContext.java:4339)
> > >         at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
> > > - Unable to find config file.  Creating new servlet engine config file:
> > > /WEB-INF/server-config.wsdd
> > > Aug 2, 2007 10:09:20 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Aug 2, 2007 10:09:20 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > Aug 2, 2007 10:09:21 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Aug 2, 2007 10:09:21 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > Aug 2, 2007 10:09:21 AM
> > > org.apache.coyote.http11.Http11BaseProtocol start
> > > INFO: Starting Coyote HTTP/1.1 on http-80
> > > Aug 2, 2007 10:09:21 AM org.apache.jk.common.ChannelSocket
> > > init
> > > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > > Aug 2, 2007 10:09:21 AM org.apache.jk.server.JkMain start
> > > INFO: Jk running ID=0 time=0/79  config=null
> > > Aug 2, 2007 10:09:21 AM
> > > org.apache.catalina.storeconfig.StoreLoader load
> > > INFO: Find registry server-registry.xml at classpath resource
> > > Aug 2, 2007 10:09:21 AM
> > > org.apache.catalina.startup.Catalina start
> > > INFO: Server startup in 7828 ms
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: Manager: init: Associated with Deployer
> > > 'Catalina:type=Deployer,host=localhost'
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: Manager: init: Global resources are available
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: Manager: list: Listing contexts for virtual host 'localhost'
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: Manager: list: Listing contexts for virtual host 'localhost'
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.ApplicationContext log
> > > INFO: Manager: undeploy: Undeploying web application at '/reporting'
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.core.StandardContext stop
> > > INFO: Container
> > >
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/reporting]
> > > has not been started
> > > Aug 2, 2007 10:09:22 AM
> > > org.apache.catalina.startup.HostConfig checkResources
> > > INFO: Undeploying context [/reporting]
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 8/1/07, Adam Winer <awiner@gmail.com> wrote:
> > > > What version of MyFaces Core are you using?  Also,
> > > > are you behind a firewall?
> > > >
> > > > -- Adam
> > > >
> > > >
> > > > On 8/1/07, Jessica Johnson <jessica@internetmi.com> wrote:
> > > > > Hi all,
> > > > >
> > > > > I am trying to install Trinidad for the first time and am running
> into
> > > > > problems whenever I try to add trinidad-impl-*.jar.  I have tried
> > > > > both  trinidad-1.0.1 and  trinidad-1.2.1 with the same
> > results...Tomcat
> > > > > gives me an error when attempting to deploy my application.
> > > > >
> > > > > Does anyone have an idea of how I might fix this?  I'd appreciate
> > anyone
> > > who
> > > > > can point me in the right direction here - a google search didn't
> turn
> > > up
> > > > > anything useful.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > jessica
> > > > >
> > > > >  INFO: Reading standard config
> > > > > org/apache/myfaces/resource/standard-faces-config.xml
> > > > > Aug 1, 2007 5:55:38 PM
> > > > > org.apache.myfaces.config.FacesConfigurator
> > > > > feedClassloaderConfigurations
> > > > > INFO: Reading config jar:file:/C:/Program Files/Apache Software
> > > > > Foundation/Tomcat
> > > > >
> > > 5.5/common/lib/trinidad-impl-1.2.1.jar!/META-INF/faces-config.xml
> > > > > Aug 1, 2007 5:55:38 PM
> > > org.apache.commons.digester.Digester
> > > > > error
> > > > > SEVERE: Parse Error at line 2 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.createSAXParseEx
> > ception
> > > (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.scanStartEl
> > ement
> > > (XMLNSDocumentScannerImpl.java:177)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDi
> > spatcher.scanRootElementHook
> > > > > (XMLNSDocumentScannerImpl.java:779)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> > entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> > ocument
> > > > > (XMLDocumentFragmentScannerImpl.java:368)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
> > figuration.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:14
> > 8)
> > > > >         at
> > > > >
> > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> > > (AbstractSAXParser.java
> > > > > :1242)
> > > > >         at
> > > > >
> > > org.apache.commons.digester.Digester.parse(Digester.java:1548)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.
> > getFacesConfig
> > > (DigesterFacesConfigUnmarshallerImpl.java
> > > > > :183)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(Fa
> > cesConfigurator.java:233)
> > > > >         at
> > > > > org.apache.myfaces.config.FacesConfigurator.configure
> > > (FacesConfigurator.java:118)
> > > > >          at
> > > > >
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
> > vletContextListener.java:63)
> > > > >         at
> > > > >
> > >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized
> > > (StartupServletContextListener.java
> > > > > :46)
> > > > >         at
> > > > >
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> > 3729)
> > > > >         at
> > > > > org.apache.catalina.core.StandardContext.start
> > > (StandardContext.java:4187)
> > > > >         at
> > > > > org.apache.catalina.core.ContainerBase.addChildInternal
> > > > > (ContainerBase.java:759)
> > > > >         at
> > > > >
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
> > > :739)
> > > > >         at
> > > > >
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > > > >         at
> > > > > org.apache.catalina.startup.HostConfig.deployDescriptor
> > > > > (HostConfig.java:608)
> > > > >         at
> > > > >
> > >
> >
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535
> > )
> > > > >         at
> > > > >
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
> > > > > Aug 1, 2007 5:55:38 PM
> > > org.apache.commons.digester.Digester
> > > > > error
> > > > > SEVERE: Parse Error at line 2 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.createSAXParseEx
> > ception(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(XMLErro
> > rReporter.java:382)
> > > > >         at
> > > > >
> > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > > (XMLErrorReporter.java:316)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
> > ement(XMLNSDocumentScannerImpl.java:183)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDi
> > spatcher.scanRootElementHook
> > > > > (XMLNSDocumentScannerImpl.java:779)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
> > entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
> > > > >         at
> > > > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
> > ocument
> > > > > (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(AbstractS
> > AXParser.java
> > > > > :1242)
> > > > >         at
> > > > > org.apache.commons.digester.Digester.parse
> > > (Digester.java:1548)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.
> > getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java
> > > > > :183)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(Fa
> > cesConfigurator.java:233)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
> > :118)
> > > > >          at
> > > > >
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
> > vletContextListener.java:63)
> > > > >         at
> > > > >
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
> > tartupServletContextListener.java
> > > > > :46)
> > > > >         at
> > > > >
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
> > 3729)
> > > > >         at
> > > > >
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> > > > >         at
> > > > > org.apache.catalina.core.ContainerBase.addChildInternal
> > > > > (ContainerBase.java:759)
> > > > >         at
> > > > >
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > > > >         at
> > > > >
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > > > >         at
> > > > > org.apache.catalina.startup.HostConfig.deployDescriptor
> > > > > (HostConfig.java:608)
> > > > >         at
> > > > >
> > > org.apache.catalina.startup.HostConfig.deployDescriptors
> > > (HostConfig.java:535)
> > > > >         at
> > > > >
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007
> > 4:53 PM
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007
> > 4:53 PM
> >
> >
> >
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007
> 4:53 PM
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007
> 4:53 PM
>
>
>

Mime
View raw message