Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10656

ClassNotFoundException: io.agroal.pool.DataSource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 10.0.0.Final
    • Dependency, Server
    • None

      Remote cache using JDBC cache store running on infinispan server is throwing ClassNotFoundException: io.agroal.pool.DataSource

      The following code was used:

      GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
            ConfigurationBuilder builder = new ConfigurationBuilder();
            Configuration build = builder.persistence()
                  .addStore(JdbcStringBasedStoreConfigurationBuilder.class)
                  .table()
                  .dropOnExit(true)
                  .createOnStart(true)
                  .tableNamePrefix("ISPN_STRING_TABLE")
                  .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
                  .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
                  .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
                  .connectionPool()
                  .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
                  .username("sa")
                  .password("sa")
                  .driverClass("org.h2.Driver")
                  .build();
      
            RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
            cache.put("k1", "v1");
            System.out.println(cache.get("k1"));
      

      server/runtime/target/infinispan-server-10.0.0-SNAPSHOT/lib only have agroal-api.jar, agroal-pool.jar is missing

              gustavolira Gustavo Lira Silva
              gustavolira Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: