Code Monkey home page Code Monkey logo

Comments (8)

6d77 avatar 6d77 commented on July 24, 2024 1

The release package of 0.10.0 has two versions of javax.servlet.api in the classpath:

  • javax.servlet-api-3.1.0.jar
  • servlet-api-2.5.jar

Both are also mentioned in the classpath in the directory-app startup script (just a snippet):

... :$APP_HOME/lib/servlet-api-2.5.jar:$APP_HOME/lib/javax.servlet-api-3.1.0.jar: ...

This causes the outdated classes from 2.5 to be loaded instead of the actually needed classed from 3.1.0

Just removing the servlet-api-2.5.jar from the lib directory and the classpath solves this issue.

from thingweb-directory.

vcharpenay avatar vcharpenay commented on July 24, 2024

This is probably due to incompatibilities with Java 9+. Two solutions:

  • run the TDir with Java 8
  • build the project and run the .war in directory-servlet/build/libs in a J2EE container (I tested with the nightly release of Jetty, 9.4.12-v20180830)

from thingweb-directory.

mmccool avatar mmccool commented on July 24, 2024

I was running Java 8, version 1.8, as instructed. Are you using OpenJDK or Oracle Java?

from thingweb-directory.

hasbel avatar hasbel commented on July 24, 2024

I am also having this issue while running Java 8. Only downgrading to TDir v9 seems to solve the problem.

from thingweb-directory.

MatthiasLaeufer avatar MatthiasLaeufer commented on July 24, 2024

I'm also struggeling with this version. Java-Version: Oracle jre1.8.0_191

from thingweb-directory.

karaleina avatar karaleina commented on July 24, 2024

I have the same problem. I use Java 1.8 as is specified in README.md.

from thingweb-directory.

karaleina avatar karaleina commented on July 24, 2024

@6d77, I used your help, but it looks like 10 version still behaves differently than version 9 and is still incompatible with Swagger documentation.

I created Postman client based on api.json file and tried to list available things (expecting empty list) or register a new thing. First gave me 405 ERROR and second gave me 500 ERROR. Exactly the same requests work with version 9.

from thingweb-directory.

6d77 avatar 6d77 commented on July 24, 2024

Please create separate issues for that. This issue is just about the isAsyncStarted() problem.

And yes, you're right, it is also my experience that the Swagger API and the implementation are not in line.

from thingweb-directory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.