Announcement Announcement Module
Collapse
No announcement yet.
The element type "META" must be terminated by the matching end-tag "</META>" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • The element type "META" must be terminated by the matching end-tag "</META>"

    Hi,
    I am building a sample web application using Spring framework using spring framework (core and spring MVC), iBatis and Postgres 8.2 DB. everything was working fine until i decided to introduce caching to the applicaiton using ehcache.
    I am getting this error message when I start tomcat server from eclipse Europa. The code is not using <META> tag!!!

    Anybody has an idea as why it's happening?


    2007-12-02 22:10:55,234 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>
    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/ecacheTestApp-cache.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
    Caused by:
    org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
    at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(Unknown Source)
    at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.fatalError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner .reportFatalError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(Un known Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.Sc hemaParsingConfig.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.Sc hemaParsingConfig.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.Sc hemaDOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.travers ers.XSDHandler.getSchemaDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.travers ers.XSDHandler.parseSchema(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maLoader.loadSchema(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.findSchemaGrammar(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.handleStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.emptyElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(Un known Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(Unknown Source)
    at org.springframework.beans.factory.xml.DefaultDocum entLoader.loadDocument(DefaultDocumentLoader.java: 76)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:351)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:303)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:280)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:131)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:147)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:124)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:92)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:101)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:389)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:324)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:244)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:187)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 49)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4216)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)
    2007-12-02 22:10:55,250 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ecacheTestApp]] - <Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner>
    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/ecacheTestApp-cache.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".

  • #2
    Well there is at least something wrong with your xml file. Can you post that? Next time please use [ code][/code ] tags (without the spaces).

    Comment


    • #3
      caching xml files

      Martin,
      here are the xml files:
      -----------------------------------------
      1- ecacheTestApp-cache.xml
      -----------------------------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ehcache="http://www.springmodules.org/schema/ehcache"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schem...-beans-2.0.xsd
      http://www.springmodules.org/schema/ehcache
      http://www.springmodules.org/schema/...es-ehcache.xsd ">
      <ehcache:config
      configLocation="/WEB-INF/ehcache.xml" />
      <ehcache:annotations>
      <ehcache:caching id="ecacheTestAppCacheModel" cacheName="ecacheTestAppCache" />
      </ehcache:annotations>
      </beans>

      -----------------------------------------
      2- ehcache.xml
      -----------------------------------------

      <ehcache>
      <defaultCache
      maxElementsInMemory="500"
      eternal="true"
      overflowToDisk="false"
      memoryStoreEvictionPolicy="LFU" />

      <cache name="ecacheTestAppCache"
      maxElementsInMemory="500"
      eternal="true"
      overflowToDisk="false"
      memoryStoreEvictionPolicy="LFU" />
      </ehcache>
      Last edited by sattyani; Dec 4th, 2007, 11:26 AM.

      Comment


      • #4
        Which version of modules are you using? I ask because I cannot find a reference to the ehcache namespace. Have you tried without that namespace and use the regular configuration?

        Comment


        • #5
          progress

          using the good old trial and error approach I was able to identify the cause of the problem.
          If I remove the annotation tag the problem would disappear, but the results aren't cached.!!! Still a good progress to me

          <ehcache:annotations>
          <ehcache:caching id="ecacheTestAppCacheModel" cacheName="ecacheTestAppCache" />
          </ehcache:annotations>


          Now I need to know why it's happening and how to fix it. I will keep you guys posted.

          Comment


          • #6
            Spring Modules version 0.8

            Martin,
            Sorry didn't respond earlier, I am using version 0.8 with dependencies which I recently downloaded!.

            Comment


            • #7
              The element type &quot;META&quot; must be terminated by the matching end-tag &quot;&lt;/META&gt;&quot;

              Hi

              I have to integrated ehchache in my application.After i start my tomcat server ... its giving me this error.Its looks some thing wrong in my my xml.
              Could anyone let me ...how can i get ridd of this error.

              org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/ws-account-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:389)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:327)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:295)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:178)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:149)
              at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:124)
              at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:92)
              at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:97)
              at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:411)
              at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:338)
              at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
              at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
              at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
              at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
              at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
              at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1139)
              at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:966)
              at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3956)
              at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4230)
              at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
              at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
              at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
              at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
              at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
              at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
              at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
              at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)

              Comment


              • #8
                impossible to retrive the cache object from key

                Excuse me,
                i have this message error...
                -------------------------------------------
                - Searching cache configuration ('be3aCache.xml') in the entire claspath
                - Finded cache configuration at /C:/jhub/_prod/server_be3a/conf/be3aCache.xml
                - Loading the XML cache from /C:/jhub/_prod/server_be3a/conf/be3aCache.xml
                - <?xml version="1.0" encoding="UTF-8"?>
                <be3aCache>
                <caches>
                <cache id="conma.cache.obj" class="com.be3a.cache.EhCacheImpl">
                <constraint value="C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml" />
                <constraint value="ConmaCache"/>
                </cache>

                <cache id="conma.cache.dtd" class="com.be3a.cache.EhCacheImpl">
                <constraint value="C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml" />
                <constraint value="ConmaCache"/>
                </cache>

                <cache id="conma.mysql.dir.cache" class="com.be3a.cache.EhCacheImpl">
                <constraint value="C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml" />
                <constraint value="ConmaCache"/>
                </cache>

                <cache id="conma.mysql.dir.cacheKey" class="com.be3a.cache.EhCacheImpl">
                <constraint value="C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml" />
                <constraint value="ConmaCacheKey"/>
                </cache>
                </caches>
                <monitors/>
                </be3aCache>

                - Created a new CacheFactory('/C:/jhub/_prod/server_be3a/conf/be3aCache.xml'): com.be3a.cache.factory.XMLCacheFactory@f7c31d
                - Requested to load the cacheId('ConmaCache') from ('C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml')
                - Requested to load the CacheManager from ('C:/jhub/_prod/server_be3a/conf/cache/ehcache-conma.xml')
                - Warning: impossible to retrive the cache object from key('dtd_0_listing'):
                java.lang.NullPointerException
                at com.be3a.cache.EhCacheFactory.getEhCacheManager(Eh CacheFactory.java:46)
                at com.be3a.cache.EhCacheFactory.getEhCacheManager(Eh CacheFactory.java:80)
                at com.be3a.cache.EhCacheFactory.getCache(EhCacheFact ory.java:95)
                at com.be3a.cache.EhCacheImpl.getCache(EhCacheImpl.ja va:107)
                at com.be3a.cache.EhCacheImpl.get(EhCacheImpl.java:71 )
                at conma.conma5.EnhancedContentManager.retrieveDtdFro mCache(EnhancedContentManager.java:2215)
                at conma.conma5.EnhancedContentManager.createNewDtd(E nhancedContentManager.java:149)
                at test.XMLConverter.module(XMLConverter.java:71)
                at ins.inServerSkel.execModule(inServerSkel.java:376)
                at ins.ApplicationBroker.execApplModuleUnsafe(Applica tionBroker.java:245)
                at ins.ApplicationBroker.execApplModule(ApplicationBr oker.java:205)
                at ins.jhub.main(jhub.java:217)

                -------------------------------------------
                can you help me??
                thanks
                -------------------------------------------


                Originally posted by Younus View Post
                Hi

                I have to integrated ehchache in my application.After i start my tomcat server ... its giving me this error.Its looks some thing wrong in my my xml.
                Could anyone let me ...how can i get ridd of this error.

                org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/ws-account-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
                at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:389)
                at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:327)
                at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:295)
                at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
                at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:178)
                at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:149)
                at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:124)
                at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:92)
                at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:97)
                at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:411)
                at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:338)
                at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
                at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
                at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
                at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
                at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
                at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1139)
                at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:966)
                at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3956)
                at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4230)
                at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
                at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
                at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
                at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
                at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
                at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
                at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)

                Comment


                • #9
                  FYI these errors are caused by a non-existent XSD location in some Spring Modules code.

                  See http://www.jroller.com/habuma/entry/...les_xsd_errors

                  Comment


                  • #10
                    Solution !!

                    Hit on the same problem, bug got this resolved by using the spring-modules-cache.jar. I am using version 0.9 of SpringModules.

                    Looking a bit deeper . . . . .
                    spring-modules-cache.jar which
                    * contains spring.schemas which has the mapping of all the xsd
                    * contains xsd file of all the cache frameworks
                    (ehcache, gigiaspaces, jboss, jcs, oscache, tangosol)

                    HTH,
                    Kishore.

                    Comment


                    • #11
                      Thanks

                      Many thanks Kishore,
                      I tried your solution and it worked fine. Initially I used "spring-modules-0.8-all.jar" which I thought (should) contain all classes found in "spring-modules-cache.jar".
                      Anyway, I am glad it's working now

                      Comment


                      • #12
                        Similar Problem with Springmodules Lucene schema

                        I had a similar problem with Springmodules' Lucene integration...

                        I'm running Eclipse 3.4.1 (J2EE) with SpringIDE installed.
                        My project is a WebProject deployed onto a Apache Tomcat 6, running on JDK 6.
                        I have the (complete) spring.jar (v-2.5.6) + spring-modules-lucene.jar (v-0.9) in my classpath.

                        I registered the spring-lucene.xsd at my Eclipse /XML/XML Catalog as I *thought* it should look like:
                        http://forum.springframework.org/att...1&d=1232016870

                        I referenced the spring-lucene schema like:

                        Code:
                        <beans xmlns="http://www.springframework.org/schema/beans"
                        	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        	xmlns:lucene="http://www.springmodules.org/schema/lucene"
                        	xsi:schemaLocation="
                        	http://www.springframework.org/schema/beans
                        	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                        	http://www.springmodules.org/schema/lucene
                        	http://www.springmodules.org/schema/lucene/spring-lucene.xsd
                        ">
                        ...
                        </beans>
                        When I tried to start my Tomcat, I got the following error(s):

                        Code:
                        2009-01-15 11:15:20,067 (FrameworkServlet.java:290) - Context initialization failed
                        org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [conf/AuditDispatcher.xml]
                        Offending resource: ServletContext resource [/WEB-INF/SpringDispatcher-servlet.xml];
                        nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/conf/AuditDispatcher.xml] is invalid;
                        nested exception is org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
                        	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
                        	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
                        	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
                        	[...]
                        A little research lead me to this thread, which did not really help me a lot...
                        Some more research led me to spring-modules-lucene.jar!/META-INF/spring.schemas.
                        Code:
                        http://www.springmodules.org/schema/lucene/lucene-index.xsd=org/springmodules/lucene/index/config/spring-lucene.xsd
                        There I found that the springmodules schema location differs from what I *thought* it would look like...
                        Instead of http://www.springmodules.org/schema/lucene/spring-lucene.xsd (as you might expect due to the schema file name...)
                        it was http://www.springmodules.org/schema/lucene/lucene-index.xsd.

                        After I changed my XML Catalog entry...
                        http://forum.springframework.org/att...1&d=1232016870

                        ... and the schema import within my Spring configuration ...
                        Code:
                        <beans xmlns="http://www.springframework.org/schema/beans"
                        	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        	xmlns:lucene="http://www.springmodules.org/schema/lucene"
                        	xsi:schemaLocation="
                        	http://www.springframework.org/schema/beans
                        	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                        	http://www.springmodules.org/schema/lucene
                        	http://www.springmodules.org/schema/lucene/lucene-index.xsd
                        ">
                        ...
                        </beans>
                        ... everything worked like a charm.

                        A little note: perhaps you have noticed that my XML Catalog / location entry differs a little from what you generally see on the net...
                        Instead of jar:file:/... I'm referencing the schema file with jarlatform:/resource/.../some.jar!/path/to/schema.xsd.
                        This way I don't have to use an absolute, but an workspace relative file path.
                        I needed to do this, because I'm carrying my workspace around on a portable disk...

                        So far,
                        hope this helps some of you

                        Comment

                        Working...
                        X