1 Reply Latest reply on Mar 11, 2004 9:16 AM by laurent.marquez

    JBOSS 3.2.3 / Postgresql 7.4 - No ClassLoaders found for: or

    laurent.marquez Newbie

      Hi,
      I want to use JBOSS 3.2.3 with postgresql 7.4.0 on a linux RedHat7.3,

      Configuration:
      - I removed /JBOSS_HOME/server/default/deploy/hsqldb-ds.xml
      - I removed /JBOSS_HOME/server/default/deploy/jms/hsqldb-jdbc2-service.xml

      - I added /JBOSS_HOME/server/default/deploy/postgres-ds.xml
      - I added /JBOSS_HOME/server/default/deploy/jms/postgres-jdbc2-service.xml
      - I added /JBOSS_HOME/server/default/deploy/pg74jdbc3.jar

      - I modified /JBOSS_HOME/server/default/deploy/login-config.xml
      ------------------------------------------------------------------------------
      <application-policy name = "PostgresDbRealm">

      <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
      <module-option name = "principal">toto</module-option>
      <module-option name = "userName">toto</module-option>
      <module-option name = "password">toto</module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=PostgresDS</module-option>
      </login-module>

      </application-policy>
      ------------------------------------------------------------------------------
      - I modified /JBOSS_HOME/server/default/conf/standardjaws.xml
      ------------------------------------------------------------------------------
      <!-- datasource>java:/DefaultDS
      <type-mapping>Hypersonic SQL</type-mapping -->
      java:/PostgresDS
      <type-mapping>PostgreSQL 7.2</type-mapping>
      ------------------------------------------------------------------------------
      - I modified /JBOSS_HOME/server/default/conf/standardjbosscmp-jdbc.xml
      ------------------------------------------------------------------------------
      <!-- datasource>java:/DefaultDS
      <datasource-mapping>Hypersonic SQL</datasource-mapping -->
      java:/PostgresDS
      <datasource-mapping>PostgreSQL 7.2</datasource-mapping>


      My ERROR:
      -------------------------------------------------------------------------
      JBOSS 3.2.3 doesn't found org
      /JBOSS_HOME/server/default/deploy/pg74jdbc3.jar

      2004-03-11 14:55:16,108 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added PostgresDbRealm, org.jboss.security.plugins.SecurityDomainContext@1a73d30 to map
      2004-03-11 14:55:16,117 INFO [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.PostgresDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=PostgresDS to JNDI name 'java:/PostgresDS'
      2004-03-11 14:55:16,117 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Started jboss.jca:service=LocalTxCM,name=PostgresDS
      2004-03-11 14:55:16,303 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection:
      org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: org.postgresql.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.postgresql.Driver))
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:160)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:477)
      ---------------------------------------------------------------------

      Best regards.
      Laurent.