OpenLiberty / liberty-arquillian

Arquillian Liberty Managed and Remote containers
Apache License 2.0
10 stars 29 forks source link

Detect names of servlets from web.xml #74

Closed kathrynkodama closed 3 years ago

kathrynkodama commented 3 years ago

With the j2eemangement feature no longer being supported for Jakarta EE 9, we need a new way to detect the names of servlets when multiple applications are deployed and we must inject multiple servlets.

See these tests for example uses: https://github.com/OpenLiberty/liberty-arquillian/tree/master/liberty-managed/src/test/java/io/openliberty/arquillian/managed/needsmanagementmbeans

We should get the web.xml file from the WebArchive and use that to determine the servlet names.

kathrynkodama commented 3 years ago

We should also be scanning web-fragment.xml files, see https://github.com/arquillian/arquillian-core/blob/2f91caf4b992470d4e73ab6f5941aaaf5f0e4a8b/protocols/servlet-jakarta/src/main/resources/org/jboss/arquillian/protocol/servlet5/v_5/web-fragment.xml