From: Adam R. <ad...@ex...> - 2009-11-04 17:25:29
|
We could perhaps use the Apache commons compress package instead. But isnt Ant shipped with eXist? 2009/11/4 Andrzej Jan Taramina <an...@ch...>: > If you enable the optional Compression Module, it won't load when Tomcat/eXist starts up (if you are using a war-based > eXist implementation running inside Tomcat) with the following error in the exist logs: > > 2009-11-04 11:48:46,000 [main] WARN (XQueryContext.java [lookupModuleClass]:2816) - Module > http://exist-db.org/xquery/compression could not be initialized due to a missing dependancy (NoClassDefFoundError): > org/apache/tools/tar/TarOutputStream > > Doing some digging, I found that the class TarOutputStream class is found in the ant.jar file which is not something > that is included in the war by default. > > I'm not really sure we should be using ant.jar and the TarOutputStream class therein in an eXist runtime module. It > would seem very wrong to include ant.jar in a production war that way. > > We could create a stripped down jar file just including the TarOutputStream and related classes and put it in > eXist/lib/optional as one approach to resolve this. > > Any suggestions as to how best to fix the issue, without including the whole ant.jar in a production deployment? > > -- > Andrzej Taramina > Chaeron Corporation: Enterprise System Solutions > http://www.chaeron.com > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |