Comments (8)
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.
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.
I was running Java 8, version 1.8, as instructed. Are you using OpenJDK or Oracle Java?
from thingweb-directory.
I am also having this issue while running Java 8. Only downgrading to TDir v9 seems to solve the problem.
from thingweb-directory.
I'm also struggeling with this version. Java-Version: Oracle jre1.8.0_191
from thingweb-directory.
I have the same problem. I use Java 1.8 as is specified in README.md.
from thingweb-directory.
@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.
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)
- TD lifetime refresh with empty payload returns a 500 error code
- URI Decode for Displayed Links
- Prepare code for Eclipse contrib HOT 4
- pb creating the TemperatureSensorTD using the sample jsonld file
- Provide option to disable CoAP and/or HTTP interface
- groovy.lang.MissingPropertyException: No such property: @id for class: java.lang.String HOT 1
- Add DoS filter to registration servlets
- Edit index page to include Eclipse legal matter HOT 1
- FrameFilterTest fails HOT 5
- StackOverflowError in case of name conflict
- Retrieving a deleted TD causes either a NullPointerException or an empty payload to be returned
- JSON TD with custom context is not transformed properly
- Uploading a valid TD -> Error 500: could not parse JSON-LD
- After deleting a TD I cannot upload a new TD with the same id HOT 2
- Listing TDs gives 405 ERROR - version 10 HOT 2
- Registration of a TD gives 500 ERROR - version 10 HOT 2
- Proposed feature: return list of TDs instead of full TD HOT 2
- Proposed feature: add all fields from TD HOT 2
- Starting the batch file directory-app.bat give error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thingweb-directory.