Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2589

running HonestPolitician from a Maven created eclipse project for drools-examples-drl => NoClassDefFoundError: XStream

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.2.0.M2
    • FUTURE
    • None
    • None
    • Hide

      With sources from Subversion:
      cd ~/src/drools-trunk/drools-examples/drools-examples-drl/
      mvn eclipse:eclipse

      In eclipse, make a project from the directory drools-examples-drl
      In eclipse, run class HonestPoliticianExample

      Show
      With sources from Subversion: cd ~/src/drools-trunk/drools-examples/drools-examples-drl/ mvn eclipse:eclipse In eclipse, make a project from the directory drools-examples-drl In eclipse, run class HonestPoliticianExample
    • Interactive Demo/Tutorial
    • Workaround Exists
    • Hide

      I removed the scope test in drools-compiler/pom.xml , re-installed drools-compiler locally, re-made the eclipse project with Maven, and it works !!

      Show
      I removed the scope test in drools-compiler/pom.xml , re-installed drools-compiler locally, re-made the eclipse project with Maven, and it works !!

    Description

      I made an eclipse project using Maven from drools-trunk/drools-examples/drools-examples-drl , and when running the class HonestPoliticianExample,
      I have a NoClassDefFoundError: com/thoughtworks/xstream/XStream

      The stack is :

      Exception in thread "main" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStream
      at org.drools.audit.KnowledgeRuntimeLoggerProviderImpl.newFileLogger(KnowledgeRuntimeLoggerProviderImpl.java:10)
      at org.drools.logger.KnowledgeRuntimeLoggerFactory.newFileLogger(KnowledgeRuntimeLoggerFactory.java:37)
      at org.drools.examples.HonestPoliticianExample.main(HonestPoliticianExample.java:35)

      The dependency com.thoughtworks.xstream is in drools-compiler/pom.xml , but only at the scope test !?!

      Attachments

        Activity

          People

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            jmvanel_jira Jean-Marc Vanel (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty