Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1366

datasource.management.disableDefaultDrivers parameter does not disable default drivers in RHPAM 7.0.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 7.1.0.GA
    • None
    • Data Modeler
    • None
    • Hide

      1. Stopped RHPAM server;
      2. Removed all jdbc driver folders from the local maven repository;
      3. Removed deployments from the standalone.xml file;
      4. Disabled internet connection;
      5. Started RHPAM server with -Ddatasource.management.disableDefaultDrivers=true;

      The server.log file showed no errors until the server was completely started but then after 30 seconds it logged the following error:
      *************************************************************************************
      ...
      10:37:55,883 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
      10:37:55,883 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.1.2.GA (WildFly Core 3.0.13.Final-redhat-1) started in 26370ms - Started 844 of 1070 services (369 services are lazy, passive or on-demand)
      10:38:24,395 INFO [org.kie.workbench.common.screens.datasource.management.util.ServiceUtil] (pool-12-thread-1) Getting reference to managed bean: WildflyDataSourceProvider
      10:38:24,410 INFO [org.kie.workbench.common.screens.datasource.management.util.ServiceUtil] (pool-12-thread-1) Getting reference to managed bean: WildflyDriverProvider
      10:38:24,832 WARN [org.appformer.maven.integration.embedder.MavenSettings] (pool-12-thread-1) Environment variable M2_HOME is not set
      10:38:25,528 ERROR [org.appformer.maven.integration.embedder.MavenProjectLoader] (pool-12-thread-1) Unable to create MavenProject from InputStream: org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.mariadb.jdbc:mariadb-java-client:jar:1.3.4
      ...
      *************************************************************************************

      Show
      1. Stopped RHPAM server; 2. Removed all jdbc driver folders from the local maven repository; 3. Removed deployments from the standalone.xml file; 4. Disabled internet connection; 5. Started RHPAM server with -Ddatasource.management.disableDefaultDrivers=true; The server.log file showed no errors until the server was completely started but then after 30 seconds it logged the following error: ************************************************************************************* ... 10:37:55,883 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 10:37:55,883 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.1.2.GA (WildFly Core 3.0.13.Final-redhat-1) started in 26370ms - Started 844 of 1070 services (369 services are lazy, passive or on-demand) 10:38:24,395 INFO [org.kie.workbench.common.screens.datasource.management.util.ServiceUtil] (pool-12-thread-1) Getting reference to managed bean: WildflyDataSourceProvider 10:38:24,410 INFO [org.kie.workbench.common.screens.datasource.management.util.ServiceUtil] (pool-12-thread-1) Getting reference to managed bean: WildflyDriverProvider 10:38:24,832 WARN [org.appformer.maven.integration.embedder.MavenSettings] (pool-12-thread-1) Environment variable M2_HOME is not set 10:38:25,528 ERROR [org.appformer.maven.integration.embedder.MavenProjectLoader] (pool-12-thread-1) Unable to create MavenProject from InputStream: org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.mariadb.jdbc:mariadb-java-client:jar:1.3.4 ... *************************************************************************************

      When starting RHPAM 7.0.1 server with datasource.management.disableDefaultDrivers set to true, on the machine where there is no Internet the following errors are shown:

      ERROR [org.kie.workbench.common.screens.datasource.management.backend.service.DriverDefDeployerImpl] (pool-13-thread-1) Driver deployment failed, defInfo: DriverDefInfo{deploymentInfo=null} DefInfo{uuid='mariadb-1.3.4', name='MariaDB-1.3.4', path=PathImpl{uri='default://master@system/datasources/MariaDB-1.3.4.driver', fileName='MariaDB-1.3.4.driver', attrs={}}}: java.lang.RuntimeException: org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.mariadb.jdbc:mariadb-java-client:jar:1.3.4
      	at org.appformer.maven.integration.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:80)
      	at org.appformer.maven.integration.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:70)
      	at org.kie.workbench.common.screens.datasource.management.util.MavenArtifactResolver.resolve(MavenArtifactResolver.java:59)
      	at org.kie.workbench.common.screens.datasource.management.util.MavenArtifactResolver$Proxy$_$$_WeldClientProxy.resolve(Unknown Source)
      	at org.kie.workbench.common.screens.datasource.management.backend.core.wildfly.WildflyDriverProvider.deploy(WildflyDriverProvider.java:66)
      	at org.kie.workbench.common.screens.datasource.management.backend.core.wildfly.WildflyDriverProvider$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
      	at org.kie.workbench.common.screens.datasource.management.backend.core.impl.DataSourceRuntimeManagerImpl.deployDriver(DataSourceRuntimeManagerImpl.java:136)
      	at org.kie.workbench.common.screens.datasource.management.backend.core.impl.DataSourceRuntimeManagerImpl$Proxy$_$$_WeldClientProxy.deployDriver(Unknown Source)
      	at org.kie.workbench.common.screens.datasource.management.backend.service.DriverDefDeployerImpl.deployDef(DriverDefDeployerImpl.java:71)
      	at org.kie.workbench.common.screens.datasource.management.backend.service.DriverDefDeployerImpl.deployDef(DriverDefDeployerImpl.java:37)
      	at org.kie.workbench.common.screens.datasource.management.backend.service.AbstractDefDeployer.deployDefs(AbstractDefDeployer.java:84)
      	at org.kie.workbench.common.screens.datasource.management.backend.service.AbstractDefDeployer.deployGlobalDefs(AbstractDefDeployer.java:58)
      	at org.kie.workbench.common.screens.datasource.management.backend.service.DriverDefDeployerImpl$Proxy$_$$_WeldClientProxy.deployGlobalDefs(Unknown Source)
      	at org.kie.workbench.common.screens.datasource.management.backend.DataSourceManagementBootstrap.initializeDeployments(DataSourceManagementBootstrap.java:122)
      	at org.kie.workbench.common.screens.datasource.management.backend.DataSourceManagementBootstrap.lambda$getInitializeDeploymentsTask$0(DataSourceManagementBootstrap.java:173)
      ...
      Caused by: org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.mariadb.jdbc:mariadb-java-client:jar:1.3.4
      	at org.appformer.maven.integration.embedder.MavenEmbedder.readProject(MavenEmbedder.java:303)
      	at org.appformer.maven.integration.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:77)
      	... 21 more
      Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.mariadb.jdbc:mariadb-java-client:jar:1.3.4
      ...
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.mariadb.jdbc:mariadb-java-client:pom:1.3.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.mariadb.jdbc:mariadb-java-client:pom:1.3.4 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known
      ...
      Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.mariadb.jdbc:mariadb-java-client:pom:1.3.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.mariadb.jdbc:mariadb-java-client:pom:1.3.4 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known
      ...
      

      and similar for mysql:mysql-connector-java:jar:5.1.38 and org.postgresql:postgresql:jar:9.4.1207.

      It seems that parameter datasource.management.disableDefaultDrivers=true is not picked up.

              wmedvede@redhat.com Walter Medvedeo
              rhn-support-bkramer1 Biljana Kramer
              Klara Bezdekova Klara Bezdekova
              Klara Bezdekova Klara Bezdekova
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: