Giter Club home page Giter Club logo

Comments (6)

jairojunior avatar jairojunior commented on July 28, 2024

You're right, I just did the change, but be aware that with JDBC4+ you have SPI for java.sql.Driver, hence you do not need to explicitly specify driver-class-name.

Thank you for your time.

from puppet-wildfly.

bjwschaap avatar bjwschaap commented on July 28, 2024

Unfortunately it fails:

Error: Could not set 'present' on ensure: Failed with: WFLYJCA0034: Unable to instantiate driver class "undef". See log (WARN) for more details for {"address":[{"subsystem":"datasources"},{"jdbc-driver":"postgresqlXa"}],"operation":"add","driver-name":"postgresqlXa","driver-module-name":"org.postgresql","driver-class-name":"undef","driver-xa-datasource-class-name":"org.postgresql.xa.PGXADataSource"} at 16:/modules/wildfly/manifests/util/resource.pp
Error: Could not set 'present' on ensure: Failed with: WFLYJCA0034: Unable to instantiate driver class "undef". See log (WARN) for more details for {"address":[{"subsystem":"datasources"},{"jdbc-driver":"postgresqlXa"}],"operation":"add","driver-name":"postgresqlXa","driver-module-name":"org.postgresql","driver-class-name":"undef","driver-xa-datasource-class-name":"org.postgresql.xa.PGXADataSource"} at 16:/modules/wildfly/manifests/util/resource.pp
Wrapped exception:
Failed with: WFLYJCA0034: Unable to instantiate driver class "undef". See log (WARN) for more details for {"address":[{"subsystem":"datasources"},{"jdbc-driver":"postgresqlXa"}],"operation":"add","driver-name":"postgresqlXa","driver-module-name":"org.postgresql","driver-class-name":"undef","driver-xa-datasource-class-name":"org.postgresql.xa.PGXADataSource"}
Error: /Stage[main]/Wildfly_wrapper::Config/Wildfly::Datasources::Driver[postgresql-9.2-XA]/Wildfly::Util::Resource[/subsystem=datasources/jdbc-driver=postgresqlXa]/Wildfly_resource[/subsystem=datasources/jdbc-driver=postgresqlXa]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed with: WFLYJCA0034: Unable to instantiate driver class "undef". See log (WARN) for more details for {"address":[{"subsystem":"datasources"},{"jdbc-driver":"postgresqlXa"}],"operation":"add","driver-name":"postgresqlXa","driver-module-name":"org.postgresql","driver-class-name":"undef","driver-xa-datasource-class-name":"org.postgresql.xa.PGXADataSource"} at 16:/modules/wildfly/manifests/util/resource.pp
Error: Could not set 'present' on ensure: Failed with: WFLYJCA0034: Unable to instantiate driver class "undef". See log (WARN) for more details for {"address":[{"subsystem":"datasources"},{"jdbc-driver":"db2"}],"operation":"add","driver-name":"db2","driver-module-name":"com.ibm.db2","driver-class-name":"undef","driver-xa-datasource-class-name":"com.ibm.db2.jcc.DB2Driver"} at 16:/modules/wildfly/manifests/util/resource.pp

Parameters that are undef shouldn't be passed to wildfly::util::resource, or filtered in the provider.

from puppet-wildfly.

bjwschaap avatar bjwschaap commented on July 28, 2024

Created pull request #84 for a suggested fix.

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 28, 2024

wildfly_resource should be inspecting resource state hash for undef values. I'll deeply investigate later what's happening.

In the first versions I was using stdlib delete_undef_valuesfunction on wildfly::util::resource::state, but not sure why it was dropped.

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 28, 2024

Just fixed in PR #85. Not sure why, but for a long time my I left delete_undef_values($content) out of this repository.

from puppet-wildfly.

bjwschaap avatar bjwschaap commented on July 28, 2024

Hi @jairojunior thanx, problem is fixed now.

from puppet-wildfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.