AW: size of war
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | IT.CappuccinoNet.com |
| Message-ID | <000001c376ac$0fcde4b0$4b01a8c0@javaws> |
Hi Nitin, even if you switched off FOP there are still two classes referencing classes in the FOP JAR: StrutsCXPlugin (checks if FOP parameter is set or not) and StrutsCXFOPTransformer (contains the FOP transformation logic). - Ideas for a workaround appreciated. FOP switched off you can remove the batik.jar (2 MB) and the avalon-xx.jar (62k). There are a couple of more JARs you maybe won't use and may remove, too: i.e. castor-xx.jar, dom4j-full-xx.jar. Regards, Berny -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Nitin Gaur Gesendet: Dienstag, 9. September 2003 08:45 An: [email protected] Betreff: Re: [Strutscx-user] size of war Hi Berny I ve switched off FOP like this (in strutscx-config.xml) <!-- apache FOP --> <fop> <!-- switch use of apache FOP ON|OFF--> <on>OFF</on> <!-- point to the location of the fop configuration file: userconfig.xml --> <config>/WEB-INF/userconfig.xml</config> </fop> Now I remooved FOP library from lib. It gives the following exception while deploying in JBoss3.0.6 java.lang.NoClassDefFoundError: org/apache/fop/apps/FOPException If I include the FOP lib, then it works fine. It means even if I switch off FOP it still requires FOP lib !!! Any thoughts? regards -Nitin ----- Original Message ----- From: "Bernhard Woehrlin" <[email protected]> To: "'Nitin Gaur'" <[email protected]>; <[email protected]> Sent: Monday, September 08, 2003 1:25 PM Subject: AW: [Strutscx-user] size of war > Hallo Nitin, > > since StrutsCX v.0.9.3 you can set a switch in the strutscx-config.xml > to plug-in or -out FOP. If pluged-out you don't need neither the FOP > user-config.xml nor the FOP relevant JARs. > > In addition to that: In my last project I was confronted with the same > situation - my WAR file got too big - so I check my Servlet Container > (Tomcat 4.1.24): It offers the folder for JAR files you may want to > share through all your web-applications (shared/lib). I moved around 60% > of my JARs in this folder - just once. The WAR now contains just a > couple of web-application-dependend JARs: > > - commons-beanutils.jar > - commons-digester.jar > - commons-dbcp.jar > - commons-lang.jar > - commons.validator.jar > - struts.jar > - strutscx.jar > > Check your Servlet Containers documentation for more details on that. > > Regards, > > Berny > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Nitin > Gaur > Gesendet: Samstag, 6. September 2003 08:36 > An: [email protected] > Betreff: [Strutscx-user] size of war > > Hi, > I am using strutscx and its wokring fine. > But my WEB-INF\lib directory gone up to 7MB because of strutscx. > Surely I don't need FOP and batik that takes up 2.5 MB > and I don't know if strutscx using castor, I am not, so its also > redundant. > > I am bothered about this fact as this is increasing size of my EAR > and I regularly send updated EAR to my client. > > Any thoughts and solutions? > > -Nitin > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Strutscx-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strutscx-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf