manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Wilken (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONNECTORS-1142) initialize.sh fails because connector-common-lib dependencies not in classpath
Date Wed, 14 Jan 2015 02:03:35 GMT
Michael Wilken created CONNECTORS-1142:
------------------------------------------

             Summary: 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)

Mime
View raw message