Configure Glassfish sample to use parent-last class loader delegation
Glassfish bundles an old and incomplete version of Glassfish. By default, this leads to some of Jackson's classes being loaded from inside the war file and others being loaded from Glassfish itself. This mixture of versions does not end well and the application fails to deploy. This commit adds a Glassfish-specific deployment descriptor to invert the web app class loader's delegation model. Rather than preferring classes available from its parent, it will now prefer those packaged inside the war file. Closes gh-9391pull/4411/merge
parent
5e5b7e20ff
commit
2090bef08e
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<glassfish-web-app error-url="">
|
||||||
|
<class-loader delegate="false"/>
|
||||||
|
</glassfish-web-app>
|
Loading…
Reference in New Issue