3 Replies Latest reply on Feb 7, 2013 11:16 AM by Tristan Tarrant

    Unexpected element 'stringKeyedJdbcStore'

    Edoardo Schepis Newbie

      Trying to move from Infinispan 5.1.6 to 5.2 I've changed the infinispan.xml (see attached) following the docs https://docs.jboss.org/author/display/ISPN/Cache+Loaders+and+Stores#CacheLoadersandStores-Sampleconfigurations

      So instead of

      <loader class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore" ....

      I use now

      <stringKeyedJdbcStore xmlns="urn:infinispan:config:jdbc:5.2" ....

       

      But the server reports the following error.

      I'm deploying infinispan rest server war in JBoss AS 7.1

       

       

       

      2013/02/02 14:52:33,886 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-4) StandardWrapper.Throwable: org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[6,4]

      Message: Unexpected element 'stringKeyedJdbcStore'

                at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:87) [infinispan-core-5.2.0.Final.jar:5.2.0.Final]

                at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:353) [infinispan-core-5.2.0.Final.jar:5.2.0.Final]

                at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:326) [infinispan-core-5.2.0.Final.jar:5.2.0.Final]

                at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:313) [infinispan-core-5.2.0.Final.jar:5.2.0.Final]

                at org.infinispan.rest.StartupListener.init(StartupListener.scala:59) [classes:]

                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.10.Final.jar:]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.10.Final.jar:]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.10.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.10.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]