Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1632

Cannot deploy distributable application when is defined jdbc-store for web session

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Alpha3
    • 8.0.0.Alpha2
    • Clustering
    • None
    • Workaround Exists
    • Hide

      Workaround is to add following to /org/infinispan/main/module.xml:

      <module name="org.infinispan.cachestore.jdbc"/>

      Show
      Workaround is to add following to /org/infinispan/main/module.xml: <module name="org.infinispan.cachestore.jdbc"/>

      Using following infinispan subsystem configuration is causing CNF org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore

      <cache-container name="web" aliases="standard-session-cache" default-cache="local-web" module="org.jboss.as.clustering.web.infinispan">
      <local-cache name="local-web" batching="true">
      <string-keyed-jdbc-store datasource="java:jboss/datasources/ExampleDS" passivation="false" preload="true" purge="false">
      <property name="databaseType">H2</property>
      <string-keyed-table prefix="stringbased">
      <id-column name="id" type="VARCHAR"/>
      <data-column name="datum" type="BINARY"/>
      <timestamp-column name="version" type="BIGINT"/>
      </string-keyed-table>
      </string-keyed-jdbc-store>
      </local-cache>
      </cache-container>

      14:32:29,021 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 15) MSC000001: Failed to start service jboss.infinispan.web.default-host/jdbcStore: org.jboss.msc.service.StartException in service jboss.infinispan.web.default-host/jdbcStore: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object of type CacheLoaderManagerImpl
      	at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
      	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
      	at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
      Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object of type CacheLoaderManagerImpl
      	at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:207)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:889)
      	at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:658)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:647)
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:550)
      	at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:221)
      	at org.infinispan.CacheImpl.start(CacheImpl.java:691)
      	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:686)
      	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:559)
      	at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:109)
      	at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:100)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
      	at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82)
      	... 4 more
      Caused by: org.infinispan.CacheException: Unable to start cache loaders
      	at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:163)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_21]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]
      	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]
      	at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
      	... 18 more
      Caused by: org.infinispan.CacheConfigurationException: Unable to instantiate class org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore
      	at org.infinispan.util.Util.loadClass(Util.java:104)
      	at org.infinispan.util.Util.getInstance(Util.java:225)
      	at org.infinispan.loaders.CacheLoaderManagerImpl.createCacheLoader(CacheLoaderManagerImpl.java:347)
      	at org.infinispan.loaders.CacheLoaderManagerImpl.createCacheLoader(CacheLoaderManagerImpl.java:337)
      	at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:149)
      	... 23 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [rt.jar:1.7.0_21]
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [rt.jar:1.7.0_21]
      	at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_21]
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [rt.jar:1.7.0_21]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [rt.jar:1.7.0_21]
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [rt.jar:1.7.0_21]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [rt.jar:1.7.0_21]
      	at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_21]
      	at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_21]
      	at org.infinispan.util.Util.loadClassStrict(Util.java:141)
      	at org.infinispan.util.Util.loadClass(Util.java:102)
      	... 27 more
      

              pferraro@redhat.com Paul Ferraro
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: