• Products
    • Overview
    • LucidWorks Search Platform
      • Features and Benefits
      • Technical Overview
      • Only with LucidWorks
      • LucidWorks and Solr
      • White Papers
      • LucidWorks Enterprise
      • LucidWorks Cloud
      • LucidWorks Big Data
    • Apache Releases
      • Apache Solr 4.0-dev
      • Apache Lucene
  • Support & Services
    • Overview
    • Support
    • Lucid University
    • ExpertLink Advisory
    • Consulting
    • Partners
    • Subscriptions
  • Why Lucid?
    • Why Lucid?
    • Technology
    • Who uses Lucene/Solr?
      • What customers are saying
    • Case Studies
    • Whitepapers
    • Demos
    • Webinars
  • Blog
  • DevZone
    • DevZone Overview
    • Forums (LWE)
    • Videos & Podcasts
      • How To's
      • Screencasts
      • Podcasts
      • Conference Videos
    • Technical Articles
      • Whitepapers
    • Reference Materials
      • Documentation
      • Solr Reference Guide
      • Solr & LucidWorks Matrix
      • Tutorials
    • Events
      • Lucene Revolution
      • Tradeshows & Conferences
      • Meet Ups
    • Code & Test
  • Downloads
  • About Us
    • Management
    • Board of Directors
    • Apache Lucene/Solr Committers
    • Careers
    • News
      • Media Coverage
      • Press Releases
    • Contact Us
Log in
Home . DevZone . Forum

Lucid Imagination Forum » LucidWorks Enterprise

java.lang.NoClassDefFoundError: org/apache/lucene/index/codecs/CodecProvider

(4 posts) (2 voices)
  • Started 3 months ago by Jawahar.Retnaswamy
  • Latest reply from Lance

Tags:

  • CodeProvider
  • LUCENE CORE
  1. Jawahar.Retnaswamy
    Member

    Hi,

    I built Lucene-core-40-SNAPSHOT.jar from source code in "https://github.com/lucidimagination/lucene-solr/tree/2.0". I used eclipse to build this jar file.

    When I start LUCID server using start.bat, I get the following error message in the core log file.

    --------------------------------------------------------------------------------------------------------------

    2012-01-30 18:26:47,719 INFO xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/LucidImagination/LucidWorksEnterprise/app/webapps/lwe-core/connector-manager/WEB-INF/lib/connector-sharepoint.jar!/config/connectorType.xml]
    2012-01-30 18:26:47,922 WARN mortbay.log - failed org.mortbay.jetty.webapp.WebAppContext@61eaf91f{/,C:\LucidImagination\LucidWorksEnterprise\app/webapps/lwe-core/lwe-core}: java.lang.NoClassDefFoundError: org/apache/lucene/index/codecs/CodecProvider
    2012-01-30 18:26:47,922 WARN mortbay.log - failed ContextHandlerCollection@6d392fa5: java.lang.NoClassDefFoundError: org/apache/lucene/index/codecs/CodecProvider
    2012-01-30 18:26:47,922 INFO mortbay.log - Opened C:\LucidImagination\LucidWorksEnterprise\data\logs\request.2012_01_30.log
    2012-01-30 18:26:47,922 WARN mortbay.log - failed HandlerCollection@2863866c: java.lang.NoClassDefFoundError: org/apache/lucene/index/codecs/CodecProvider
    2012-01-30 18:26:47,922 ERROR mortbay.log - Error starting handlers
    java.lang.NoClassDefFoundError: org/apache/lucene/index/codecs/CodecProvider
     at com.lucid.servlet.LWEGuiceServletConfig.<clinit>(LWEGuiceServletConfig.java:16)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at java.lang.Class.newInstance0(Unknown Source)
     at java.lang.Class.newInstance(Unknown Source)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
     at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1279)
     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
     at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
     at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
     at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
     at org.mortbay.jetty.Server.doStart(Server.java:224)
     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
     at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.mortbay.start.Main.invokeMain(Main.java:194)
     at org.mortbay.start.Main.start(Main.java:534)
     at org.mortbay.start.Main.start(Main.java:441)
     at org.mortbay.start.Main.main(Main.java:119)
    Caused by: java.lang.ClassNotFoundException: org.apache.lucene.index.codecs.CodecProvider
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
     at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
     ... 34 more
    2012-01-30 18:26:47,922 INFO mortbay.log - Started SocketConnector@0.0.0.0:8888
    --------------------------------------------------------------------------------------------------------------

    Has anyone these this error ?

     

     

    Posted 3 months ago #
  2. Lance
    Professional Services Engineer

    The Solr/Lucene build is several steps and uses a lot of external project jars. To build Lucene/Solr, go to the top-level directory and run this:

    ant clean test

    This will do a full build and run all of the unit tests. This takes under 20 minutes on my laptop.  After this, go to solr/examples and run:

    java -jar start.jar

    You now have a running Solr instance!

    We only provide support for using the Solr jars packaged with LWE. Our Solr/Lucene codeline is provided for reference. The Solr wiki has a lot of information, and we have an online Solr Reference Gude.

    http://wiki.apache.org/solr/FrontPage

    http://lucidworks.lucidimagination.com/display/solr/Apache+Solr+Reference+Guide

    Posted 3 months ago #
  3. Jawahar.Retnaswamy
    Member

    When I run "ant clean test" on the source I got from "https://github.com/lucidimagination/lucene-solr/tree/2.0", I get errors on the clean operation saying "Directory does not exisit : <myroot>\solr\examples\webapps".

    Is there any document on how to build lucene and solr ?

    I am trying to plug in some simple customizations in to lucene and wanted to test it out using LUCID.

    Is there any documentation on how to go about doing this ?

    Thanks for your help.

    Jawahar.

    Posted 3 months ago #
  4. Lance
    Professional Services Engineer

    Hi-

    To develop for LWE, use the jar files in the LWE distribution. They are in this folder:

    <LWE_HOME>/app/webapps/lwe-core/lwe-core/WEB-INF/lib/

    At present there is no documentation for how to create and deploy a plugin for LWE.

     

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Contact Us
  • About Lucid Imagination
  • Help & Support
  • Training
  • Website Feedback
  • Privacy Policy
  • Legal Terms of Use
  • Copyrights and Disclaimers
  • Sitemap
  • Admin

Apache Solr, Solr, Apache Lucene, Lucene and their logos are trademarks of the Apache Software Foundation.

© 2012 Lucid Imagination. All Right reserved.