jquantlib in maven project

Asked by mikhail on 2015-11-19

I have installed JQuantLib in my local maven repository and added dependency in my maven project

        <dependency>
            <groupId>org.jquantlib</groupId>
            <artifactId>jquantlib</artifactId>
            <version>0.2.4</version>
        </dependency>

And now when I run my project under Tomcat, I have error "ExtensionValidator[/sot][jquantlib-0.2.4.jar]: Required extension [slf4j-api] not found"

Can somebody help me to solve this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
JQuantLib Edit question
Assignee:
No assignee Edit question
Solved by:
Richard Gomes
Solved:
2015-12-12
Last query:
2015-12-12
Last reply:
2015-11-23
Richard Gomes (frgomes) said : #1

The only external dependency JQuantLib has is slf4j-api. Please add such
.jar
file on your Tomcat installation.

Thanks

Richard Gomes

Sent using CloudMagic Email
[https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.4.10&pv=5.1&source=email_footer_2]
On Thu, Nov 19, 2015 at 12:51 pm, mikhail <
<email address hidden> [<email address hidden>]
> wrote:
New question #274808 on JQuantLib:
https://answers.launchpad.net/jquantlib/+question/274808

I have installed JQuantLib in my local maven repository and added
dependency in
my maven project

<dependency>
<groupId>org.jquantlib</groupId>
<artifactId>jquantlib</artifactId>
<version>0.2.4</version>
</dependency>

And now when I run my project under Tomcat, I have error
"ExtensionValidator[/sot][jquantlib-0.2.4.jar]: Required extension
[slf4j-api]
not found"

Can somebody help me to solve this problem?

--
You received this question notification because you are an answer
contact for JQuantLib.

mikhail (mikhail-nefedov) said : #2

I'm using tomcat maven plugin. Where should I put the slf4j-api.jar file so that it is available for JQuantLib?

Best Richard Gomes (frgomes) said : #3

If I'm not mistaken, you can drop jar files in a global library folder, but you can also include jars as part of dependencies in your application. If you drop slf4f-api.jar directly in a global library folder, you have to specify in your pom.xml that this dependency is <scope>provided</scope>. See: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

You will find more details in Tomcat documentation.

mikhail (mikhail-nefedov) said : #4

Thanks Richard Gomes, that solved my question.