Skip to content

Beginner questions, java.lang.NoClassDefFoundError: javax/servlet/ServletRequest #15

@k0105

Description

@k0105

Hi,

I'm trying to get started with OAQA. My goal for now is a project that can answer basic questions as a stepping stone for more involved work (general knowledge would be preferred). Hence, I tried to compile HelloQA following the instructions (downloaded Gutenberg, extracted files, opened project in Eclipse 4.5.1, ran test.launch), but it throws java.lang.NoClassDefFoundErrors. I have been able to solve some by adding <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.13</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3</version> </dependency> to pom.xml

But I now get Phase: 2|retrieval-strategist> Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

Since I'm completely inexperienced with this pipeline: What can I do now? Did you make any assumptions? Right now I have set up neither UIMA, Indri, CSE nor any other OAQA projects. Was I supposed to?

Thanks in advance.

Best wishes,
Joe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions