1 2 Previous Next 19 Replies Latest reply on Apr 19, 2013 12:26 AM by prashamsjain Go to original post
      • 15. Re: Deployment of EAR and WAR both making trouble but only war is working
        prashamsjain

        Nicklas, tried to find out the same but no luck...list of the Jars

         

          antlr-2.7.6.jar
          commons-beanutils-1.7.0.jar
           commons-chain-1.1.jar
           commons-codec-1.3.jar
           commons-collections-3.2.jar
           commons-digester-1.8.jar
           commons-dbcp-1.2.2.jar
          commons-fileupload-1.1.1.jar
           commons-httpclient-3.0.jar
            commons-io-1.2.jar
            commons-lang-2.1.jar
           commons-logging-1.1.jar
           commons-math-1.1.jar
           commons-pool-1.3.jar
           commons-validator-1.1.4.jar
           commons-scxml-0.7.jar
        oro-2.0.8.jar
            concurrent-1.3.4.jar
          dom4j-1.6.1.jar
           jaxen-1.1.1.jar
           xmlunit-1.1.jar 
          javassist-JBoss4.04GA.jar
          javax-annotations.jar
           json-lib-2.4-jdk15.jar
          ezmorph-1.0.6.jar
          commons-vfs2-2.0.jar
          commons-net-3.0.1.jar 
           javax.servlet.jsp.jstl-1.1.2.jar
           jakarta-taglibs-standard-1.1.2.jar
          displaytag-1.1.1.jar
           asm.jar
          asm-attrs-1.5.3.jar
          cglib.jar
          hibernate-commons-annotations.jar
          hibernate-validator-4.2.0.Final.jar
          hibernate-core-3.6.1.Final.jar
          hibernate-entitymanager-3.6.1.Final.jar
           log4j.jar
            log4jMBean.jar  
           groovy-all-1.5.6.jar 
           javax-transaction.jar 
            aspectj-rt-1.5.4.jar
          aspectj-weaver-1.5.4.jar  
           org.springframework.aop-3.0.5.RELEASE.jar
                     org.springframework.asm-3.0.5.RELEASE.jar
           org.springframework.aspects-3.0.5.RELEASE.jar
           org.springframework.beans-3.0.5.RELEASE.jar
            org.springframework.context-3.0.5.RELEASE.jar
           org.springframework.context.support-3.0.5.RELEASE.jar
             org.springframework.core-3.0.5.RELEASE.jar
           org.springframework.jdbc-3.0.5.RELEASE.jar
           org.springframework.orm-3.0.5.RELEASE.jar
           org.springframework.orm-sources-3.0.5.RELEASE.jar
            org.springframework.transaction-3.0.5.RELEASE.jar
           org.springframework.web-3.0.5.RELEASE.jar
            aopalliance-1.0.jar
            spring-expression-3.0.5.RELEASE.jar
           spring-webmvc-2.5.4.jar
           spring-security-core-2.0.1.jar
          spring-test-2.5.4.jar 
          struts-core-1.3.8.jar 
           jcaptcha-1.0-all.jar 
            activation-1.1.1.jar
            FastInfoset-1.2.2.jar
          http.jar
            jaxb-api-2.1.jar
            jaxb-impl-2.1.7.jar
            jaxws-api-2.1.jar
            jaxws-rt-2.1.4.jar
        jsr173_api.jar
            jsr181-api.jar
           jsr250-api.jar
            mimepull.jar
           resolver.jar
        saaj-api-1.3.jar
          saaj-impl-1.3.jar
            sjsxp-1.0.1.jar
           stax-ex.jar
            streambuffer.jar
           xws-security-3.0.jar
          avalon-framework-4.2.0.jar
            fop-0.94.jar
             barcode4j-fop-ext-complete.jar
           velocity-dep-1.4.jar
          batik-all-1.6.jar
           xmlgraphics-commons-1.2.jar
           itext-1.3.jar
          xstream-1.3.jar
           RASR_Proxy.jar
          RASR_Transport.jar
          checkstyle-4.4.jar 
          junit-3.8.2.jar 
          selenium-java-client-driver-1.0.1.jar
           selenium-server-1.0.1.jar
          svnant.jar
        svnjavahl.jar
        svnClientAdapter.jar
        classycle.jar
           pmd-4.2.4.jar
        jaxen-1.1.1.jar
          asm-3.1.jar
          jcifs-1.2.6.jar

        • 16. Re: Deployment of EAR and WAR both making trouble but only war is working
          nickarls

          Without knowing all jars, I would try dropping (at least making scope provided) the *-marked

          prashamsjain wrote:

           

          Nicklas, tried to find out the same but no luck...list of the Jars

           

            * antlr-2.7.6.jar
            commons-beanutils-1.7.0.jar
             commons-chain-1.1.jar
             commons-codec-1.3.jar
             commons-collections-3.2.jar
             commons-digester-1.8.jar
          *   commons-dbcp-1.2.2.jar
            commons-fileupload-1.1.1.jar
             commons-httpclient-3.0.jar
              commons-io-1.2.jar
              commons-lang-2.1.jar
             commons-logging-1.1.jar
             commons-math-1.1.jar
             commons-pool-1.3.jar
             commons-validator-1.1.4.jar
             commons-scxml-0.7.jar
          oro-2.0.8.jar
              concurrent-1.3.4.jar
          *  dom4j-1.6.1.jar
          *   jaxen-1.1.1.jar
          *   xmlunit-1.1.jar 
          *  javassist-JBoss4.04GA.jar
          *  javax-annotations.jar
             json-lib-2.4-jdk15.jar
            ezmorph-1.0.6.jar
            commons-vfs2-2.0.jar
            commons-net-3.0.1.jar 
          * javax.servlet.jsp.jstl-1.1.2.jar
             jakarta-taglibs-standard-1.1.2.jar
            displaytag-1.1.1.jar
          *  asm.jar
          * asm-attrs-1.5.3.jar
          * cglib.jar
          * hibernate-commons-annotations.jar
          * hibernate-validator-4.2.0.Final.jar
          * hibernate-core-3.6.1.Final.jar
          * hibernate-entitymanager-3.6.1.Final.jar
             log4j.jar
              log4jMBean.jar  
             groovy-all-1.5.6.jar 
          *  javax-transaction.jar 
          *   aspectj-rt-1.5.4.jar
          * aspectj-weaver-1.5.4.jar  
             org.springframework.aop-3.0.5.RELEASE.jar
                       org.springframework.asm-3.0.5.RELEASE.jar
             org.springframework.aspects-3.0.5.RELEASE.jar
             org.springframework.beans-3.0.5.RELEASE.jar
              org.springframework.context-3.0.5.RELEASE.jar
             org.springframework.context.support-3.0.5.RELEASE.jar
               org.springframework.core-3.0.5.RELEASE.jar
             org.springframework.jdbc-3.0.5.RELEASE.jar
             org.springframework.orm-3.0.5.RELEASE.jar
             org.springframework.orm-sources-3.0.5.RELEASE.jar
              org.springframework.transaction-3.0.5.RELEASE.jar
             org.springframework.web-3.0.5.RELEASE.jar
              aopalliance-1.0.jar
              spring-expression-3.0.5.RELEASE.jar
             spring-webmvc-2.5.4.jar
             spring-security-core-2.0.1.jar
          * spring-test-2.5.4.jar 
            struts-core-1.3.8.jar 
             jcaptcha-1.0-all.jar 
              activation-1.1.1.jar
              FastInfoset-1.2.2.jar
            * http.jar
            *  jaxb-api-2.1.jar
            *  jaxb-impl-2.1.7.jar
            *  jaxws-api-2.1.jar
            *  jaxws-rt-2.1.4.jar
          * jsr173_api.jar
          *    jsr181-api.jar
          *   jsr250-api.jar
              mimepull.jar
             resolver.jar
          * saaj-api-1.3.jar
          *  saaj-impl-1.3.jar
              sjsxp-1.0.1.jar
          *   stax-ex.jar
              streambuffer.jar
             xws-security-3.0.jar
            avalon-framework-4.2.0.jar
              fop-0.94.jar
               barcode4j-fop-ext-complete.jar
             velocity-dep-1.4.jar
            batik-all-1.6.jar
             xmlgraphics-commons-1.2.jar
             itext-1.3.jar
            xstream-1.3.jar
             RASR_Proxy.jar
            RASR_Transport.jar
          *  checkstyle-4.4.jar 
          *  junit-3.8.2.jar 
          *  selenium-java-client-driver-1.0.1.jar
          *   selenium-server-1.0.1.jar
          *  svnant.jar
          * svnjavahl.jar
          * svnClientAdapter.jar
          classycle.jar
             pmd-4.2.4.jar
          * jaxen-1.1.1.jar
          *  asm-3.1.jar
            jcifs-1.2.6.jar

           

          Some of them are just dead weight (test-related), others might throw off classloading (hibernate, ws/xml stuff). You have both spring and struts?

           

          I recommend you comment out everything in pom.xml. Then you add one library at a time to resolve compiliation errors. If you rely on e.g. hibernate-specific stuff, make the scope "provided" and add a module dependency.

          • 17. Re: Deployment of EAR and WAR both making trouble but only war is working
            prashamsjain

            yes I have both sppring and and struts:

             

            for building application, we are using build.xml as ant build.

            • 18. Re: Deployment of EAR and WAR both making trouble but only war is working
              ctomc

              i would remove even more...

              Nicklas Karlsson wrote:

               

              Without knowing all jars, I would try dropping (at least making scope provided) the *-marked

              prashamsjain wrote:

               

              Nicklas, tried to find out the same but no luck...list of the Jars

               

                * antlr-2.7.6.jar
                commons-beanutils-1.7.0.jar
                 commons-chain-1.1.jar
                 commons-codec-1.3.jar
                 commons-collections-3.2.jar
                 commons-digester-1.8.jar
              *   commons-dbcp-1.2.2.jar
                commons-fileupload-1.1.1.jar
                 commons-httpclient-3.0.jar
                  commons-io-1.2.jar
                  commons-lang-2.1.jar
                 commons-logging-1.1.jar
                 commons-math-1.1.jar
                 commons-pool-1.3.jar
                 commons-validator-1.1.4.jar
                 commons-scxml-0.7.jar
              oro-2.0.8.jar
                  concurrent-1.3.4.jar
              *  dom4j-1.6.1.jar
              *   jaxen-1.1.1.jar
              *   xmlunit-1.1.jar 
              *  javassist-JBoss4.04GA.jar
              *  javax-annotations.jar
                 json-lib-2.4-jdk15.jar
                ezmorph-1.0.6.jar
                commons-vfs2-2.0.jar
                commons-net-3.0.1.jar 
              * javax.servlet.jsp.jstl-1.1.2.jar
                 jakarta-taglibs-standard-1.1.2.jar
                displaytag-1.1.1.jar
              *  asm.jar
              * asm-attrs-1.5.3.jar
              * cglib.jar
              * hibernate-commons-annotations.jar
              * hibernate-validator-4.2.0.Final.jar
              * hibernate-core-3.6.1.Final.jar
              * hibernate-entitymanager-3.6.1.Final.jar
                 log4j.jar --> remove, app server has it
                  log4jMBean.jar   --> no need for it
                 groovy-all-1.5.6.jar   --> does your app use groovy? if not, remove...
              *  javax-transaction.jar 
              *   aspectj-rt-1.5.4.jar
              * aspectj-weaver-1.5.4.jar  
                 org.springframework.aop-3.0.5.RELEASE.jar
                           org.springframework.asm-3.0.5.RELEASE.jar
                 org.springframework.aspects-3.0.5.RELEASE.jar
                 org.springframework.beans-3.0.5.RELEASE.jar
                  org.springframework.context-3.0.5.RELEASE.jar
                 org.springframework.context.support-3.0.5.RELEASE.jar
                   org.springframework.core-3.0.5.RELEASE.jar
                 org.springframework.jdbc-3.0.5.RELEASE.jar
                 org.springframework.orm-3.0.5.RELEASE.jar
                 org.springframework.orm-sources-3.0.5.RELEASE.jar
                  org.springframework.transaction-3.0.5.RELEASE.jar
                 org.springframework.web-3.0.5.RELEASE.jar
                  aopalliance-1.0.jar --> remove
                  spring-expression-3.0.5.RELEASE.jar
                 spring-webmvc-2.5.4.jar
                 spring-security-core-2.0.1.jar
              * spring-test-2.5.4.jar 
                struts-core-1.3.8.jar 
                 jcaptcha-1.0-all.jar 
                  activation-1.1.1.jar --> remove part of jdk & app server
                  FastInfoset-1.2.2.jar
                * http.jar
                *  jaxb-api-2.1.jar
                *  jaxb-impl-2.1.7.jar
                *  jaxws-api-2.1.jar
                *  jaxws-rt-2.1.4.jar
              * jsr173_api.jar
              *    jsr181-api.jar
              *   jsr250-api.jar
                  mimepull.jar
                 resolver.jar --> remove
              * saaj-api-1.3.jar
              *  saaj-impl-1.3.jar
                  sjsxp-1.0.1.jar
              *   stax-ex.jar
                  streambuffer.jar
                 xws-security-3.0.jar
                avalon-framework-4.2.0.jar
                  fop-0.94.jar
                   barcode4j-fop-ext-complete.jar
                 velocity-dep-1.4.jar
                batik-all-1.6.jar
                 xmlgraphics-commons-1.2.jar
                 itext-1.3.jar
                xstream-1.3.jar --> remove part of app server
                 RASR_Proxy.jar
                RASR_Transport.jar
              *  checkstyle-4.4.jar 
              *  junit-3.8.2.jar 
              *  selenium-java-client-driver-1.0.1.jar
              *   selenium-server-1.0.1.jar
              *  svnant.jar
              * svnjavahl.jar
              * svnClientAdapter.jar
              classycle.jar
                 pmd-4.2.4.jar --> pmd is used for code analisis, and should probably not be deployed
              * jaxen-1.1.1.jar
              *  asm-3.1.jar
                jcifs-1.2.6.jar

               

              Some of them are just dead weight (test-related), others might throw off classloading (hibernate, ws/xml stuff). You have both spring and struts?

               

              I recommend you comment out everything in pom.xml. Then you add one library at a time to resolve compiliation errors. If you rely on e.g. hibernate-specific stuff, make the scope "provided" and add a module dependency.

              if you are using ant, you can just modify script that creates deployment.

              now you are probably just copying whole lib directory. That is same lib that you also use for compiling.

              In short when you are doing <copy> task add include filter and include only jars that are really needed.

               

              --

              tomaz

              • 19. Re: Deployment of EAR and WAR both making trouble but only war is working
                prashamsjain

                Hello Nicklas/Tomaz,

                 

                Many Thanks for your coperation, Finally I was able to fix the issue.

                 

                The problem was with the jboss-deployment-structure.xml file in the ear. as this ear contains one war file inside it, this xml file have <sub-deployment>  tag and i was using the <deployment> tag.

                 

                thansk again

                 

                 

                Prasham

                1 2 Previous Next