Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 46e63ef

Browse files
author
Petr Bouda
committed
JERSEY-613: Fix unmapped exceptions from Jersey in WLS
Change-Id: I4708e50dd93c2ab2b13283824bad33bd5639916b
1 parent a6ff4d5 commit 46e63ef

File tree

1 file changed

+10
-1
lines changed
  • tests/integration/ejb-test-webapp/src/main/java/org/glassfish/jersey/tests/ejb/resources

1 file changed

+10
-1
lines changed

tests/integration/ejb-test-webapp/src/main/java/org/glassfish/jersey/tests/ejb/resources/MyApplication.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
*/
4040
package org.glassfish.jersey.tests.ejb.resources;
4141

42+
import java.util.HashMap;
4243
import java.util.HashSet;
44+
import java.util.Map;
4345
import java.util.Set;
4446
import java.util.concurrent.atomic.AtomicInteger;
4547

@@ -58,6 +60,13 @@ public class MyApplication extends Application {
5860

5961
private AtomicInteger counter;
6062

63+
@Override
64+
public Map<String, Object> getProperties() {
65+
return new HashMap<String, Object>() {{
66+
put("jersey.config.server.response.setStatusOverSendError", true);
67+
}};
68+
}
69+
6170
@Override
6271
public Set<Class<?>> getClasses() {
6372

@@ -78,4 +87,4 @@ public Set<Class<?>> getClasses() {
7887
public int incrementAndGetCount() {
7988
return counter.incrementAndGet();
8089
}
81-
}
90+
}

0 commit comments

Comments
 (0)