Re: xalan usage in taglibs

Jeremy Boynes <[email protected]> Mon, 27 Nov 2017 07:31:12 -0800
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
--Apple-Mail=_41515F8E-0550-46D9-A5C1-DC7840CBC690
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

> On Nov 27, 2017, at 12:07 AM, Matthew Broadhead =
<[email protected]> wrote:
>=20
> In TomEE 7.0.3 everything is fine at startup.  But if a webapp is =
reloaded I get
> java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault =
cannot be cast to org.apache.xml.dtm.DTMManager
> and the whole container needs to be restarted which is not ideal =
during production
>=20
> Now in TomEE 7.0.4 I cannot even start without this error so I cannot =
upgrade.
>=20
> It seems like a classloader issue but taglibs is the only hardcoded =
dependency on xalan

Are you including the taglibs jars in your war when deploying to TomEE? =
You shouldn=E2=80=99t need to do that as TomEE should be providing its =
own implementation of JSTL which would mean there is a chance of =
conflict if you also include them.

=46rom a thread =
<http://mail-archives.apache.org/mod_mbox/tomee-users/201707.mbox/%3CCAJMh=
[email protected]%3E> on =
tomee-users, it sounds like TomEE could be trying include taglibs and =
avoid including the Xalan dependency but I wouldn=E2=80=99t expect that =
to work as it actually is needed by the XML tags. The dependency is =
=E2=80=9Cprovided=E2=80=9D scope to avoid automatic transitive inclusion =
for applications that don=E2=80=99t use the XML tags (which is most). =
For container integration it should be included as an application might =
use those tags.


--Apple-Mail=_41515F8E-0550-46D9-A5C1-DC7840CBC690--