You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally the war artifact attached to a release is just code from this project with no dependencies bundled so that it's a very small file. The dependencies would then be installed in Wildfly as a JBoss module. Unfortunately this is proving very difficult to do so I'm punting and documenting the issue.
The "confluent" dependency, which provides a Kafka Avro SerDe with Schema Registry ultimately results in roughly 30 jar files. Some of which overlap jars that are bundled as modules in Wildfly. The most troublesome appears to be Jackson, (the JSON library), as the version needed is newer than the one bundled in Wildfly. If you try to use the provided one then method not found errors occur. If you instead try to exclude Jackson and then use your own local JBoss Module containing Jackson you're in for a ride because it's tied to RestEasy, which is a global critical lib and you'll likely encounter issues such as:
19:05:56,540 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-2) RESTEASY002186: Failed to set servlet request into asynchronous mode, server sent events may not work
This ends up being about 21.5 MB and 32 jars bundled in the war lib dir.
To be clear: just bundling all deps inside the war works. Attempting to create a "local" scoped JBoss Module (not global) named say "jaws" and then including that custom module in the jboss-deployment-descriptor.xml doesn't appear to work. The custom module just takes everything that would otherwise be inside the war. So it seems the module namespacing and classloading stuff may behave different in this scenario, else I didn't quite get the config right.
The text was updated successfully, but these errors were encountered:
Turns out I was adding smoothness weblib dependency at the same time to experiment with incorporating that lib and that lib actually contains synchronous filters that caused the no async issue.
Ideally the war artifact attached to a release is just code from this project with no dependencies bundled so that it's a very small file. The dependencies would then be installed in Wildfly as a JBoss module. Unfortunately this is proving very difficult to do so I'm punting and documenting the issue.
The "confluent" dependency, which provides a Kafka Avro SerDe with Schema Registry ultimately results in roughly 30 jar files. Some of which overlap jars that are bundled as modules in Wildfly. The most troublesome appears to be Jackson, (the JSON library), as the version needed is newer than the one bundled in Wildfly. If you try to use the provided one then method not found errors occur. If you instead try to exclude Jackson and then use your own local JBoss Module containing Jackson you're in for a ride because it's tied to RestEasy, which is a global critical lib and you'll likely encounter issues such as:
This ends up being about 21.5 MB and 32 jars bundled in the war lib dir.
To be clear: just bundling all deps inside the war works. Attempting to create a "local" scoped JBoss Module (not global) named say "jaws" and then including that custom module in the jboss-deployment-descriptor.xml doesn't appear to work. The custom module just takes everything that would otherwise be inside the war. So it seems the module namespacing and classloading stuff may behave different in this scenario, else I didn't quite get the config right.
The text was updated successfully, but these errors were encountered: