you try to parse a XML File, but there is a null value, you may put out more
trace of exception

2011/2/10 abhishek jain <abhishek.netj...@gmail.com>

> hi
> here is another error:
> cannt understand what it is:
>
> Digester.getParser: java.lang.UnsupportedOperationException: This
> parser does not support specification "null" version "null"     at
> javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)
>  at
> org.apache.commons.digester.Digester.getFactory(Digester.java:534)      at
> org.apache.commons.digester.Digester.getParser(Digester.java:786)       at
> org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)   at
> org.apache.commons.digester.Digester.parse(Digester.java:1887)  at
> org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
> at
> org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
>       at
> org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
>  at
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
>    at
> org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
>    at
> org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
>      at
> org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
>     at
> org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
>  at
> org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
>       at
> org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68)
>       at
> org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
>    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.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)   at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
>     at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
>   at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)  at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)      at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>      at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)   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)
>
>
>
> Please help
>
> thanks
> abhishek
>
> On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake <kusha...@gmail.com
> >wrote:
>
> > It seems there is another xml parser is conflicting. Check the lib folder
> > of
> > the tomcat, there should be another Xml parser there. Remove it, and
> > replace
> > the parser in your application.
> > On 8 Feb 2011 17:38, "abhishek jain" <abhishek.netj...@gmail.com> wrote:
> > > hi,
> > > I noticed if i remove the xerces-2.6.2.jar file and restart the server,
> > it
> > > works fine, dont know why,
> > > Pl. advice the reason and will it have any affect on Hibernate thing in
> > the
> > > project,
> > >
> > > thanks
> > > abhishek
> > >
> > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain <
> > abhishek.netj...@gmail.com
> > >wrote:
> > >
> > >> hi,
> > >> thanks for replying,
> > >> in myeclipse,if i do contrl + click on the struts-default.xml in
> > >> struts.xml, it opens the file,
> > >> hence it seems this is also not the error,
> > >> thanks
> > >> abhishek
> > >>
> > >>
> > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI <mhm.s...@gmail.com>
> > wrote:
> > >>
> > >>> You should have problem in your classpath, it looks for a file named
> > >>> struts-default in your classpath, so in your classes directory can
> you
> > >>> check
> > >>> if you have this file or not, another alternative, check your
> > >>> classpathconfiguration in your eclipse .
> > >>>
> > >>>
> > >>>
> > >>> 2011/2/8 abhishek jain <abhishek.netj...@gmail.com>
> > >>>
> > >>> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI <mhm.s...@gmail.com>
> > >>> wrote:
> > >>> >
> > >>> > > Hi,
> > >>> > >
> > >>> > > May be you dont have well configure your application context.
> > >>> > >
> > >>> > > check your web.xml file
> > >>> > >
> > >>> > > best wishes !!
> > >>> > >
> > >>> > > 2011/2/8 abhishek jain <abhishek.netj...@gmail.com>
> > >>> > >
> > >>> > > > Hi,
> > >>> > > > I am running myeclipse(8.x) on windows. trying my hands on
> struts
> > >>> 2.x
> > >>> > > > application, when i try to run the application i see hte
> > following
> > >>> > error
> > >>> > > in
> > >>> > > > console.
> > >>> > > >
> > >>> > > > Dont know why , pl help. due to this i cannt run the
> application
> > and
> > >>> > 404
> > >>> > > > error appears. I think i narrowed this to possibly remove the
> > xerces
> > >>> > > > library, but i am not sure than will other things break.
> > >>> > > > pl. help.
> > >>> > > > I am using tomcat 6.
> > >>> > > >
> > >>> > > >
> > >>> > > > Unable to load configuration. - [unknown location]
> > >>> > > > at
> > >>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
> > >>> > > > at
> > >>> > > >
> > >>> >
> > >>>
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
> > >>> > > > at
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
> > >>> > > > at
> > >>> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
> > >>> > > > at
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > >>> > > > at java.lang.Thread.run(Thread.java:619)
> > >>> > > > Caused by: Unable to load configuration. - [unknown location]
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
> > >>> > > > at
> > >>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
> > >>> > > > ... 15 more
> > >>> > > > Caused by: Caught exception while loading file
> struts-default.xml
> > -
> > >>> > > > [unknown
> > >>> > > > location]
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> > >>> > > > ... 17 more
> > >>> > > > Caused by: java.lang.ClassCastException:
> > >>> > > > org.apache.xerces.parsers.XML11Configuration cannot be cast to
> > >>> > > > org.apache.xerces.xni.parser.XMLParserConfiguration
> > >>> > > > at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> > >>> > > > at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> > >>> > > > at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown
> > >>> Source)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> > >>> > > > Source)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
> > >>> > > > at
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
> > >>> > > > at
> > >>> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)
> > >>> > > > ... 21 more
> > >>> > > >
> > >>> > > > --
> > >>> > > > Thanks and kind Regards,
> > >>> > > > Abhishek jain
> > >>> > > >
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > > --
> > >>> > >
> > >>> > >
> > >>> > > Cordialement
> > >>> > >
> > >>> > > Mohamed
> > >>> > >
> > >>> >
> > >>> > i think my web.xml is fine,
> > >>> > here i what i have in there
> > >>> > <?xml version="1.0" encoding="UTF-8"?>
> > >>> > <web-app version="2.5"
> > >>> > 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-app_2_5.xsd";>
> > >>> > <welcome-file-list>
> > >>> > <welcome-file>index.jsp</welcome-file>
> > >>> > </welcome-file-list>
> > >>> > <filter>
> > >>> > <filter-name>struts2</filter-name>
> > >>> >
> > >>> >
> > >>>
> >
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> > >>> > </filter>
> > >>> > <filter-mapping>
> > >>> > <filter-name>struts2</filter-name>
> > >>> > <url-pattern>/*</url-pattern>
> > >>> > </filter-mapping>
> > >>> > <session-config>
> > >>> > <session-timeout>
> > >>> > 30
> > >>> > </session-timeout>
> > >>> > </session-config>
> > >>> > </web-app>
> > >>> > --
> > >>> > abhi
> > >>> >
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>>
> > >>>
> > >>> Cordialement
> > >>>
> > >>> Mohamed
> > >>>
> > >>
> > >>
> >
>



-- 


Cordialement

Mohamed

Reply via email to