4 Replies Latest reply on Jun 28, 2010 6:47 AM by suter

    I have problems with the libraries to make a deploy

    suter

      Hi all, is the  first time I write in the forum but its contents have been using three  months ago. I am new to using jboss. I learned some things through your knowledge but there is a  problem I have is proving really difficult to solve.

       

      The problem is to conduct a war deployment of an application. I have conflicts with the libraries. For  example:

       

      11:59:35,049 ERROR [XMLUtils] Exception:
      java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl                                            
              at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
              at org.apache.axis.utils.XMLUtils.getDOMFactory(XMLUtils.java:221)
              at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:83)                                                       
              at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)                               
              at org.apache.axis.AxisEngine.init(AxisEngine.java:172)                                                            
              at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)                                                          
              at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
              at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)                 
              at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
              at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)                                                 
              at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)                              
              at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396) 

       

      I tried the  following:

       

      First in the file jboss-web.xml I  have the following configuration:

       

      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
      <jboss-web>
              <class-loading java2ClassLoadingCompliance="false">
                       <loader-repository>
                              aplicacion:loader=aplicacion.war
                              <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                      </loader-repository>

           </class-loading>

      </jboss-web>

       

      Another  step that I have done is to remove the log libraries, and JDOM xercex  for possible conflicts. But still not working.

       

      Any idea's I would appreciate.

       

      A  greeting and thanks in advance.

        • 1. Re: I have problems with the libraries to make a deploy
          jaikiran

          Which exact version of JBoss AS is this? Also can you post the output of

           

          jar -tf yourapp.war
          

           

           

          I am mainly interested to see which jar files are packaged in your application.

          • 2. Re: I have problems with the libraries to make a deploy
            suter

            These are:

             

            antisamy-bin.1.2.jar      

            commons-httpclient-3.0-rc2.jar

            jspsmart.jar 

            show25.jar
            axis-ant.jar

            commons-logging-1.0.4.jar
            axis.jar      

            concurrent.jar

            owasp-esapi-full-java-1.4.jar

            translators25.jar
            bcprov-jdk15-138.jar  

            connectors.jar         

            information25.jar

            PDFBox-0.7.3.jar     

            util.jar
            contexts25.jar 

            itext.jar     

            Printer.jar

            utils25.jar
            BreakPoint.jar  

            datasource25.jar      

            jaxen-core.jar       

            rea.jar      

            WebServices.jar
            flow25.jar     

            jaxen-jdom.jar       

            reajsp.jar  

            wsdl4j-1.5.1.jar
            fslog.jar   

            jaxrpc.jar       

            saaj.jar

            xmlParserAPIs.jar
            commons-codec-1.4.jar     

            jcs-1.3.jar 

            saxpath.jar
            commons-discovery-0.2.jar 

            jm.jar

            servlets25.jar
            commons-fileupload-1.2.jar 

            JSPDataSource.jar

            • 3. Re: I have problems with the libraries to make a deploy
              jaikiran

              I still see some xml parsing jars in that list, like:

               

              xmlParserAPIs.jar

              Try removing that file. If that still doesn't help, then add the following JVM argument to your JBoss startup script:

               

               

              -verbose:class
              

               

              This JVM argument will enable logging which shows which jars are used for loading a particular class. I recommend that you redirect the output to a file when you add that argument, because the log will be too verbose on the console.

              • 4. Re: I have problems with the libraries to make a deploy
                suter

                Jaikiran thank you very much, you're the  best.