Java Servlets
6.0
5.0
4.0
3.1

This feature enables support for HTTP Servlets written to the Java Servlet 3.1 specification. You 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.

Enabling this feature

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

<feature>servlet-3.1</feature>

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

Supported Java versions

  • JavaSE-1.8

  • JavaSE-11.0

  • JavaSE-17.0

  • JavaSE-21.0

  • JavaSE-22.0

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.1; type="osgi.subsystem.feature"