2 Replies Latest reply on Feb 25, 2007 7:18 AM by pis ta

    Could not create connection - deployment problem

    pis ta Newbie

      hi folks,
      playing with app generation, (seam generate-entities)
      everything is fine, until deployment, when i get this:

      01:52:39,917 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
      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:179)


      i have pgsql-jdbc.jar(original filename postgresql-8.2-504.jdbc2.jar) in project/lib dir but it does not copies jar into deploy dir of jboss

      so i have tryied to add it to project/exploded-archives/ ... this way it gets to server:

      [pista@aihome crud7]$ find /opt/jboss/server/ -name *pgsql-jdbc*
      /opt/jboss/server/default/lib/pgsql-jdbc.jar
      /opt/jboss/server/default/deploy/crud7.ear/crud7.war/WEB-INF/lib/pgsql-jdbc.jar
      /opt/jboss/server/default/deploy/crud7.ear/pgsql-jdbc.jar

      .... BUT STILL SAME ERROR

      thankx for any advice
      pista