Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F9BD17F58 for ; Wed, 14 Jan 2015 12:08:34 +0000 (UTC) Received: (qmail 31160 invoked by uid 500); 14 Jan 2015 12:08:35 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 31113 invoked by uid 500); 14 Jan 2015 12:08:35 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 31100 invoked by uid 99); 14 Jan 2015 12:08:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2015 12:08:35 +0000 Date: Wed, 14 Jan 2015 12:08:35 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CONNECTORS-1142) initialize.sh fails because connector-common-lib dependencies not in classpath MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright resolved CONNECTORS-1142. ------------------------------------- Resolution: Cannot Reproduce Looks like operator error? Worked fine for me with the shipped properties.xml file. > initialize.sh fails because connector-common-lib dependencies not in classpath > ------------------------------------------------------------------------------ > > Key: CONNECTORS-1142 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1142 > Project: ManifoldCF > Issue Type: Bug > Affects Versions: ManifoldCF 2.0 > Reporter: Michael Wilken > Priority: Minor > > Running initialize.sh from apache-manifoldcf-2.0/multiprocess-file-example in a fresh ManifoldCF 2.0 install fails because of missing libraries on the classpath: > {code} > [wilkenm@localhost:multiprocess-file-example ]$ ./initialize.sh > Configuration file successfully read > Successfully unregistered all domains > Successfully unregistered all output connectors > Successfully unregistered all transformation connectors > Successfully unregistered all mapping connectors > Successfully unregistered all authority connectors > Successfully unregistered all repository connectors > Successfully registered output connector 'org.apache.manifoldcf.agents.output.solr.SolrConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.opensearchserver.OpenSearchServerConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.nullconnector.NullConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.hdfs.HDFSOutputConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.gts.GTSConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.filesystem.FileOutputConnector' > Successfully registered output connector 'org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnector' > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/manifoldcf/connectorcommon/jsongen/JSONReader > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:270) > at org.apache.manifoldcf.core.system.ManifoldCFResourceLoader.findClass(ManifoldCFResourceLoader.java:149) > at org.apache.manifoldcf.core.system.ManifoldCF.findClass(ManifoldCF.java:1522) > at org.apache.manifoldcf.core.interfaces.ConnectorFactory.getThisConnectorRaw(ConnectorFactory.java:144) > at org.apache.manifoldcf.core.interfaces.ConnectorFactory.getThisConnectorNoCheck(ConnectorFactory.java:118) > at org.apache.manifoldcf.core.interfaces.ConnectorFactory.installThis(ConnectorFactory.java:48) > at org.apache.manifoldcf.agents.interfaces.OutputConnectorFactory.install(OutputConnectorFactory.java:70) > at org.apache.manifoldcf.agents.outputconnmgr.OutputConnectorManager.registerConnector(OutputConnectorManager.java:180) > at org.apache.manifoldcf.crawler.system.ManifoldCF.registerConnectors(ManifoldCF.java:492) > at org.apache.manifoldcf.crawler.system.ManifoldCF.reregisterAllConnectors(ManifoldCF.java:151) > at org.apache.manifoldcf.crawler.InitializeAndRegister.doExecute(InitializeAndRegister.java:43) > at org.apache.manifoldcf.crawler.InitializeAndRegister.main(InitializeAndRegister.java:60) > Caused by: java.lang.ClassNotFoundException: org.apache.manifoldcf.connectorcommon.jsongen.JSONReader > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 13 more > {code} > This is easily fixed by adding the following needed libs to the options.env.unix file: > ../connector-common-lib/mcf-connector-common.jar > ../connector-common-lib/tika-core-1.6.jar > ../connector-common-lib/axis-1.4.jar > options.env.unix (and .win) are create during the build process, and I'm not familiar enough with Ant to provide a patch. -- This message was sent by Atlassian JIRA (v6.3.4#6332)