2 Replies Latest reply on Apr 2, 2011 5:04 PM by Douglas Boff Nandi

    Too big Project.war

    Douglas Boff Nandi Newbie
      Hi

      My war file is with 20 mb. Inside the .war, there are many libs inside the directory WEB-INF/libs/. If I remove the libs, the .war became with only 300 kb.

      But I tryied but can't deploy the .war without theses libs inside that directory. I tried to put the libs inside the jboss/lib, jboss/common/libs/ , jboss/server/default/libs and I'm getting ClassNotFoundException.

      Can you help me with this? I need to reduce the .war size because my upload bandwidth is only 768 kbps, and I'm in Brazil and the server is in the US.

      I'm using Seam 2.2.1 + JBoss 6 Final + JBoss Tools.

      Many Thanks
        • 1. Re: Too big Project.war
          Rob Shepherd Newbie

          The application server uses different classloaders for different WAR/EAR applications, as well as different WARs inside EARs.


          In general it's best to keep these as they should be, within the archive they are needed, but I would have thought that server/profile/lib might have worked.


          As a workaround - are you able to rsync the file to the remote server?


          Rob

          • 2. Re: Too big Project.war
            Douglas Boff Nandi Newbie

            Thanks Rob


            Im not able to use rsync with the remote server.


            Can I move at least one of theses .jars outsite the package, for example, to the server/profile/lib


            Here is the list:


            antlr-runtime.jar
            commons-beanutils.jar
            commons-digester.jar
            core.jar
            drools-api.jar
            drools-compiler.jar
            drools-core.jar
            itext-rtf.jar
            itext.jar
            jboss-el.jar
            jboss-seam-debug.jar
            jboss-seam-excel.jar
            jboss-seam-ioc.jar
            jboss-seam-mail.jar
            jboss-seam-pdf.jar
            jboss-seam-remoting.jar
            jboss-seam-ui.jar
            jboss-seam.jar
            jbpm-jpdl.jar
            jcommon.jar
            jfreechart.jar
            jsf-facelets.jar
            jxl.jar
            mvel2.jar
            richfaces-api.jar
            richfaces-impl.jar
            richfaces-ui.jar


            Thanks


            Douglas