Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-452

Postgresql jar not included properly in build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • ManifoldCF 0.5
    • ManifoldCF 0.5
    • Build
    • None

    Description

      When you start the ManifoldCF single-process example, you get this:

      C:\release-0.5\apache-manifoldcf-0.5-incubating-bin\apache-manifoldcf-0.5-incuba
      ting\example>"c:\Program Files\Java\jdk1.5.0_22"\bin\java -jar start.jar
      Configuration file successfully read
      org.apache.manifoldcf.core.interfaces.ManifoldCFException: Unable to load databa
      se driver: org.postgresql.Driver
      at org.apache.manifoldcf.core.database.ConnectionFactory$PoolManager.ens
      urePoolExists(ConnectionFactory.java:212)
      at org.apache.manifoldcf.core.database.ConnectionFactory.getConnection(C
      onnectionFactory.java:55)
      at org.apache.manifoldcf.core.database.Database.executeUncachedQuery(Dat
      abase.java:721)
      at org.apache.manifoldcf.core.database.Database$QueryCacheExecutor.creat
      e(Database.java:1393)
      at org.apache.manifoldcf.core.cachemanager.CacheManager.findObjectsAndEx
      ecute(CacheManager.java:144)
      at org.apache.manifoldcf.core.database.Database.executeQuery(Database.ja
      va:185)
      at org.apache.manifoldcf.core.database.DBInterfacePostgreSQL.createUserA
      ndDatabase(DBInterfacePostgreSQL.java:524)
      at org.apache.manifoldcf.core.system.ManifoldCF.createSystemDatabase(Man
      ifoldCF.java:698)
      at org.apache.manifoldcf.crawler.system.ManifoldCF.createSystemDatabase(
      ManifoldCF.java:123)
      at org.apache.manifoldcf.jettyrunner.ManifoldCFJettyRunner.main(Manifold
      CFJettyRunner.java:224)
      Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.apache.manifoldcf.core.database.ConnectionFactory$PoolManager.ens
      urePoolExists(ConnectionFactory.java:208)
      ... 9 more

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: