0

I'm trying to use wildfly 12 with jersey and jwt

I have my pom

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.9.4</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.9.4</version>
    </dependency>
    <dependency>
        <groupId>io.jsonwebtoken</groupId>
        <artifactId>jjwt</artifactId>
        <version>0.9.0</version>
    </dependency>

When I put my .war in deployments directory that works; but it doesn't work on my eclipse server.

mkingston
  • 2,678
  • 16
  • 26
Felipe Flores
  • 170
  • 11
  • [how-to-import-a-jar-in-eclipse](https://stackoverflow.com/questions/3280353/how-to-import-a-jar-in-eclipse) – xingbin May 08 '18 at 11:54
  • I'm using maven – Felipe Flores May 08 '18 at 11:59
  • Can you please explain better. If I understood well if you deploy manually on a wildfly instance it works, but when you start the app within the server defined in Eclipse it is failing. Is that correct? – cisk May 08 '18 at 12:42
  • that's right cisk – Felipe Flores May 08 '18 at 12:48
  • @FelipeFlores Try double click on server definition in eclipse and in the server configuration window there should be a section called "server location", select the 2nd option (the one saying "Use server installation - takes control of server installation" or something similar). In this way you will deploy your app physically to the server deployment directory, because by default eclipse creates a copy of the server inside your workspace/.metadata/etc.... and it will use that. Hope this helps. – cisk May 08 '18 at 13:10
  • @cisk I'm not finding these options – Felipe Flores May 08 '18 at 20:50
  • @FelipeFlores http://oi64.tinypic.com/35jkn53.jpg – cisk May 10 '18 at 07:00

1 Answers1

0

add the dependency as it states:

   <dependency>
        <groupId>io.jsonwebtoken</groupId>
        <artifactId>jjwt</artifactId>
        <version>0.9.1</version>
    </dependency>
    <dependency>
Yasin Bekar
  • 127
  • 1
  • 4