Use a specific servlet url to not clash with REST applications.
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/6bf08ca8 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/6bf08ca8 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/6bf08ca8 Branch: refs/heads/master Commit: 6bf08ca8344f265ca2e4739bc188a60822ecd877 Parents: d0ad819 Author: Roberto Cortez <radcor...@yahoo.com> Authored: Wed Dec 19 23:25:29 2018 +0000 Committer: Roberto Cortez <radcor...@yahoo.com> Committed: Thu Dec 20 11:00:03 2018 +0000 ---------------------------------------------------------------------- .../arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java | 4 ++-- .../apache/openejb/arquillian/tests/realm/SimpleEndpoint.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/6bf08ca8/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java ---------------------------------------------------------------------- diff --git a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java index 8a53e00..5de5e36 100644 --- a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java +++ b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiLazyRealmTOMEE1490Test.java @@ -53,11 +53,11 @@ public class CdiLazyRealmTOMEE1490Test { @Test public void success() throws IOException { - assertEquals("ok", WebClient.create(webapp.toExternalForm(), "user", "pwd", null).get(String.class)); + assertEquals("ok", WebClient.create(webapp.toExternalForm() + "/simple", "user", "pwd", null).get(String.class)); } @Test(expected = Exception.class) public void failure() throws IOException { - assertEquals("ok", WebClient.create(webapp.toExternalForm(), "user", "wrong", null).get(String.class)); + assertEquals("ok", WebClient.create(webapp.toExternalForm() + "/simple", "user", "wrong", null).get(String.class)); } } http://git-wip-us.apache.org/repos/asf/tomee/blob/6bf08ca8/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/SimpleEndpoint.java ---------------------------------------------------------------------- diff --git a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/SimpleEndpoint.java b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/SimpleEndpoint.java index 1157436..39c10dc 100644 --- a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/SimpleEndpoint.java +++ b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/SimpleEndpoint.java @@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; -@WebServlet("/*") +@WebServlet("/simple") public class SimpleEndpoint extends HttpServlet { @Override protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {