Java Servlets 4.0
This feature enables support for HTTP Servlets written to the Java Servlet 4.0 specification. We can package servlets in Java EE specified WAR or EAR files. If servlet security is required, you should also configure an appSecurity feature. Without a security feature, any security constraints for the application are ignored.
Enable this feature
To enable the Java Servlets 4.0 feature, add the following element declaration into the server.xml file, inside the featureManager element:
<feature>servlet-4.0</feature>
Feature configuration elements
- application
- applicationManager
- applicationMonitor
- channelfw
- classloader
- classloading
- compression
- cors
- enterpriseApplication
- headers
- httpAccessLogging
- httpDispatcher
- httpEncoding
- httpEndpoint
- httpOptions
- httpProxyRedirect
- httpSession
- javaPermission
- library
- mimeTypes
- pluginConfiguration
- remoteIp
- samesite
- tcpOptions
- virtualHost
- webApplication
- webContainer
Standard API packages provided by this feature
- javax.annotation
- javax.annotation.security
- javax.annotation.sql
- javax.servlet
- javax.servlet.annotation
- javax.servlet.descriptor
- javax.servlet.http
- javax.servlet.resources
Liberty API packages provided by this feature
- com.ibm.websphere.endpoint
- com.ibm.websphere.servlet.container
- com.ibm.websphere.servlet.context
- com.ibm.websphere.servlet.error
- com.ibm.websphere.servlet.event
- com.ibm.websphere.servlet.session
- com.ibm.websphere.webcontainer
- com.ibm.wsspi.servlet.session
Supported Java versions
- JavaSE-1.8
- JavaSE-11.0
- JavaSE-17.0
- JavaSE-21.0
- JavaSE-24.0
Platform Versions
- javaee-8.0
- jakartaee-8.0
Features that enable this feature
- acmeCA-2.0
- adminCenter-1.0
- apiDiscovery-1.0
- appSecurity-1.0
- appSecurity-3.0
- audit-1.0
- audit-2.0
- batch-1.0
- batchManagement-1.0
- clusterMember-1.0
- collectiveController-1.0
- collectiveMember-1.0
- dynamicRouting-1.0
- grpc-1.0
- grpcClient-1.0
- healthAnalyzer-1.0
- healthManager-1.0
- httpWhiteboard-1.0
- jakartaee-8.0
- jaspic-1.1
- javaee-8.0
- jaxrs-2.1
- jaxrsClient-2.1
- jsf-2.3
- jsfContainer-2.3
- jsp-2.3
- jwtSso-1.0
- microProfile-1.2
- microProfile-1.3
- microProfile-1.4
- microProfile-2.0
- microProfile-2.1
- microProfile-2.2
- microProfile-3.0
- microProfile-3.2
- microProfile-3.3
- microProfile-4.0
- microProfile-4.1
- mpGraphQL-1.0
- mpHealth-1.0
- mpHealth-2.0
- mpHealth-2.1
- mpHealth-2.2
- mpHealth-3.0
- mpHealth-3.1
- mpJwt-1.0
- mpJwt-1.1
- mpJwt-1.2
- mpMetrics-1.0
- mpMetrics-1.1
- mpMetrics-2.0
- mpMetrics-2.2
- mpMetrics-2.3
- mpMetrics-3.0
- mpOpenAPI-1.0
- mpOpenAPI-1.1
- mpOpenAPI-2.0
- oauth-2.0
- openapi-3.0
- openapi-3.1
- openid-2.0
- openidConnectClient-1.0
- openidConnectServer-1.0
- passwordUtilities-1.0
- passwordUtilities-1.1
- restConnector-2.0
- rtcomm-1.0
- rtcommGateway-1.0
- samlWeb-2.0
- scalingController-1.0
- scalingMember-1.0
- scim-1.0
- sipServlet-1.1
- socialLogin-1.0
- spnego-1.0
- webCache-1.0
- webProfile-8.0
- websocket-1.0
- websocket-1.1
- wsAtomicTransaction-1.2
- wsSecuritySaml-1.1
Develop a feature that depends on this feature
If we are developing a feature that depends on this feature, include the following item in the Subsystem-Content header in your feature manifest file.
com.ibm.websphere.appserver.servlet-4.0; type="osgi.subsystem.feature"
SPI packages provided by this feature
- com.ibm.websphere.servlet.filter
- com.ibm.websphere.servlet.request
- com.ibm.websphere.servlet.response
- com.ibm.websphere.webcontainer.async
- com.ibm.ws.adaptable.module.structure
- com.ibm.ws.anno.classsource.specification
- com.ibm.ws.webcontainer.extension
- com.ibm.ws.webcontainer.spiadapter.collaborator
- com.ibm.wsspi.adaptable.module
- com.ibm.wsspi.adaptable.module.adapters
- com.ibm.wsspi.anno.classsource
- com.ibm.wsspi.anno.info
- com.ibm.wsspi.anno.service
- com.ibm.wsspi.anno.targets
- com.ibm.wsspi.anno.util
- com.ibm.wsspi.artifact
- com.ibm.wsspi.artifact.equinox.module
- com.ibm.wsspi.artifact.factory
- com.ibm.wsspi.artifact.factory.contributor
- com.ibm.wsspi.artifact.overlay
- com.ibm.wsspi.http
- com.ibm.wsspi.http.ee8
- com.ibm.wsspi.webcontainer
- com.ibm.wsspi.webcontainer.collaborator
- com.ibm.wsspi.webcontainer.extension
- com.ibm.wsspi.webcontainer.filter
- com.ibm.wsspi.webcontainer.metadata
- com.ibm.wsspi.webcontainer.osgi.extension
- com.ibm.wsspi.webcontainer.servlet
- com.ibm.wsspi.webcontainer.webapp