Skip to content

Instantly share code, notes, and snippets.

@richardharrington
Created December 16, 2015 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardharrington/dcbbe57eb959af0fbbb2 to your computer and use it in GitHub Desktop.
Save richardharrington/dcbbe57eb959af0fbbb2 to your computer and use it in GitHub Desktop.
I have tried to make 2 war files (dev, not uberwars so far).
One app succeeded and the other didn't.
The one that failed, failed with the following error:
`Error: No web.xml found in the wunderboss-wildfly jar.`
There was nothing in the `:target-path` of the one that failed except the file
`<project root>/target/stale/extract-native.dependencies`, which had the following contents:
`([:dependencies [[org.projectodd.wunderboss/wunderboss-wildfly "0.10.0"]
[org.projectodd.wunderboss/wunderboss-messaging "0.10.0"]]])`
The corresponding file, `<project root>/target/stale/extract-native.dependencies`, in the repo of the
app that successfully created a war file, contained the following contents:
`([:dependencies [[org.projectodd.wunderboss/wunderboss-wildfly "0.8.1"]
[org.projectodd.wunderboss/wunderboss-caching "0.8.1"]
[org.projectodd.wunderboss/wunderboss-messaging "0.8.1"]
[org.projectodd.wunderboss/wunderboss-transactions "0.8.1"]
[org.projectodd.wunderboss/wunderboss-web "0.8.1"]]])`
Here is the relevant part of `project.clj` for the failed one:
``` ;;Messaging
[org.immutant/messaging "2.1.1"]
[org.immutant/immutant-transit "0.2.4"]
;; Web
[org.immutant/immutant "2.0.2" :exclusions [ring/ring-core ch.qos.logback/logback-classic ch.qos.org.hornetq/hornetq-native]]
```
And here is the relevant part of `project.clj` for the successful one:
``` [org.immutant/messaging "2.1.1"]
[org.immutant/immutant-transit "0.2.4"]
```
(Yes, I know the dependencies are off, and kind of redundant. Every time I tried to update the `org.immutant/immutant` dep
in the app that succeeded to a more recent version, it failed in the same way as the other one. Also every time
I tried to change it from `org.immutant/immutant` to `org.immutant/web`, which is all we really need, it fails
similarly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment