This feature enables support for HTTP Servlets written to the Java Servlet 3.0 specification. The servlets can be packaged in Java EE specified WAR or EAR files. If servlet security is required, an appSecurity feature should also be configured; in the absence of a security feature any security constraints for the application will be ignored.

Enabling this feature

To enable the Java Servlets 3.0 feature, add the following element declaration into your server.xml file, inside the featureManager element:

<feature>servlet-3.0</feature>

Feature configuration elements

Standard API packages provided by this feature

  • javax.servlet

  • javax.servlet.annotation

  • javax.servlet.descriptor

  • javax.servlet.http

  • javax.servlet.resources

Liberty API packages provided by this feature

  • 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

Features that enable this feature

Developing a feature that depends on this feature

If you 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-3.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.webcontainer.extension

  • com.ibm.ws.webcontainer.spiadapter.collaborator

  • 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