ant - How to change the class loader in the application.xml file to support preference loading of deployed jars -
i have built web app using tomcat 6 container. using couple of jars of tomcat's , referring them ant build in eclipse.
i've written ant build deploy app .war , application.xml deployment descriptor .ear deploying 7. in order support this, i've pulled jars war know they'll available app worked through tomcat.
i know need put application.xml file cause class loader use jars i've pulled in , not was's life of me can't find decent resource read on full range of options exist in application.xml file let alone need type put (parent_last?) text in.
1) can point me full online document listing things can put application.xml control .ear
2) can post listing modifies below xml such when xml file included in .ear can deploy such container uses jars in enclosed war rather ones in setup.
i eternally grateful.
<?xml version="1.0" encoding="utf-8"?> <application id="client"> <display-name>client</display-name> <description>web application supporting configuration , management of server components</description> <module id="client"> <web> <web-uri>client.war</web-uri> <context-root>client</context-root> </web> </module> </application>
parent_last
not you, not mention wouldn't touch option 10-foot pole considered hack.
the behavior you're looking provided default - that's "correct" way of working according j2ee spec. can provide exact composition of ear file, war file, , manifest.mf
file of both?
[edited add following]
the comment below correct (thanks) - if included jar files tomcat inside web application, you're doing wrong , unportable.
- jar files pertaining j2ee specification (such jar files containing j2ee api) provided application server vendors; should exclude them deployable module (ear, war).
- jar files pertaining specific tomcat functionality... well, wouldn't function outside of tomcat entire subject of websphere migration moot.
Comments
Post a Comment