[ 
https://issues.apache.org/jira/browse/WICKET-6989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved WICKET-6989.
-----------------------------------------------
    Resolution: Not A Problem

This is by design - 
[https://github.com/apache/wicket/blob/wicket-9.x/pom.xml#L253]

The Servlet API should be provided by the Servlet container (e.g. Tomcat).

Your application tries to use Wicket without any servlet container, so you 
should make sure the servlet-api.jar is in the classpath.

> Missing Servlet API Dependency in Wicket Core
> ---------------------------------------------
>
>                 Key: WICKET-6989
>                 URL: https://issues.apache.org/jira/browse/WICKET-6989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 9.10.0
>         Environment: Wicket 9.10.0
> Oracle JDK 11.0.15
>            Reporter: Daniel Meier
>            Priority: Major
>
> When you try to instantiate a new {{WicketTester}} Instance by calling the 
> {{WicketTester#WicketTester(WebApplication)}} Constructor using JDK 9+, you 
> get a `NoClassDefFoundError` since the `javax.servlet.ServletContext` Class 
> is not found.
> I uploaded an [Gradle example project to 
> Github|https://github.com/dnl50/wicket-missing-servlet-api] to demonstrate 
> the issue.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to