You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "AronBuzogany (via GitHub)" <gi...@apache.org> on 2023/12/04 08:54:28 UTC
[I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
AronBuzogany opened a new issue, #2120:
URL: https://github.com/apache/jena/issues/2120
### Version
4.6.1
### Question
When switching from:
```
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>2.35.0</version>
```
to
```
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<version>3.3.1</version>
```
in my pom.xml and rebuilding my project I get the following error:
```
java.lang.IncompatibleClassChangeError: Class org.eclipse.jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext
```
in `org.apache.jena.fuseki.Fuseki.setVerbose`
I am using:
```
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
```
I tried different versions of javax.servlet, but none of them resolved the issue, nor did other Jena versions.
What does this error mean? How can I solve it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2120:
URL: https://github.com/apache/jena/issues/2120#issuecomment-1883034776
Closing question.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2120:
URL: https://github.com/apache/jena/issues/2120#issuecomment-1841615597
org.wiremock:wiremock version 3.3.1 depends on Jetty11 which uses `jakarta.servlet`.
Wiremock switched from Jetty 9 (package space `javax.servlet`) to Jetty 11 (`jakarta.servlet`) at 3.0.0.
> The changelog below represents key changes between 2.35.0 and 3.0.0.
...
> 💥 Breaking changes
...
> Upgrade from Jetty 9 to Jetty 11 (Changelog)
Apache Jena Fuseki 4.6.1 uses Jetty 10 (`javax.servlet`).
Jena is switching to `jakarta.servlet` with Jena 5.0.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "rvesse (via GitHub)" <gi...@apache.org>.
rvesse commented on issue #2120:
URL: https://github.com/apache/jena/issues/2120#issuecomment-1838474312
This looks like a dependency conflict between different versions of the Servlet API and Jetty
You will need to look at your full `mvn dependency:tree` output to see what versions are being referenced (both directly and indirectly). Remember that closest dependency wins in Maven if you have multiple paths to the same dependency.
Once you've figured out where the multiple sources of Servlet API and/or Jetty dependencies are coming from you'll need to adjust your dependencies and/or exclusions appropriately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #2120: fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext
URL: https://github.com/apache/jena/issues/2120
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "AronBuzogany (via GitHub)" <gi...@apache.org>.
AronBuzogany commented on issue #2120:
URL: https://github.com/apache/jena/issues/2120#issuecomment-1842394691
Thank you for the detailed explanation! Is there a way to make the 2 dependencies work with each other in this case?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] fuseki.Fuseki: jetty.servlet.ServletContextHandler$Context does not implement the requested interface javax.servlet.ServletContext [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2120:
URL: https://github.com/apache/jena/issues/2120#issuecomment-1842489454
The way the `javax.servlet` => `jakarta.servlet` happens means they can't be mixed.
Anything else is modify and recompile one or other of the systems.
In a non-production setting, you can try Jena 5 development (with all the consequences of running a development snapshot).
wiremock 3.0.0 was August this year.
Can you use wiremock 2 for now?
(And before you ask :smile: Jena5 is "sometime hopefully soon" - the project is all volunteer time.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org