Skip to content

Commit

Permalink
Fix jersey dependencies for integs
Browse files Browse the repository at this point in the history
Now that the dev war includes all of the deps (instead of just pointing
to them on the classpath), we have to exclude jersey-server to prevent
"JBAS011232: Only one JAX-RS Application Class allowed." exceptions on
deployment. The exclusions get us closer to being able to run the sse
tests in-container, but RESTEasy still isn't quite happy, throwing
"java.lang.IllegalArgumentException: Unable to find a public constructor
for provider class org.glassfish.jersey.media.sse.OutboundEventWriter",
so the sse tests are still disabled in-container.
  • Loading branch information
tobias committed Nov 3, 2015
1 parent bb381a8 commit e3d5dcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration-tests/project.clj
Expand Up @@ -34,7 +34,10 @@
[org.clojars.tcrawley/gniazdo _]
[ring/ring-devel _]
[compojure _]
[org.glassfish.jersey.media/jersey-media-sse _]]
[org.glassfish.jersey.media/jersey-media-sse _
:exclusions [org.glassfish.jersey.core/jersey-server]]
[org.glassfish.jersey.core/jersey-client _]
[javax.ws.rs/javax.ws.rs-api "2.0.1"]]
:resource-paths ["../web/dev-resources"]
:test-paths ["../web/test-integration"]
:main integs.web}
Expand Down
1 change: 1 addition & 0 deletions project.clj
Expand Up @@ -88,6 +88,7 @@
org.clojure/java.jdbc "0.3.6"
h2 "1.3.176"
jersey-media-sse "2.15"
jersey-client "2.15"
potemkin "0.4.1"
clj-http "1.0.1"
environ "1.0.0"
Expand Down

0 comments on commit e3d5dcb

Please sign in to comment.