WAS 9 how to use servlet 3.0 in Websphere 9?

1.3k Views Asked by At

As per the given specs WAS9 is using JAVAEE 7 and related specs . I want to use servlet spec 3.0 due to some constraints . Is there any way to configure it . I am using plain profile (No liberty profile).

The constraints is I am having two servlets with same URL mapping which is not allowed in servlet spec-3.1.

As per give here I can use servlet spec 3.

How can I make WAS 9 to use servlet spec 3?

1

There are 1 best solutions below

0
Paul Nicolucci On

There is no way to make WAS 9 use the servlet 3.0 specification. You should change the URL pattern for the servlet mapping. If you use WebSphere Liberty then you could use either the servlet-3.0 feature or the servlet-3.1 feature in your server.xml. This would allow you on WebSphere Liberty to get the behavior you require.