2 Replies Latest reply on Nov 18, 2013 4:54 AM by wdfink

    jboss 6.1 eap and progresql driver (jar) ->JBAS010404

    zatopek

      Hello

       

      I want to connect my EAP 6.1 to postgresql.

      I am using 1.7 jdk

      i have download the postgresql driver from http://jdbc.postgresql.org/download/postgresql-9.3-1100.jdbc41.jar

      i have make one module

      i have add to jboss using cli:

      [standalone@localhost:9999 /] /subsystem=datasources/jdbc-driver=postgresqlNOXA:add(driver-name=postgresqlNOXA, driver-class-name=org.postgresql.Driver, driver-module-name=org.postgresql)

      {"outcome" => "success"}

       

      but whe i start my jboss appears this error.

      16:41:06,454 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010404: Implementaci¾n de controladro que no cumple con los requerimientos de JDBC class org.postgresql.Driver (versi¾n 9.3)

       

      If i try to make one datasource using the consle appears thsi error:

      16:41:06,940 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP  6.1.1.GA (AS 7.2.1.Final-redhat-10) inici¾ en 2358ms - Inici¾ 129 de 184 servic ios (53 servicios son pasivos o por demanda)

      16:41:49,036 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (HttpManagementService-threads - 1) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection

              at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLo calManagedConnection(LocalManagedConnectionFactory.java:285) [ironjacamar-jdbc-1.0.19.Final-redhat-2.jar:1.0.19.Final-redhat-2]

      ...................

              at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

      Caused by: javax.resource.ResourceException: Wrong driver class [class org.postgresql.Driver] for this connection URL [jdbc:postgres://192.168.1.55:5432/mydb]

              at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:259) [ironjacamar-jdbc-1.0.19.Final-redhat-2.jar:1.0.19.Final-redhat-2]

              ... 34 more

       

      Can you help me?

       

      thanks